OGS
resaturation.prj
<OpenGeoSysProject>
  <meshes>
    <mesh axially_symmetric="false">meshes/cube_1e0_1x1x1_hex8.vtu</mesh>
    <mesh axially_symmetric="false">meshes/cube_1e0_1x1x1_hex8_whole_surface.vtu</mesh>
    <mesh axially_symmetric="false">meshes/cube_1e0_1x1x1_hex8_x0.vtu</mesh>
    <mesh axially_symmetric="false">meshes/cube_1e0_1x1x1_hex8_y0.vtu</mesh>
    <mesh axially_symmetric="false">meshes/cube_1e0_1x1x1_hex8_z0.vtu</mesh>
    <mesh axially_symmetric="false">meshes/cube_1e0_1x1x1_hex8_x1.vtu</mesh>
    <mesh axially_symmetric="false">meshes/cube_1e0_1x1x1_hex8_y1.vtu</mesh>
    <mesh axially_symmetric="false">meshes/cube_1e0_1x1x1_hex8_z1.vtu</mesh>
  </meshes>
  <processes>
    <process>
      <name>TRM</name>
      <type>THERMO_RICHARDS_MECHANICS</type>
      <subtype>StressSaturation_StrainPressureTemperature</subtype>
      <integration_order>3</integration_order>
      <constitutive_relation>
        <type>MFront</type>
        <behaviour>BentoniteBehaviour</behaviour>
        <library path_is_relative_to_prj_file="false">libOgsMFrontBehaviourBentoniteGeneralModForCTestsOnly</library>
        <initial_values>
          <state_variable name="e" parameter="e0" />
          <state_variable name="em" parameter="em0" />
          <state_variable name="eM" parameter="eM0" />
          <state_variable name="SrM" parameter="SrM0" />
          <state_variable name="a_scan" parameter="a_scan0" />
          <state_variable name="re" parameter="re0" />
        </initial_values>
      </constitutive_relation>
      <process_variables>
        <temperature>temperature</temperature>
        <pressure>pressure</pressure>
        <displacement>displacement</displacement>
      </process_variables>
      <secondary_variables>
        <secondary_variable internal_name="sigma_total" output_name="sigma_total" />
        <secondary_variable internal_name="epsilon" output_name="epsilon" />
      </secondary_variables>
      <specific_body_force>0 0 0</specific_body_force>
      <initial_stress type="total">initial_stress</initial_stress>
    </process>
  </processes>
  <media>
    <medium id="0">
      <phases>
        <phase>
          <type>AqueousLiquid</type>
          <properties>
            <property>
              <name>specific_heat_capacity</name>
              <type>Constant</type>
              <value>4280.0</value>
            </property>
            <property>
              <name>thermal_conductivity</name>
              <type>Constant</type>
              <value>0.6</value>
            </property>
            <property>
              <name>density</name>
              <type>Constant</type>
              <value>999.1</value>
            </property>
            <property>
              <name>thermal_expansivity</name>
              <type>Constant</type>
              <value>1e-5</value>
            </property>
            <property>
              <name>viscosity</name>
              <type>Constant</type>
              <value>1.e-3</value>
            </property>
          </properties>
        </phase>
        <phase>
          <type>Solid</type>
          <properties>
            <property>
              <name>density</name>
              <type>Constant</type>
              <value>2290</value>
            </property>
            <property>
              <name>thermal_conductivity</name>
              <type>Constant</type>
              <value>1.838</value>
            </property>
            <property>
              <name>specific_heat_capacity</name>
              <type>Constant</type>
              <value>917.654</value>
            </property>
            <property>
              <name>thermal_expansivity</name>
              <type>Constant</type>
              <value>1e-5</value>
            </property>
          </properties>
        </phase>
      </phases>
      <properties>
        <property>
          <name>saturation</name>
          <type>Constant</type>
          <value>0.345</value>
        </property>
        <property>
          <name>relative_permeability</name>
          <type>Constant</type>
          <value>1</value>
        </property>
        <property>
          <name>permeability</name>
          <type>Constant</type>
          <value>2e-20</value>
        </property>
        <property>
          <name>porosity</name>
          <type>Constant</type>
          <value>0.16</value>
        </property>
        <property>
          <name>bishops_effective_stress</name>
          <type>BishopsPowerLaw</type>
          <exponent>1.0</exponent>
        </property>
        <property>
          <name>biot_coefficient</name>
          <type>Constant</type>
          <value>1.0</value>
        </property>
        <property>
          <name>thermal_conductivity</name>
          <type>EffectiveThermalConductivityPorosityMixing</type>
        </property>
      </properties>
    </medium>
  </media>
  <time_loop>
    <processes>
      <process ref="TRM">
        <nonlinear_solver>basic_newton</nonlinear_solver>
        <convergence_criterion>
          <type>PerComponentDeltaX</type>
          <norm_type>INFINITY_N</norm_type>
          <abstols>1e-9 1e-6 1e-6 1e-9 1e-9</abstols>
        </convergence_criterion>
        <time_discretization>
          <type>BackwardEuler</type>
        </time_discretization>
        <time_stepping>
          <type>FixedTimeStepping</type>
          <t_initial>0</t_initial>
          <t_end>6</t_end>
          <timesteps>
            <pair>
              <repeat>1</repeat>
              <delta_t>0.0125</delta_t>
            </pair>
          </timesteps>
        </time_stepping>
      </process>
    </processes>
    <output>
      <type>VTK</type>
      <prefix>resaturation</prefix>
      <timesteps>
        <pair>
          <repeat>1</repeat>
          <each_steps>1</each_steps>
        </pair>
      </timesteps>
      <variables />
      <suffix>ts{:timestep}_t_{:time}</suffix>
    </output>
  </time_loop>
  <parameters>
    <parameter>
      <mesh>cube_1e0_1x1x1_hex8</mesh>
      <name>initial_stress</name>
      <type>Function</type>
      <expression>-2e6</expression>
      <expression>-2e6</expression>
      <expression>-2e6</expression>
      <expression>0</expression>
      <expression>0</expression>
      <expression>0</expression>
    </parameter>
    <parameter>
      <name>e0</name>
      <type>Constant</type>
      <value>0.9</value>
    </parameter>
    <parameter>
      <name>em0</name>
      <type>Constant</type>
      <value>0.0</value>
    </parameter>
    <parameter>
      <name>eM0</name>
      <type>Constant</type>
      <value>0.0</value>
    </parameter>
    <parameter>
      <name>SrM0</name>
      <type>Constant</type>
      <value>0.0</value>
    </parameter>
    <parameter>
      <name>a_scan0</name>
      <type>Constant</type>
      <value>0.0</value>
    </parameter>
    <parameter>
      <name>re0</name>
      <type>Constant</type>
      <value>0.0</value>
    </parameter>
    <parameter>
      <name>displacement0</name>
      <type>Constant</type>
      <values>0 0 0</values>
    </parameter>
    <parameter>
      <name>pressure_ic</name>
      <type>Constant</type>
      <values>-110e6</values>
    </parameter>
    <parameter>
      <name>temperature_ic</name>
      <type>Constant</type>
      <value>273.15</value>
    </parameter>
    <parameter>
      <name>zero</name>
      <type>Constant</type>
      <value>0</value>
    </parameter>
    <parameter>
      <name>one</name>
      <type>Constant</type>
      <value>1</value>
    </parameter>
    <parameter>
      <name>pressure_bc</name>
      <type>CurveScaled</type>
      <curve>p_curve</curve>
      <parameter>one</parameter>
    </parameter>
    <parameter>
      <name>stress_xx</name>
      <type>CurveScaled</type>
      <curve>sigma_curve</curve>
      <parameter>one</parameter>
    </parameter>
  </parameters>
  <curves>
    <curve>
      <name>p_curve</name>
      <coords>0.0 6.0</coords>
      <values>-110e6 0.0</values>
    </curve>
    <curve>
      <name>sigma_curve</name>
      <coords>0.0 6.0</coords>
      <values>-2e6 -2e6</values>
    </curve>
  </curves>
  <process_variables>
    <process_variable>
      <name>displacement</name>
      <components>3</components>
      <order>1</order>
      <initial_condition>displacement0</initial_condition>
      <boundary_conditions>
        <boundary_condition>
          <mesh>cube_1e0_1x1x1_hex8_x0</mesh>
          <type>Dirichlet</type>
          <component>0</component>
          <parameter>zero</parameter>
        </boundary_condition>
        <boundary_condition>
          <mesh>cube_1e0_1x1x1_hex8_y0</mesh>
          <type>Dirichlet</type>
          <component>1</component>
          <parameter>zero</parameter>
        </boundary_condition>
        <boundary_condition>
          <mesh>cube_1e0_1x1x1_hex8_z0</mesh>
          <type>Dirichlet</type>
          <component>2</component>
          <parameter>zero</parameter>
        </boundary_condition>
        <boundary_condition>
          <mesh>cube_1e0_1x1x1_hex8_x1</mesh>
          <type>Neumann</type>
          <component>0</component>
          <parameter>stress_xx</parameter>
        </boundary_condition>
        <boundary_condition>
          <mesh>cube_1e0_1x1x1_hex8_y1</mesh>
          <type>Dirichlet</type>
          <component>1</component>
          <parameter>zero</parameter>
        </boundary_condition>
        <boundary_condition>
          <mesh>cube_1e0_1x1x1_hex8_z1</mesh>
          <type>Dirichlet</type>
          <component>2</component>
          <parameter>zero</parameter>
        </boundary_condition>
      </boundary_conditions>
    </process_variable>
    <process_variable>
      <name>pressure</name>
      <components>1</components>
      <order>1</order>
      <initial_condition>pressure_ic</initial_condition>
      <boundary_conditions>
        <boundary_condition>
          <mesh>cube_1e0_1x1x1_hex8_whole_surface</mesh>
          <type>Dirichlet</type>
          <component>0</component>
          <parameter>pressure_bc</parameter>
        </boundary_condition>
      </boundary_conditions>
    </process_variable>
    <process_variable>
      <name>temperature</name>
      <components>1</components>
      <order>1</order>
      <initial_condition>temperature_ic</initial_condition>
      <boundary_conditions>
        <boundary_condition>
          <mesh>cube_1e0_1x1x1_hex8_whole_surface</mesh>
          <type>Dirichlet</type>
          <component>0</component>
          <parameter>temperature_ic</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>
      <eigen>
        <solver_type>SparseLU</solver_type>
        <scaling>1</scaling>
      </eigen>
      <petsc>
        <parameters>-ksp_type cg -pc_type lu -ksp_rtol 1.e-14 -ksp_atol 1.e-14 -ksp_max_it 4000</parameters>
      </petsc>
    </linear_solver>
  </linear_solvers>
  <test_definition>
    <vtkdiff>
      <regex>resaturation_ts_.*_t_.*[.]vtu</regex>
      <field>epsilon_ip</field>
      <absolute_tolerance>7.9e-08</absolute_tolerance>
      <relative_tolerance>0.0</relative_tolerance>
    </vtkdiff>
    <vtkdiff>
      <regex>resaturation_ts_.*_t_.*[.]vtu</regex>
      <field>material_state_variable_RungeKutta_InternalStateVariables[0]_ip</field>
      <absolute_tolerance>0.0</absolute_tolerance>
      <relative_tolerance>0.0</relative_tolerance>
    </vtkdiff>
    <vtkdiff>
      <regex>resaturation_ts_.*_t_.*[.]vtu</regex>
      <field>material_state_variable_RungeKutta_InternalStateVariables[1]_ip</field>
      <absolute_tolerance>0.0</absolute_tolerance>
      <relative_tolerance>0.0</relative_tolerance>
    </vtkdiff>
    <vtkdiff>
      <regex>resaturation_ts_.*_t_.*[.]vtu</regex>
      <field>material_state_variable_RungeKutta_InternalStateVariables[2]_ip</field>
      <absolute_tolerance>7.9e-09</absolute_tolerance>
      <relative_tolerance>0.0</relative_tolerance>
    </vtkdiff>
    <vtkdiff>
      <regex>resaturation_ts_.*_t_.*[.]vtu</regex>
      <field>material_state_variable_RungeKutta_InternalStateVariables[3]_ip</field>
      <absolute_tolerance>2.4e-07</absolute_tolerance>
      <relative_tolerance>0.0</relative_tolerance>
    </vtkdiff>
    <vtkdiff>
      <regex>resaturation_ts_.*_t_.*[.]vtu</regex>
      <field>material_state_variable_SrM_ip</field>
      <absolute_tolerance>2.1e-11</absolute_tolerance>
      <relative_tolerance>0.0</relative_tolerance>
    </vtkdiff>
    <vtkdiff>
      <regex>resaturation_ts_.*_t_.*[.]vtu</regex>
      <field>material_state_variable_a_scan_ip</field>
      <absolute_tolerance>0.0</absolute_tolerance>
      <relative_tolerance>0.0</relative_tolerance>
    </vtkdiff>
    <vtkdiff>
      <regex>resaturation_ts_.*_t_.*[.]vtu</regex>
      <field>material_state_variable_eM_ip</field>
      <absolute_tolerance>3.1e-07</absolute_tolerance>
      <relative_tolerance>0.0</relative_tolerance>
    </vtkdiff>
    <vtkdiff>
      <regex>resaturation_ts_.*_t_.*[.]vtu</regex>
      <field>material_state_variable_e_ip</field>
      <absolute_tolerance>1.6e-07</absolute_tolerance>
      <relative_tolerance>0.0</relative_tolerance>
    </vtkdiff>
    <vtkdiff>
      <regex>resaturation_ts_.*_t_.*[.]vtu</regex>
      <field>material_state_variable_em_ip</field>
      <absolute_tolerance>3.7e-07</absolute_tolerance>
      <relative_tolerance>0.0</relative_tolerance>
    </vtkdiff>
    <vtkdiff>
      <regex>resaturation_ts_.*_t_.*[.]vtu</regex>
      <field>material_state_variable_re_ip</field>
      <absolute_tolerance>4.2e-07</absolute_tolerance>
      <relative_tolerance>0.0</relative_tolerance>
    </vtkdiff>
    <vtkdiff>
      <regex>resaturation_ts_.*_t_.*[.]vtu</regex>
      <field>pressure</field>
      <absolute_tolerance>8.2e-07</absolute_tolerance>
      <relative_tolerance>0.0</relative_tolerance>
    </vtkdiff>
    <vtkdiff>
      <regex>resaturation_ts_.*_t_.*[.]vtu</regex>
      <field>saturation_ip</field>
      <absolute_tolerance>2.2e-12</absolute_tolerance>
      <relative_tolerance>0.0</relative_tolerance>
    </vtkdiff>
    <vtkdiff>
      <regex>resaturation_ts_.*_t_.*[.]vtu</regex>
      <field>sigma_total_ip</field>
      <absolute_tolerance>8.3</absolute_tolerance>
      <relative_tolerance>0.0</relative_tolerance>
    </vtkdiff>
  </test_definition>
</OpenGeoSysProject>