Initialize/Run

Initialization

To initialize volume value, system/setFields file is used.

Values of defaultFieldValues is the input values for all domain and values of regions are for certain volume.

defaultFieldValues
(
    volScalarFieldValue <field> <value> 
    ...
);
regions
(
    boxToCell
    {
        box  (<x1> <y1> <z1>) (<x2> <y2> <z2>);
        fieldValues
        (
            volScalarFieldValue <field> <value>
            ... 
        );
    }
    ... 
);

For volume fraction initialize, values of all phases are set as follows

defaultFieldValues
(
    volScalarFieldValue alpha.<secondary phase1>  <value> 
    volScalarFieldValue alpha.<primaty phase>     <1-value> 
);
regions
(
    boxToCell
    {
        box  (<x1> <y1> <z1>) (<x2> <y2> <z2>);
        fieldValues
        (
            volScalarFieldValue alpha.<secondary phase1>    <value> 
            volScalarFieldValue alpha.<primaty phase1>      <1-value> 
        );
    } 
);

The value of Primary phase must be set as sum of all phase is one.

Run Conditions

Run Conditions are set in the system/controlDict file as follows

application         <solver>;
startFrom           latestTime;
startTime           0;
stopAt              endTime;
endTime             <value>;
deltaT              <value>;
writeControl        adjustableRunTime;
writeInterval       <value>;
purgeWrite          <value>;
writeFormat         <binary or ascii>;
writePrecision      <value>;
writeCompression    off;
writeAtEnd          true;
timeFormat          general;
timePrecision       <value>;
runTimeModifiable   yes;
adjustTimeStep      <yes or no>;
maxCo               <value>;
maxDi               <value>;
maxAlphaCo          <value>;
  • endTime : value of Number of Iteration or End Time
  • deltaT : value of Time Step Size
  • writeInterval : value of Save Interval
  • purgeWrite : value of Retain Only the Most Recent Files
  • writeFormat : value of Data Write Format
  • writePrecision : value of Data Write Precision
  • timePrecision : value of Time Precision
  • adjustTimeStep : value of Time Stepping Method
  • maxCo : value of Courant Number
  • maxDi : value of Maximum Diffusion Number
  • maxAlphaCo : value of Max Courant Number for VoF