OGS
total_initial_stress_HM.prj
<OpenGeoSysProject>
  <mesh>cube_1x1x1_hex_1e0.vtu</mesh>
  <geometry>cube_1x1x1.gml</geometry>
  <processes>
    <process>
      <name>HM</name>
      <type>THERMO_HYDRO_MECHANICS</type>
      <integration_order>2</integration_order>
      <constitutive_relation>
        <type>LinearElasticIsotropic</type>
        <youngs_modulus>YoungModulus</youngs_modulus>
        <poissons_ratio>PoissonRatio</poissons_ratio>
      </constitutive_relation>
      <initial_stress type="total">sigma0</initial_stress>
      <process_variables>
        <pressure>pressure</pressure>
        <displacement>displacement</displacement>
        <temperature>T</temperature>
      </process_variables>
      <specific_body_force>0 0.0 0.0</specific_body_force>
      <secondary_variables>
        <secondary_variable internal_name="sigma" output_name="sigma" />
      </secondary_variables>
    </process>
  </processes>
  <media>
    <medium>
      <phases>
        <phase>
          <type>AqueousLiquid</type>
          <properties>
            <property>
              <name>specific_heat_capacity</name>
              <type>Constant</type>
              <value>1</value>
            </property>
            <property>
              <name>thermal_conductivity</name>
              <type>Constant</type>
              <value>1.</value>
            </property>
            <property>
              <name>density</name>
              <type>Constant</type>
              <value>1e+3</value>
            </property>
            <property>
              <name>viscosity</name>
              <type>Constant</type>
              <value>1.0e-3</value>
            </property>
          </properties>
        </phase>
        <phase>
          <type>Solid</type>
          <properties>
            <property>
              <name>density</name>
              <type>Constant</type>
              <value>0.0</value>
            </property>
            <property>
              <name>thermal_conductivity</name>
              <type>Constant</type>
              <value>0.0</value>
            </property>
            <property>
              <name>specific_heat_capacity</name>
              <type>Constant</type>
              <value>0.0</value>
            </property>
            <property>
              <name>thermal_expansivity</name>
              <type>Constant</type>
              <value>0.0</value>
            </property>
          </properties>
        </phase>
      </phases>
      <properties>
        <property>
          <name>porosity</name>
          <type>Constant</type>
          <value>0.2</value>
        </property>
        <property>
          <name>biot_coefficient</name>
          <type>Constant</type>
          <value>0.8</value>
        </property>
        <property>
          <name>permeability</name>
          <type>Constant</type>
          <value>1.0e-9</value>
        </property>
        <property>
          <name>reference_temperature</name>
          <type>Constant</type>
          <value>293.15</value>
        </property>
        <property>
          <name>thermal_conductivity</name>
          <type>EffectiveThermalConductivityPorosityMixing</type>
        </property>
      </properties>
    </medium>
  </media>
  <parameters>
    <parameter>
      <name>YoungModulus</name>
      <type>Constant</type>
      <value>1.e9</value>
    </parameter>
    <parameter>
      <name>PoissonRatio</name>
      <type>Constant</type>
      <value>0.40</value>
    </parameter>
    <parameter>
      <name>p0</name>
      <type>Constant</type>
      <values>1e+6</values>
    </parameter>
    <parameter>
      <name>T0</name>
      <type>Constant</type>
      <value>293.0</value>
    </parameter>
    <parameter>
      <name>u0</name>
      <type>Constant</type>
      <values>0.0 0.0 0.0</values>
    </parameter>
    <parameter>
      <name>zero</name>
      <type>Constant</type>
      <value>0</value>
    </parameter>
    <parameter>
      <name>sigma0</name>
      <type>Constant</type>
      <values>-0.8e6 -0.8e6 -2.0e6 0.0 0.0 0.0</values>
    </parameter>
    <parameter>
      <name>load</name>
      <type>Constant</type>
      <value>-2e+6</value>
    </parameter>
  </parameters>
  <process_variables>
    <process_variable>
      <name>pressure</name>
      <components>1</components>
      <order>1</order>
      <initial_condition>p0</initial_condition>
      <boundary_conditions>
        <boundary_condition>
          <geometrical_set>cube_1x1x1_geometry</geometrical_set>
          <geometry>top</geometry>
          <type>Dirichlet</type>
          <parameter>p0</parameter>
        </boundary_condition>
        <boundary_condition>
          <geometrical_set>cube_1x1x1_geometry</geometrical_set>
          <geometry>bottom</geometry>
          <type>Dirichlet</type>
          <parameter>p0</parameter>
        </boundary_condition>
      </boundary_conditions>
    </process_variable>
    <process_variable>
      <name>displacement</name>
      <components>3</components>
      <order>1</order>
      <initial_condition>u0</initial_condition>
      <boundary_conditions>
        <boundary_condition>
          <geometrical_set>cube_1x1x1_geometry</geometrical_set>
          <geometry>top</geometry>
          <type>Neumann</type>
          <component>2</component>
          <parameter>load</parameter>
        </boundary_condition>
        <boundary_condition>
          <geometrical_set>cube_1x1x1_geometry</geometrical_set>
          <geometry>left</geometry>
          <type>Dirichlet</type>
          <component>0</component>
          <parameter>zero</parameter>
        </boundary_condition>
        <boundary_condition>
          <geometrical_set>cube_1x1x1_geometry</geometrical_set>
          <geometry>right</geometry>
          <type>Dirichlet</type>
          <component>0</component>
          <parameter>zero</parameter>
        </boundary_condition>
        <boundary_condition>
          <geometrical_set>cube_1x1x1_geometry</geometrical_set>
          <geometry>front</geometry>
          <type>Dirichlet</type>
          <component>1</component>
          <parameter>zero</parameter>
        </boundary_condition>
        <boundary_condition>
          <geometrical_set>cube_1x1x1_geometry</geometrical_set>
          <geometry>back</geometry>
          <type>Dirichlet</type>
          <component>1</component>
          <parameter>zero</parameter>
        </boundary_condition>
        <boundary_condition>
          <geometrical_set>cube_1x1x1_geometry</geometrical_set>
          <geometry>bottom</geometry>
          <type>Dirichlet</type>
          <component>2</component>
          <parameter>zero</parameter>
        </boundary_condition>
      </boundary_conditions>
    </process_variable>
    <process_variable>
      <name>T</name>
      <components>1</components>
      <order>1</order>
      <initial_condition>T0</initial_condition>
      <boundary_conditions>
        <boundary_condition>
          <mesh>cube_1x1x1_hex_1e0</mesh>
          <type>Dirichlet</type>
          <parameter>T0</parameter>
        </boundary_condition>
      </boundary_conditions>
    </process_variable>
  </process_variables>
  <time_loop>
    <processes>
      <process ref="HM">
        <nonlinear_solver>basic_newton</nonlinear_solver>
        <convergence_criterion>
          <type>PerComponentDeltaX</type>
          <norm_type>NORM2</norm_type>
          <abstols>1e-9 1e-9 1e-9 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>1e6</t_end>
          <timesteps>
            <pair>
              <repeat>1</repeat>
              <delta_t>1e6</delta_t>
            </pair>
          </timesteps>
        </time_stepping>
      </process>
    </processes>
    <output>
      <type>VTK</type>
      <prefix>total_initial_stress_HM</prefix>
      <timesteps>
        <pair>
          <repeat>1</repeat>
          <each_steps>1</each_steps>
        </pair>
      </timesteps>
      <variables>
        <variable>displacement</variable>
        <variable>pressure</variable>
        <variable>sigma</variable>
      </variables>
      <suffix>ts{:timestep}_t_{:time}</suffix>
    </output>
  </time_loop>
  <nonlinear_solvers>
    <nonlinear_solver>
      <name>basic_newton</name>
      <type>Newton</type>
      <max_iter>10</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>true</scaling>
      </eigen>
    </linear_solver>
  </linear_solvers>
</OpenGeoSysProject>