OGS
one_anchor.prj
<OpenGeoSysProject>
  <meshes>
    <mesh>square_1x1_quad4_1e2.vtu</mesh>
    <mesh>one_anchor.vtu</mesh>
  </meshes>
  <geometry>square_1x1.gml</geometry>
  <processes>
    <process>
      <name>HM</name>
      <type>HYDRO_MECHANICS</type>
      <integration_order>3</integration_order>
      <constitutive_relation>
        <type>LinearElasticIsotropic</type>
        <youngs_modulus>E</youngs_modulus>
        <poissons_ratio>nu</poissons_ratio>
      </constitutive_relation>
      <process_variables>
        <displacement>displacement</displacement>
        <pressure>pressure</pressure>
      </process_variables>
      <secondary_variables>
        <secondary_variable internal_name="sigma" output_name="sigma" />
        <secondary_variable internal_name="epsilon" output_name="epsilon" />
      </secondary_variables>
      <specific_body_force>0 0</specific_body_force>
    </process>
  </processes>
  <media>
    <medium>
      <phases>
        <phase>
          <type>Gas</type>
          <properties>
            <property>
              <name>viscosity</name>
              <type>Constant</type>
              <value>1e-3</value>
            </property>
            <property>
              <name>density</name>
              <type>Constant</type>
              <value>1.0e-6</value>
            </property>
          </properties>
        </phase>
        <phase>
          <type>Solid</type>
          <properties>
            <property>
              <name>density</name>
              <type>Constant</type>
              <value>1.2e-6</value>
            </property>
          </properties>
        </phase>
      </phases>
      <properties>
        <property>
          <name>porosity</name>
          <type>Constant</type>
          <value>0</value>
        </property>
        <property>
          <name>biot_coefficient</name>
          <type>Constant</type>
          <value>1</value>
        </property>
        <property>
          <name>reference_temperature</name>
          <type>Constant</type>
          <value>293.15</value>
        </property>
        <property>
          <name>permeability</name>
          <type>Constant</type>
          <value>1e-10</value>
        </property>
      </properties>
    </medium>
  </media>
  <time_loop>
    <processes>
      <process ref="HM">
        <nonlinear_solver>basic_newton</nonlinear_solver>
        <convergence_criterion>
          <type>PerComponentDeltaX</type>
          <norm_type>NORM2</norm_type>
          <reltols>1e-12 1e-12 1e-12</reltols>
        </convergence_criterion>
        <time_discretization>
          <type>BackwardEuler</type>
        </time_discretization>
        <time_stepping>
          <type>FixedTimeStepping</type>
          <t_initial>0</t_initial>
          <t_end>1</t_end>
          <timesteps>
            <pair>
              <repeat>10</repeat>
              <delta_t>0.1</delta_t>
            </pair>
          </timesteps>
        </time_stepping>
      </process>
    </processes>
    <output>
      <type>VTK</type>
      <prefix>one_anchor</prefix>
      <output_iteration_results>0</output_iteration_results>
      <timesteps>
        <pair>
          <repeat>1</repeat>
          <each_steps>10</each_steps>
        </pair>
      </timesteps>
      <variables>
        <variable>displacement</variable>
        <variable>pressure</variable>
        <variable>epsilon</variable>
        <variable>sigma</variable>
      </variables>
      <suffix>ts{:timestep}_t_{:time}</suffix>
    </output>
  </time_loop>
  <parameters>
    <parameter>
      <name>E</name>
      <type>Constant</type>
      <value>30000.0</value>
    </parameter>
    <parameter>
      <name>nu</name>
      <type>Constant</type>
      <value>0.2</value>
    </parameter>
    <parameter>
      <name>displacement0</name>
      <type>Constant</type>
      <values>0 0</values>
    </parameter>
    <parameter>
      <name>pressure_ic</name>
      <type>Constant</type>
      <values>0</values>
    </parameter>
    <parameter>
      <name>dirichlet0</name>
      <type>Constant</type>
      <value>0</value>
    </parameter>
    <parameter>
      <name>spring_constant</name>
      <type>Constant</type>
      <values>1e13</values>
    </parameter>
    <parameter>
      <name>displacementTop</name>
      <type>Constant</type>
      <value>0.05</value>
    </parameter>
  </parameters>
  <process_variables>
    <process_variable>
      <name>displacement</name>
      <components>2</components>
      <order>1</order>
      <initial_condition>displacement0</initial_condition>
      <boundary_conditions>
        <boundary_condition>
          <geometrical_set>square_1x1_geometry</geometrical_set>
          <geometry>bottom</geometry>
          <type>Dirichlet</type>
          <component>0</component>
          <parameter>dirichlet0</parameter>
        </boundary_condition>
        <boundary_condition>
          <geometrical_set>square_1x1_geometry</geometrical_set>
          <geometry>top</geometry>
          <type>Dirichlet</type>
          <component>0</component>
          <parameter>dirichlet0</parameter>
        </boundary_condition>
        <boundary_condition>
          <geometrical_set>square_1x1_geometry</geometrical_set>
          <geometry>bottom</geometry>
          <type>Dirichlet</type>
          <component>1</component>
          <parameter>dirichlet0</parameter>
        </boundary_condition>
        <boundary_condition>
          <geometrical_set>square_1x1_geometry</geometrical_set>
          <geometry>top</geometry>
          <type>Dirichlet</type>
          <component>1</component>
          <parameter>displacementTop</parameter>
        </boundary_condition>
      </boundary_conditions>
      <source_terms>
        <source_term>
          <mesh>one_anchor</mesh>
          <type>Anchor</type>
          <component>0</component>
          <anchor_force_constant>spring_constant</anchor_force_constant>
        </source_term>
      </source_terms>
    </process_variable>
    <process_variable>
      <name>pressure</name>
      <components>1</components>
      <order>1</order>
      <initial_condition>pressure_ic</initial_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-16 -maxiter 10000</lis>
      <eigen>
        <solver_type>SparseLU</solver_type>
        <scaling>true</scaling>
      </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>