# Inputs for Initial Conditions&#x20;

Input of initial conditions are through keywords “INCON”, “INDOM” or “PARAM” at record PARAM.4. Users can also provide initial conditions through the file “INCON”. TOUGH4 may allow different parameters as the initial conditions. No matter which set of parameters are used as the initial conditions, they must be consistent for the inputs with different keywords or the input file. Default initial conditions are always the primary variables.&#x20;

User may specify initial condition input formatting  through defining initCType in input data record MODDE.1 or command line *–i \<parameter>.* Each module may have its specific value for initCType. Several initCType values are shared by all the EOS modules:&#x20;

&#x20;initCType =

&#x20;                 “1LINE”              initial condition input for each element is in 1 line.

&#x20;                 “2LINES”           initial condition input for each element is in 2 lines.

&#x20;                 “3LINES”           initial condition input for each element is in 3 lines.

&#x20;                 “4LINES”           initial condition input for each element is in 4 lines.

&#x20;                 “FM*n*L*abcd*...”  initial condition input through a special transformation. &#x20;

In  “FM*n*L*abcd*...”, where "FM" is the indicator of the special transformation input; *n*L specifies the lines to be read for each element, can be 1L, 2L, 3L, or 4L; *abcd.....* represents primary variable 1,2,3,4...... are located in the INCON file data number a, b, c, d, ......, for each element respectively. If any of the a, b, c, d, ...... is zero, the corresponding primary variable will be 0.0. For example:

A INCON has following input:

***A00001***

***Pg, Sg/Xg1,  Xg2, Xg3, Xbr, xtr1, xtr2, Temperature***

In current simulation,  brine and tracer 2 are excluded from the model.   The input of initial condition for element A00001 must be:

***A00001***

***Pg,  Sg/Xg1, Xg2, Xg3, xtr1, Temperature***

If the INCON file is used for current simulation,  initCType must have a value "FM1L123468".

If current simulation will include a new gas (gas 4)  and its mass fractions are all initialized as 0.0 (primary variables: ***Pg, Sg/Xg1,  Xg2,  Xg3,  Xg4,  xtr1, Temperature***) , the initCType must have a value "FM1L1234068".&#x20;

The initial conditions of different EOS modules are summarized below. The maximum number of tracers or salts is 5. The following discussion covers a smaller number of tracers or salts, but it applies to any number of them.


---

# 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://lbl-2.gitbook.io/tough4-user-manual/preparation-of-model-input/inputs-for-initial-conditions.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.
