OGS
Strain_Dependent_Permeability_Test.prj
<OpenGeoSysProject>
  <meshes>
    <mesh axially_symmetric="true">domain.vtu</mesh>
    <mesh axially_symmetric="true">boundary_bottom.vtu</mesh>
    <mesh axially_symmetric="true">boundary_top.vtu</mesh>
    <mesh axially_symmetric="true">boundary_right.vtu</mesh>
    <mesh axially_symmetric="true">boundary_left.vtu</mesh>
  </meshes>
  <processes>
    <process>
      <name>TH2M</name>
      <type>TH2M</type>
      <integration_order>4</integration_order>
      <constitutive_relation>
        <type>LinearElasticIsotropic</type>
        <youngs_modulus>E</youngs_modulus>
        <poissons_ratio>nu</poissons_ratio>
      </constitutive_relation>
      <jacobian_assembler>
        <type>CentralDifferences</type>
        <component_magnitudes>1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0</component_magnitudes>
        <relative_epsilons>1e-03 1e-03 1e-03 1e-03 1e-03 1e-03 1e-03 1e-03 1e-06 1e-06 1e-06 1e-06 1e-08 1e-08 1e-08 1e-08 1e-08 1e-08 1e-08 1e-08 1e-08 1e-08 1e-08 1e-08 1e-08 1e-08 1e-08 1e-08</relative_epsilons>
      </jacobian_assembler>
      <reference_temperature>T0</reference_temperature>
      <process_variables>
        <gas_pressure>gas_pressure</gas_pressure>
        <capillary_pressure>capillary_pressure</capillary_pressure>
        <temperature>temperature</temperature>
        <displacement>displacement</displacement>
      </process_variables>
      <secondary_variables>
        <secondary_variable internal_name="velocity_gas" output_name="velocity_gas" />
        <secondary_variable internal_name="velocity_liquid" output_name="velocity_liquid" />
        <secondary_variable internal_name="sigma" output_name="sigma" />
        <secondary_variable internal_name="epsilon" output_name="epsilon" />
        <secondary_variable internal_name="liquid_density" output_name="liquid_density" />
        <secondary_variable internal_name="gas_density" output_name="gas_density" />
        <secondary_variable internal_name="solid_density" output_name="solid_density" />
        <secondary_variable internal_name="vapour_pressure" output_name="vapour_pressure" />
        <secondary_variable internal_name="porosity" output_name="porosity" />
        <secondary_variable internal_name="saturation" output_name="saturation" />
        <secondary_variable internal_name="mole_fraction_gas" output_name="xnCG" />
        <secondary_variable internal_name="mass_fraction_gas" output_name="xmCG" />
        <secondary_variable internal_name="mass_fraction_liquid" output_name="xmWL" />
        <secondary_variable internal_name="relative_permeability_gas" output_name="k_rel_G" />
        <secondary_variable internal_name="relative_permeability_liquid" output_name="k_rel_L" />
      </secondary_variables>
      <mass_lumping>false</mass_lumping>
      <specific_body_force>0 0</specific_body_force>
      <initial_stress>initial_stress</initial_stress>
    </process>
  </processes>
  <media>
    <medium id="0">
      <phases>
        <phase>
          <type>Gas</type>
          <properties>
            <property>
              <name>specific_heat_capacity</name>
              <type>Constant</type>
              <value>4000</value>
            </property>
            <property>
              <name>thermal_conductivity</name>
              <type>Constant</type>
              <value>.5</value>
            </property>
            <property>
              <name>molar_mass</name>
              <type>Constant</type>
              <value>.0285</value>
            </property>
            <property>
              <name>density</name>
              <type>IdealGasLaw</type>
            </property>
            <property>
              <name>thermal_expansivity</name>
              <type>Constant</type>
              <value>0.0</value>
            </property>
            <property>
              <name>viscosity</name>
              <type>Constant</type>
              <value>1.6e-5</value>
            </property>
          </properties>
        </phase>
        <phase>
          <type>AqueousLiquid</type>
          <properties>
            <property>
              <name>specific_heat_capacity</name>
              <type>Constant</type>
              <value>4000.0</value>
            </property>
            <property>
              <name>thermal_conductivity</name>
              <type>Constant</type>
              <value>.5</value>
            </property>
            <property>
              <name>density</name>
              <type>Constant</type>
              <value>1000</value>
            </property>
            <property>
              <name>thermal_expansivity</name>
              <type>Constant</type>
              <value>1.0e-6</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>2500.0</value>
            </property>
            <property>
              <name>thermal_conductivity</name>
              <type>Constant</type>
              <value>5</value>
            </property>
            <property>
              <name>specific_heat_capacity</name>
              <type>Constant</type>
              <value>14</value>
            </property>
            <property>
              <name>thermal_expansivity</name>
              <type>Constant</type>
              <value>1.0e-8</value>
            </property>
          </properties>
        </phase>
      </phases>
      <properties>
        <property>
          <name>permeability</name>
          <type>StrainDependentPermeability</type>
          <initial_permeability>permeability0</initial_permeability>
          <b1>4000.0</b1>
          <b2>300.0</b2>
          <b3>50.0</b3>
          <minimum_permeability>1.e-20</minimum_permeability>
          <maximum_permeability>1.e-12</maximum_permeability>
        </property>
        <property>
          <name>biot_coefficient</name>
          <type>Constant</type>
          <value>1.0</value>
        </property>
        <property>
          <name>saturation</name>
          <type>SaturationVanGenuchten</type>
          <residual_liquid_saturation>0.1</residual_liquid_saturation>
          <residual_gas_saturation>0.01</residual_gas_saturation>
          <exponent>0.5</exponent>
          <p_b>9.0e04</p_b>
        </property>
        <property>
          <name>relative_permeability_nonwetting_phase</name>
          <type>Constant</type>
          <value>1.0</value>
        </property>
        <property>
          <name>relative_permeability</name>
          <type>Constant</type>
          <value>1.0</value>
        </property>
        <property>
          <name>porosity</name>
          <type>Constant</type>
          <value>0.2</value>
        </property>
        <property>
          <name>thermal_conductivity</name>
          <type>EffectiveThermalConductivityPorosityMixing</type>
        </property>
        <property>
          <name>bishops_effective_stress</name>
          <type>BishopsPowerLaw</type>
          <exponent>1</exponent>
        </property>
      </properties>
    </medium>
  </media>
  <time_loop>
    <processes>
      <process ref="TH2M">
        <nonlinear_solver>basic_newton</nonlinear_solver>
        <convergence_criterion>
          <type>PerComponentDeltaX</type>
          <norm_type>NORM2</norm_type>
          <abstols>1e-6 1e-6 1e-6 1e-6 1e-6</abstols>
        </convergence_criterion>
        <time_discretization>
          <type>BackwardEuler</type>
        </time_discretization>
        <time_stepping>
          <type>FixedTimeStepping</type>
          <t_initial>0</t_initial>
          <t_end>10000</t_end>
          <timesteps>
            <pair>
              <repeat>6</repeat>
              <delta_t>5</delta_t>
            </pair>
            <pair>
              <repeat>7</repeat>
              <delta_t>10</delta_t>
            </pair>
            <pair>
              <repeat>8</repeat>
              <delta_t>25</delta_t>
            </pair>
            <pair>
              <repeat>14</repeat>
              <delta_t>50</delta_t>
            </pair>
            <pair>
              <repeat>10</repeat>
              <delta_t>100</delta_t>
            </pair>
            <pair>
              <repeat>10</repeat>
              <delta_t>300</delta_t>
            </pair>
            <pair>
              <repeat>6</repeat>
              <delta_t>5</delta_t>
            </pair>
            <pair>
              <repeat>7</repeat>
              <delta_t>10</delta_t>
            </pair>
            <pair>
              <repeat>8</repeat>
              <delta_t>25</delta_t>
            </pair>
            <pair>
              <repeat>14</repeat>
              <delta_t>50</delta_t>
            </pair>
            <pair>
              <repeat>10</repeat>
              <delta_t>100</delta_t>
            </pair>
            <pair>
              <repeat>10</repeat>
              <delta_t>300</delta_t>
            </pair>
          </timesteps>
        </time_stepping>
      </process>
    </processes>
    <output>
      <type>VTK</type>
      <prefix>IfG</prefix>
      <timesteps>
        <pair>
          <repeat>1</repeat>
          <each_steps>5</each_steps>
        </pair>
      </timesteps>
      <variables>
        <variable>gas_pressure</variable>
        <variable>gas_pressure_interpolated</variable>
        <variable>capillary_pressure</variable>
        <variable>capillary_pressure_interpolated</variable>
        <variable>temperature</variable>
        <variable>temperature_interpolated</variable>
        <variable>displacement</variable>
        <variable>sigma</variable>
        <variable>epsilon</variable>
        <variable>velocity_gas</variable>
        <variable>velocity_liquid</variable>
        <variable>liquid_pressure</variable>
        <variable>liquid_pressure_interpolated</variable>
        <variable>liquid_density</variable>
        <variable>gas_density</variable>
        <variable>porosity</variable>
        <variable>saturation</variable>
      </variables>
    </output>
  </time_loop>
  <parameters>
    <parameter>
      <name>permeability0</name>
      <type>Constant</type>
      <value>1.0e-17</value>
    </parameter>
    <parameter>
      <name>E</name>
      <type>Constant</type>
      <value>2.5e09</value>
    </parameter>
    <parameter>
      <name>initial_stress</name>
      <type>Function</type>
      <expression>0</expression>
      <expression>-((1-0.2975)*2.e3+0.2975*1.e3)*9.806*(1.-y) + 101325</expression>
      <expression>0</expression>
      <expression>0</expression>
    </parameter>
    <parameter>
      <name>nu</name>
      <type>Constant</type>
      <value>0.3</value>
    </parameter>
    <parameter>
      <name>T0</name>
      <type>Constant</type>
      <value>293.15</value>
    </parameter>
    <parameter>
      <name>one</name>
      <type>Constant</type>
      <value>1.0</value>
    </parameter>
    <parameter>
      <name>zero</name>
      <type>Constant</type>
      <value>0.0</value>
    </parameter>
    <parameter>
      <name>pGR_ic</name>
      <type>Constant</type>
      <value>0.1013e06</value>
    </parameter>
    <parameter>
      <name>pCap_ic</name>
      <type>Constant</type>
      <value>206166.80631</value>
    </parameter>
    <parameter>
      <name>T_ic</name>
      <type>Constant</type>
      <value>293.15</value>
    </parameter>
    <parameter>
      <name>displacement0</name>
      <type>Constant</type>
      <values>0 0</values>
    </parameter>
    <parameter>
      <name>pGR_bottom</name>
      <type>Constant</type>
      <value>0.5e06</value>
    </parameter>
    <parameter>
      <name>stressRamp</name>
      <type>CurveScaled</type>
      <curve>time_ramp_stress</curve>
      <parameter>one</parameter>
    </parameter>
  </parameters>
  <curves>
    <curve>
      <name>time_ramp_stress</name>
      <coords>0 100 5000 5100 10000</coords>
      <values>0.0 2e06 2e06 -2e06 -2e06</values>
    </curve>
  </curves>
  <process_variables>
    <process_variable>
      <name>displacement</name>
      <components>2</components>
      <order>2</order>
      <compensate_non_equilibrium_initial_residuum>true</compensate_non_equilibrium_initial_residuum>
      <initial_condition>displacement0</initial_condition>
      <boundary_conditions>
        <boundary_condition>
          <mesh>boundary_left</mesh>
          <type>Dirichlet</type>
          <component>0</component>
          <parameter>zero</parameter>
        </boundary_condition>
        <boundary_condition>
          <mesh>boundary_top</mesh>
          <type>Dirichlet</type>
          <component>1</component>
          <parameter>zero</parameter>
        </boundary_condition>
        <boundary_condition>
          <mesh>boundary_bottom</mesh>
          <type>Dirichlet</type>
          <component>1</component>
          <parameter>zero</parameter>
        </boundary_condition>
        <boundary_condition>
          <mesh>boundary_right</mesh>
          <type>Neumann</type>
          <component>0</component>
          <parameter>stressRamp</parameter>
        </boundary_condition>
      </boundary_conditions>
    </process_variable>
    <process_variable>
      <name>gas_pressure</name>
      <components>1</components>
      <order>1</order>
      <compensate_non_equilibrium_initial_residuum>true</compensate_non_equilibrium_initial_residuum>
      <initial_condition>pGR_ic</initial_condition>
      <boundary_conditions>
        <boundary_condition>
          <mesh>boundary_bottom</mesh>
          <type>Dirichlet</type>
          <component>0</component>
          <parameter>pGR_bottom</parameter>
        </boundary_condition>
        <boundary_condition>
          <mesh>boundary_top</mesh>
          <type>Dirichlet</type>
          <component>0</component>
          <parameter>pGR_ic</parameter>
        </boundary_condition>
      </boundary_conditions>
    </process_variable>
    <process_variable>
      <name>capillary_pressure</name>
      <components>1</components>
      <order>1</order>
      <compensate_non_equilibrium_initial_residuum>true</compensate_non_equilibrium_initial_residuum>
      <initial_condition>pCap_ic</initial_condition>
      <boundary_conditions>
        <boundary_condition>
          <mesh>boundary_top</mesh>
          <type>Dirichlet</type>
          <component>0</component>
          <parameter>pCap_ic</parameter>
        </boundary_condition>
      </boundary_conditions>
    </process_variable>
    <process_variable>
      <name>temperature</name>
      <components>1</components>
      <order>1</order>
      <compensate_non_equilibrium_initial_residuum>true</compensate_non_equilibrium_initial_residuum>
      <initial_condition>T_ic</initial_condition>
      <boundary_conditions>
        <boundary_condition>
          <mesh>domain</mesh>
          <type>Dirichlet</type>
          <component>0</component>
          <parameter>T_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>
      <lis>-i bicgstab -p ilu -tol 1e-14 -maxiter 10000</lis>
      <eigen>
        <solver_type>BiCGSTAB</solver_type>
        <precon_type>ILUT</precon_type>
        <max_iteration_step>5000</max_iteration_step>
        <error_tolerance>1e-18</error_tolerance>
      </eigen>
      <petsc>
        <prefix>sd</prefix>
        <parameters>-sd_ksp_type cg -sd_pc_type bjacobi -sd_ksp_rtol 1e-16 -sd_ksp_max_it 10000</parameters>
      </petsc>
    </linear_solver>
  </linear_solvers>
</OpenGeoSysProject>