OGS  master
Twophase_MoMaS_small.prj
<OpenGeoSysProject>
  <mesh>H2_H20_2D_small.vtu</mesh>
  <geometry>H2_H20_2D.gml</geometry>
  <processes>
    <process>
      <name>GW23</name>
      <type>TWOPHASE_FLOW_PRHO</type>
      <integration_order>2</integration_order>
      <process_variables>
        <liquid_pressure>liquid_pressure</liquid_pressure>
        <overall_mass_density>overall_mass_density</overall_mass_density>
      </process_variables>
      <jacobian_assembler>
        <type>CentralDifferences</type>
        <component_magnitudes>1e6 1.0</component_magnitudes>
        <relative_epsilons>1e-6 1e-7</relative_epsilons>
      </jacobian_assembler>
      <material_property>
        <fluid>
          <liquid_density>
            <type>Constant</type>
            <value>1.e3</value>
          </liquid_density>
          <gas_density>
            <type>IdealGasLaw</type>
            <molar_mass>0.002</molar_mass>
          </gas_density>
          <liquid_viscosity>
            <type>Constant</type>
            <value>3.171e-11</value>
          </liquid_viscosity>
          <gas_viscosity>
            <type>Constant</type>
            <value>2.8539e-13</value>
          </gas_viscosity>
        </fluid>
        <porous_medium>
          <porous_medium id="0">
            <permeability>
              <permeability_tensor_entries>kappa1</permeability_tensor_entries>
              <type>Constant</type>
            </permeability>
            <porosity>
              <type>Constant</type>
              <porosity_parameter>constant_porosity_parameter</porosity_parameter>
            </porosity>
            <storage>
              <type>Constant</type>
              <value>0.0</value>
            </storage>
            <capillary_pressure>
              <type>vanGenuchten</type>
              <pd>2e+6</pd>
              <sr>0.4</sr>
              <smax>1.</smax>
              <m>0.3288590604</m>
              <pc_max>2e+7</pc_max>
              <has_regularized>true</has_regularized>
            </capillary_pressure>
            <relative_permeability>
              <relative_permeability id="0">
                <type>NonWettingPhaseVanGenuchten</type>
                <sr>0.0</sr>
                <smax>0.6</smax>
                <m>0.3288590604</m>
                <krel_min>0.0</krel_min>
              </relative_permeability>
              <relative_permeability id="1">
                <type>WettingPhaseVanGenuchten</type>
                <sr>0.4</sr>
                <smax>1.</smax>
                <m>0.3288590604</m>
                <krel_min>0.0</krel_min>
              </relative_permeability>
            </relative_permeability>
          </porous_medium>
        </porous_medium>
      </material_property>
      <secondary_variables>
        <secondary_variable internal_name="saturation" output_name="saturation" />
        <secondary_variable internal_name="pressure_nonwetting" output_name="pressure_nonwetting" />
      </secondary_variables>
      <specific_body_force>0 0</specific_body_force>
      <mass_lumping>true</mass_lumping>
      <diffusion_coeff_component_b>diff_coef_b</diffusion_coeff_component_b>
      <diffusion_coeff_component_a>diff_coef_a</diffusion_coeff_component_a>
      <temperature>temp</temperature>
    </process>
  </processes>
  <parameters>
    <parameter>
      <name>HEN0</name>
      <type>Constant</type>
      <value>7.65E-6</value>
    </parameter>
    <parameter>
      <name>molX_Dirichlet_right</name>
      <type>Constant</type>
      <value>1e-6</value>
    </parameter>
    <parameter>
      <name>pg_Dirichlet_right</name>
      <type>Constant</type>
      <value>1e+6</value>
    </parameter>
    <parameter>
      <name>molX_0</name>
      <type>Constant</type>
      <values>1e-6</values>
    </parameter>
    <parameter>
      <name>pg_0</name>
      <type>Constant</type>
      <value>1e+6</value>
    </parameter>
    <parameter>
      <name>T_neumann</name>
      <type>Constant</type>
      <value>5.57e-6</value>
    </parameter>
    <parameter>
      <name>henry_const</name>
      <type>Constant</type>
      <value>7.65e-6</value>
    </parameter>
    <parameter>
      <name>diff_coef_b</name>
      <type>Constant</type>
      <value>9.467e-2</value>
    </parameter>
    <parameter>
      <name>diff_coef_a</name>
      <type>Constant</type>
      <value>0.0</value>
    </parameter>
    <parameter>
      <name>temp</name>
      <type>Constant</type>
      <value>303.15</value>
    </parameter>
    <parameter>
      <name>constant_porosity_parameter</name>
      <type>Constant</type>
      <value>0.15</value>
    </parameter>
    <parameter>
      <name>kappa1</name>
      <type>Constant</type>
      <values>5.e-20</values>
    </parameter>
  </parameters>
  <time_loop>
    <processes>
      <process ref="GW23">
        <nonlinear_solver>basic_newton</nonlinear_solver>
        <convergence_criterion>
          <type>DeltaX</type>
          <norm_type>NORM2</norm_type>
          <abstol>1.e-6</abstol>
        </convergence_criterion>
        <time_discretization>
          <type>BackwardEuler</type>
        </time_discretization>
        <time_stepping>
          <type>FixedTimeStepping</type>
          <t_initial>0</t_initial>
          <t_end>10000.0</t_end>
          <timesteps>
            <pair>
              <repeat>10</repeat>
              <delta_t>200</delta_t>
            </pair>
          </timesteps>
        </time_stepping>
      </process>
    </processes>
    <output>
      <type>VTK</type>
      <prefix>twophaseflow_small</prefix>
      <timesteps>
        <pair>
          <repeat>1</repeat>
          <each_steps>50</each_steps>
        </pair>
      </timesteps>
      <output_iteration_results>false</output_iteration_results>
      <variables>
        <variable>overall_mass_density</variable>
        <variable>liquid_pressure</variable>
        <variable>saturation</variable>
        <variable>pressure_nonwetting</variable>
      </variables>
      <suffix>ts{:timestep}_t_{:time}</suffix>
    </output>
  </time_loop>
  <process_variables>
    <process_variable>
      <name>liquid_pressure</name>
      <components>1</components>
      <order>1</order>
      <initial_condition>pg_0</initial_condition>
      <boundary_conditions>
        <boundary_condition>
          <geometrical_set>H2_H20_2D</geometrical_set>
          <geometry>PLY_RIGHT</geometry>
          <type>Dirichlet</type>
          <parameter>pg_Dirichlet_right</parameter>
        </boundary_condition>
        <boundary_condition>
          <geometrical_set>H2_H20_2D</geometrical_set>
          <geometry>PLY_LEFT</geometry>
          <type>Neumann</type>
          <parameter>T_neumann</parameter>
        </boundary_condition>
      </boundary_conditions>
    </process_variable>
    <process_variable>
      <name>overall_mass_density</name>
      <components>1</components>
      <order>1</order>
      <initial_condition>molX_0</initial_condition>
      <boundary_conditions>
        <boundary_condition>
          <geometrical_set>H2_H20_2D</geometrical_set>
          <geometry>PLY_RIGHT</geometry>
          <type>Dirichlet</type>
          <parameter>molX_Dirichlet_right</parameter>
        </boundary_condition>
        <boundary_condition>
          <geometrical_set>H2_H20_2D</geometrical_set>
          <geometry>PLY_LEFT</geometry>
          <type>Neumann</type>
          <parameter>T_neumann</parameter>
        </boundary_condition>
      </boundary_conditions>
    </process_variable>
  </process_variables>
  <nonlinear_solvers>
    <nonlinear_solver>
      <name>basic_newton</name>
      <type>Newton</type>
      <max_iter>50</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 ilu -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>
      <petsc>
        <prefix>multiphase</prefix>
        <parameters>-gw_ksp_type cg -gw_pc_type bjacobi -gw_ksp_rtol 1e-16 -gw_ksp_max_it 10000</parameters>
      </petsc>
    </linear_solver>
  </linear_solvers>
</OpenGeoSysProject>