# Choose Phases

The "Phases" field is utilized to select the phases expected to form in the system. This field is an array of strings and must include the "aqueous (liquid1)" phase at a minimum. It is required for chemistry file generation, and the selected phases impact the chemistry model.&#x20;

Below is an example of the "Phases" field:

```json
{
    "params": {
    "thermodynamicFramework": "Aqueous (H+ ion)", 
    "modelName": "testModel",
      "phases": [
        "liquid1",
        "vapor",
        "solid", 
        "liquid2"
      ],
        "inflows": [
            {
                "name": "H2O"
            },
            {
                "name": "NACL"
            }
        ]
    }
}
```

| phase   | value   |
| ------- | ------- |
| aqueous | liquid1 |
| vapor   | vapor   |
| solid   | solid   |
| organic | liquid2 |

Here are the requirements and assumptions you need to be aware of:

1. For DBS file generation, the "phases" field must be explicitly entered by the user and cannot be left empty (e.g., `"phases":[]` is incorrect).
2. The aqueous phase or "liquid1" phase should always be specified (e.g., `"phases": ["vapor", "solid"]` is incorrect).
3. The order or sequence of phase names does not matter.
4. Duplicate phase names are not allowed (e.g., `"phases": ["liquid1", "liquid1", "vapor", "solid"]` is incorrect).
5. In the Aqueous and MSE-SRK models, the vapor phase is required to model the organic phase. Thus, the vapor phase will be automatically selected by default if the organic phase is enabled.
6. In query methods, if a user doesn't specify any phases explicitly, "liquid1" or aqueous phase, "vapor", and "solid" will be enabled by default. The "liquid2" or organic phase is not included.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://devdocs.olisystems.com/chemistry-model-files/chembuilder-api/getting-started-with-chembuilder/choose-phases.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
