INITIAL VALUES of SOLVEd and STOREd variables, whether starting- time values for a transient phenomenon or first guesses for a steady one, are needed by EARTH at the start of the solution process.
If the variable is being stored but not solved for (which is usually true of porosities and of PRPS, the initially-set values will be retained throughout the calculation.
Initial values may be set in one or more of the following ways:-
INIT (MIDDLE,H1,0.0,100.0) sets the values of H1 in the centre of the IZ=1 slab to:
FIINIT(H1) + 100.0, if INIADD = T, or to:
100.0, if INIADD = F .
The default value of INIADD is T. Use of this value, especially in conjunction with the use of other types than INIVAL, permits complex initial-value patterns to be created by the use of multiple partly-overlapping PATCHes.
When INIADD=F, by contrast, the effect of any PATCH-INIT combination is simply to overwrite the value already set.
If it is desired to give the variable initial values which vary linearly with x, y or z, the following steps should be taken:
When porosities ( eg. NPOR ) fields are being set, it is important to remember to put FIINIT(NPOR)=1.0, so that no blockage is present in sections of the domain not identified by PATCH.
For more complicated variations of the initial fields than those provided by the above options, the fourth argument of INIT should be set to GRND. This causes EARTH to visit group 11 of GROUND for an array of GROUND-set VALues for each cell in the PATCH. For example,
requires the user to provide in group 11 of GROUND a sequence which fills the EARTH array referred to by the index VAL for INDVAR=H1 at each IZ slab of the domain.
To check that the initial fields are correctly set, the user should set INIFLD=T to cause EARTH to print out the initial fields at the beginning of the calculation.
In BFC grids, uni-directional flows can be initialized by means of the special PATCH
names starting IBFC that causes group 11 of GREX to call subroutine GXBFC. The following
commands result in a uniform initial flow at 99.0 m/s, parallel to ZC in a body-fitted
See PATCH, TYPE and INIVAL, for further information.