OGS
TemperatureField.prj
<OpenGeoSysProject>
  <meshes>
    <mesh>TemperatureField.vtu</mesh>
    <mesh>TemperatureField_BHLateral.vtu</mesh>
    <mesh>TemperatureField_Right.vtu</mesh>
  </meshes>
  <processes>
    <process>
      <name>TemperatureField</name>
      <type>HT</type>
      <coupling_scheme>staggered</coupling_scheme>
      <integration_order>2</integration_order>
      <process_variables>
        <temperature>T</temperature>
        <pressure>p</pressure>
      </process_variables>
      <specific_body_force>0 0</specific_body_force>
      <secondary_variables>
        <secondary_variable internal_name="darcy_velocity" output_name="darcy_velocity" />
      </secondary_variables>
    </process>
  </processes>
  <media>
    <medium id="0">
      <phases>
        <phase>
          <type>AqueousLiquid</type>
          <properties>
            <property>
              <name>density</name>
              <type>Constant</type>
              <value>1000</value>
            </property>
            <property>
              <name>viscosity</name>
              <type>Constant</type>
              <value>1e-3</value>
            </property>
            <property>
              <name>specific_heat_capacity</name>
              <type>Constant</type>
              <value>4200</value>
            </property>
            <property>
              <name>thermal_conductivity</name>
              <type>Constant</type>
              <value>0.6</value>
            </property>
          </properties>
        </phase>
        <phase>
          <type>Solid</type>
          <properties>
            <property>
              <name>permeability</name>
              <type>Constant</type>
              <value>1e-18 0. 0. 1e-18</value>
            </property>
            <property>
              <name>porosity</name>
              <type>Constant</type>
              <value>0.15</value>
            </property>
            <property>
              <name>storage</name>
              <type>Constant</type>
              <value>0.0</value>
            </property>
            <property>
              <name>density</name>
              <type>Constant</type>
              <value>2720</value>
            </property>
            <property>
              <name>thermal_conductivity</name>
              <type>Constant</type>
              <value>0.955</value>
            </property>
            <property>
              <name>specific_heat_capacity</name>
              <type>Constant</type>
              <value>800</value>
            </property>
          </properties>
        </phase>
      </phases>
      <properties>
        <property>
          <name>thermal_longitudinal_dispersivity</name>
          <type>Constant</type>
          <value>0.0</value>
        </property>
        <property>
          <name>thermal_transversal_dispersivity</name>
          <type>Constant</type>
          <value>0.0</value>
        </property>
        <property>
          <name>permeability</name>
          <type>Constant</type>
          <value>1e-18 0. 0. 1e-18</value>
        </property>
        <property>
          <name>porosity</name>
          <type>Constant</type>
          <value>0.15</value>
        </property>
        <property>
          <name>thermal_conductivity</name>
          <type>EffectiveThermalConductivityPorosityMixing</type>
        </property>
      </properties>
    </medium>
  </media>
  <time_loop>
    <global_process_coupling>
      <max_iter>6</max_iter>
      <convergence_criteria>
        <convergence_criterion>
          <type>DeltaX</type>
          <norm_type>NORM2</norm_type>
          <reltol>1.e-14</reltol>
        </convergence_criterion>
        <convergence_criterion>
          <type>DeltaX</type>
          <norm_type>NORM2</norm_type>
          <reltol>1.e-14</reltol>
        </convergence_criterion>
      </convergence_criteria>
    </global_process_coupling>
    <processes>
      <process ref="TemperatureField">
        <nonlinear_solver>basic_picard</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.0</t_initial>
          <t_end>31536000</t_end>
          <timesteps>
            <pair>
              <repeat>365</repeat>
              <delta_t>86400</delta_t>
            </pair>
          </timesteps>
        </time_stepping>
      </process>
      <process ref="TemperatureField">
        <nonlinear_solver>basic_picard</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.0</t_initial>
          <t_end>31536000</t_end>
          <timesteps>
            <pair>
              <repeat>365</repeat>
              <delta_t>86400</delta_t>
            </pair>
          </timesteps>
        </time_stepping>
      </process>
    </processes>
    <output>
      <type>VTK</type>
      <prefix>TemperatureField</prefix>
      <timesteps>
        <pair>
          <repeat>5</repeat>
          <each_steps>73</each_steps>
        </pair>
      </timesteps>
      <variables>
        <variable>T</variable>
        <variable>p</variable>
        <variable>darcy_velocity</variable>
      </variables>
    </output>
  </time_loop>
  <parameters>
    <parameter>
      <name>T0</name>
      <type>Constant</type>
      <value>289.15</value>
    </parameter>
    <parameter>
      <name>T_Borehole</name>
      <type>Constant</type>
      <value>353.15</value>
    </parameter>
    <parameter>
      <name>p0</name>
      <type>Constant</type>
      <value>1e5</value>
    </parameter>
    <parameter>
      <name>p_Right_Neumann</name>
      <type>Constant</type>
      <value>0</value>
    </parameter>
  </parameters>
  <process_variables>
    <process_variable>
      <name>T</name>
      <components>1</components>
      <order>1</order>
      <initial_condition>T0</initial_condition>
      <boundary_conditions>
        <boundary_condition>
          <mesh>TemperatureField_BHLateral</mesh>
          <type>Dirichlet</type>
          <parameter>T_Borehole</parameter>
        </boundary_condition>
      </boundary_conditions>
    </process_variable>
    <process_variable>
      <name>p</name>
      <components>1</components>
      <order>1</order>
      <initial_condition>p0</initial_condition>
      <boundary_conditions>
        <boundary_condition>
          <mesh>TemperatureField_BHLateral</mesh>
          <type>Dirichlet</type>
          <parameter>p0</parameter>
        </boundary_condition>
        <boundary_condition>
          <mesh>TemperatureField_Right</mesh>
          <type>Neumann</type>
          <parameter>p_Right_Neumann</parameter>
        </boundary_condition>
      </boundary_conditions>
    </process_variable>
  </process_variables>
  <nonlinear_solvers>
    <nonlinear_solver>
      <name>basic_picard</name>
      <type>Picard</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 ilut -tol 1e-8 -maxiter 20000</lis>
      <eigen>
        <solver_type>BiCGSTAB</solver_type>
        <precon_type>ILUT</precon_type>
        <max_iteration_step>10000</max_iteration_step>
        <error_tolerance>1e-12</error_tolerance>
      </eigen>
      <petsc>
        <prefix>hc</prefix>
        <parameters>-hc_ksp_type bcgs -hc_pc_type bjacobi -hc_ksp_rtol 1e-8 -hc_ksp_max_it 20000</parameters>
      </petsc>
    </linear_solver>
  </linear_solvers>
</OpenGeoSysProject>