OGS
TwoPhase_mcwt_line.prj
<OpenGeoSysProject>
  <mesh>mcwt.vtu</mesh>
  <geometry>mcwt.gml</geometry>
  <processes>
    <process>
      <name>GW23</name>
      <type>TWOPHASE_FLOW_PP</type>
      <integration_order>2</integration_order>
      <jacobian_assembler>
        <type>CentralDifferences</type>
        <component_magnitudes>1e4 1e+5</component_magnitudes>
        <relative_epsilons>1e-7 1e-7</relative_epsilons>
      </jacobian_assembler>
      <process_variables>
        <capillary_pressure>capillary_pressure</capillary_pressure>
        <gas_pressure>gas_pressure</gas_pressure>
      </process_variables>
      <secondary_variables>
        <secondary_variable internal_name="saturation" output_name="saturation" />
      </secondary_variables>
      <specific_body_force>0 0</specific_body_force>
      <mass_lumping>true</mass_lumping>
      <temperature>temp</temperature>
    </process>
  </processes>
  <media>
    <medium id="0">
      <phases>
        <phase>
          <type>AqueousLiquid</type>
          <properties>
            <property>
              <name>density</name>
              <type>Constant</type>
              <value>1.0e3</value>
            </property>
            <property>
              <name>viscosity</name>
              <type>Constant</type>
              <value>1e-3</value>
            </property>
          </properties>
        </phase>
        <phase>
          <type>Gas</type>
          <properties>
            <property>
              <name>density</name>
              <type>Constant</type>
              <value>1.0e3</value>
            </property>
            <property>
              <name>viscosity</name>
              <type>Constant</type>
              <value>1.e-3</value>
            </property>
            <property>
              <name>molar_mass</name>
              <type>Constant</type>
              <value>0.0289</value>
            </property>
          </properties>
        </phase>
      </phases>
      <properties>
        <property>
          <name>permeability</name>
          <type>Constant</type>
          <value>1.0e-10</value>
        </property>
        <property>
          <name>saturation</name>
          <type>SaturationBrooksCorey</type>
          <residual_liquid_saturation>0.0</residual_liquid_saturation>
          <residual_gas_saturation>0.0</residual_gas_saturation>
          <lambda>2.0</lambda>
          <entry_pressure>5000</entry_pressure>
        </property>
        <property>
          <name>relative_permeability</name>
          <type>RelPermBrooksCorey</type>
          <residual_liquid_saturation>0.0</residual_liquid_saturation>
          <residual_gas_saturation>0.0</residual_gas_saturation>
          <lambda>2</lambda>
          <min_relative_permeability>0</min_relative_permeability>
        </property>
        <property>
          <name>relative_permeability_nonwetting_phase</name>
          <type>RelPermBrooksCoreyNonwettingPhase</type>
          <residual_liquid_saturation>0.0</residual_liquid_saturation>
          <residual_gas_saturation>0.0</residual_gas_saturation>
          <lambda>2</lambda>
          <min_relative_permeability>1e-9</min_relative_permeability>
        </property>
        <property>
          <name>porosity</name>
          <type>Constant</type>
          <value>0.3</value>
        </property>
      </properties>
    </medium>
  </media>
  <parameters>
    <parameter>
      <name>pc_Dirichlet_left</name>
      <type>Constant</type>
      <value>5000.0</value>
    </parameter>
    <parameter>
      <name>pg_Dirichlet_left</name>
      <type>Constant</type>
      <value>2.e5</value>
    </parameter>
    <parameter>
      <name>pc_0</name>
      <type>Constant</type>
      <values>5.e4</values>
    </parameter>
    <parameter>
      <name>pg_0</name>
      <type>Constant</type>
      <values>0.0</values>
    </parameter>
    <parameter>
      <name>temp</name>
      <type>Constant</type>
      <value>293.15</value>
    </parameter>
    <parameter>
      <name>constant_porosity_parameter</name>
      <type>Constant</type>
      <value>0.3</value>
    </parameter>
    <parameter>
      <name>kappa1</name>
      <type>Constant</type>
      <values>1.0e-10</values>
    </parameter>
  </parameters>
  <time_loop>
    <processes>
      <process ref="GW23">
        <nonlinear_solver>basic_newton</nonlinear_solver>
        <convergence_criterion>
          <type>PerComponentDeltaX</type>
          <norm_type>NORM2</norm_type>
          <abstols>1e-05 1e-05</abstols>
          <reltols>1e-08 1e-08</reltols>
        </convergence_criterion>
        <time_discretization>
          <type>BackwardEuler</type>
        </time_discretization>
        <time_stepping>
          <type>FixedTimeStepping</type>
          <t_initial>0</t_initial>
          <t_end>1000</t_end>
          <timesteps>
            <pair>
              <repeat>100</repeat>
              <delta_t>0.05</delta_t>
            </pair>
            <pair>
              <repeat>100</repeat>
              <delta_t>0.1</delta_t>
            </pair>
            <pair>
              <repeat>100</repeat>
              <delta_t>0.5</delta_t>
            </pair>
            <pair>
              <repeat>100</repeat>
              <delta_t>1</delta_t>
            </pair>
            <pair>
              <repeat>100</repeat>
              <delta_t>2</delta_t>
            </pair>
            <pair>
              <repeat>100</repeat>
              <delta_t>5</delta_t>
            </pair>
          </timesteps>
        </time_stepping>
      </process>
    </processes>
    <output>
      <type>VTK</type>
      <prefix>twophaseflow</prefix>
      <timesteps>
        <pair>
          <repeat>1</repeat>
          <each_steps>10000</each_steps>
        </pair>
      </timesteps>
      <output_iteration_results>false</output_iteration_results>
      <variables>
        <variable>capillary_pressure</variable>
        <variable>gas_pressure</variable>
        <variable>saturation</variable>
      </variables>
      <suffix>ts{:timestep}_t_{:time}</suffix>
    </output>
  </time_loop>
  <process_variables>
    <process_variable>
      <name>capillary_pressure</name>
      <components>1</components>
      <order>1</order>
      <initial_condition>pc_0</initial_condition>
      <boundary_conditions>
        <boundary_condition>
          <geometrical_set>mcwt</geometrical_set>
          <geometry>POINT0</geometry>
          <type>Dirichlet</type>
          <parameter>pc_Dirichlet_left</parameter>
        </boundary_condition>
      </boundary_conditions>
    </process_variable>
    <process_variable>
      <name>gas_pressure</name>
      <components>1</components>
      <order>1</order>
      <initial_condition>pg_0</initial_condition>
      <boundary_conditions>
        <boundary_condition>
          <geometrical_set>mcwt</geometrical_set>
          <geometry>POINT0</geometry>
          <type>Dirichlet</type>
          <parameter>pg_Dirichlet_left</parameter>
        </boundary_condition>
      </boundary_conditions>
    </process_variable>
  </process_variables>
  <nonlinear_solvers>
    <nonlinear_solver>
      <name>basic_newton</name>
      <type>Newton</type>
      <max_iter>60</max_iter>
      <linear_solver>general_linear_solver</linear_solver>
    </nonlinear_solver>
  </nonlinear_solvers>
  <linear_solvers>
    <linear_solver>
      <name>general_linear_solver</name>
      <lis>-i bicgstab -p ilut -tol 1e-18 -maxiter 10000</lis>
      <eigen>
        <solver_type>BiCGSTAB</solver_type>
        <precon_type>ILUT</precon_type>
        <max_iteration_step>10000</max_iteration_step>
        <error_tolerance>1e-18</error_tolerance>
      </eigen>
    </linear_solver>
  </linear_solvers>
</OpenGeoSysProject>