OGS
square_5500x5500_staggered_scheme_adaptive_dt.prj
<OpenGeoSysProject>
  <mesh>square_5500x5500.vtu</mesh>
  <geometry>square_5500x5500.gml</geometry>
  <processes>
    <process>
      <name>ConstViscosityThermalConvection</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 -9.81</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>specific_heat_capacity</name>
              <type>Constant</type>
              <value>4200</value>
            </property>
            <property>
              <name>thermal_conductivity</name>
              <type>Constant</type>
              <value>0.65</value>
            </property>
            <property>
              <name>density</name>
              <type>Linear</type>
              <reference_value>1000</reference_value>
              <independent_variable>
                <variable_name>temperature</variable_name>
                <slope>-4.3e-4</slope>
                <reference_condition>20</reference_condition>
              </independent_variable>
            </property>
            <property>
              <name>viscosity</name>
              <type>Constant</type>
              <value>1.0e-3</value>
            </property>
          </properties>
        </phase>
        <phase>
          <type>Solid</type>
          <properties>
            <property>
              <name>storage</name>
              <type>Constant</type>
              <value>0.0</value>
            </property>
            <property>
              <name>density</name>
              <type>Constant</type>
              <value>0.0</value>
            </property>
            <property>
              <name>thermal_conductivity</name>
              <type>Constant</type>
              <value>3.0</value>
            </property>
            <property>
              <name>specific_heat_capacity</name>
              <type>Constant</type>
              <value>0</value>
            </property>
          </properties>
        </phase>
      </phases>
      <properties>
        <property>
          <name>thermal_longitudinal_dispersivity</name>
          <type>Constant</type>
          <value>0</value>
        </property>
        <property>
          <name>thermal_transversal_dispersivity</name>
          <type>Constant</type>
          <value>0</value>
        </property>
        <property>
          <name>permeability</name>
          <type>Constant</type>
          <value>1.e-14 0 0 1.e-14</value>
        </property>
        <property>
          <name>porosity</name>
          <type>Constant</type>
          <value>0.001</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="ConstViscosityThermalConvection">
        <nonlinear_solver>picard_T</nonlinear_solver>
        <convergence_criterion>
          <type>DeltaX</type>
          <norm_type>NORM2</norm_type>
          <abstol>1.e-3</abstol>
        </convergence_criterion>
        <time_discretization>
          <type>BackwardEuler</type>
        </time_discretization>
        <time_stepping>
          <type>EvolutionaryPIDcontroller</type>
          <t_initial>0.0</t_initial>
          <t_end>5e10</t_end>
          <dt_guess>1</dt_guess>
          <dt_min>1</dt_min>
          <dt_max>4.0e8</dt_max>
          <rel_dt_min>0.1</rel_dt_min>
          <rel_dt_max>5</rel_dt_max>
          <tol>10.0</tol>
        </time_stepping>
      </process>
      <process ref="ConstViscosityThermalConvection">
        <nonlinear_solver>picard_H</nonlinear_solver>
        <convergence_criterion>
          <type>DeltaX</type>
          <norm_type>NORM2</norm_type>
          <abstol>1.e-3</abstol>
        </convergence_criterion>
        <time_discretization>
          <type>BackwardEuler</type>
        </time_discretization>
        <time_stepping>
          <type>EvolutionaryPIDcontroller</type>
          <t_initial>0.0</t_initial>
          <t_end>5e10</t_end>
          <dt_guess>1</dt_guess>
          <dt_min>1</dt_min>
          <dt_max>4e8</dt_max>
          <rel_dt_min>0.1</rel_dt_min>
          <rel_dt_max>10</rel_dt_max>
          <tol>10.0</tol>
        </time_stepping>
      </process>
    </processes>
    <output>
      <type>VTK</type>
      <prefix>ConstViscosityThermalConvectionStaggeredAdaptive_dt</prefix>
      <suffix>t{:time}</suffix>
      <timesteps>
        <pair>
          <repeat>1</repeat>
          <each_steps>149</each_steps>
        </pair>
      </timesteps>
      <variables>
        <variable>T</variable>
        <variable>darcy_velocity</variable>
        <variable>p</variable>
      </variables>
      <fixed_output_times>5.0e9 2.e10</fixed_output_times>
    </output>
  </time_loop>
  <parameters>
    <parameter>
      <name>lambda_fluid</name>
      <type>Constant</type>
      <value>0.65</value>
    </parameter>
    <parameter>
      <name>alpha_l</name>
      <type>Constant</type>
      <value>0.0</value>
    </parameter>
    <parameter>
      <name>alpha_t</name>
      <type>Constant</type>
      <value>0.0</value>
    </parameter>
    <parameter>
      <name>T0</name>
      <type>MeshNode</type>
      <field_name>initial_temperature</field_name>
    </parameter>
    <parameter>
      <name>P0</name>
      <type>MeshNode</type>
      <field_name>initial_pressure</field_name>
    </parameter>
    <parameter>
      <name>p_Dirichlet_topleft</name>
      <type>Constant</type>
      <value>0</value>
    </parameter>
    <parameter>
      <name>t_Dirichlet_bottom</name>
      <type>Constant</type>
      <value>170</value>
    </parameter>
    <parameter>
      <name>t_Dirichlet_top</name>
      <type>Constant</type>
      <value>20</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>
          <geometrical_set>square_1x1_geometry</geometrical_set>
          <geometry>bottom</geometry>
          <type>Dirichlet</type>
          <parameter>t_Dirichlet_bottom</parameter>
        </boundary_condition>
        <boundary_condition>
          <geometrical_set>square_1x1_geometry</geometrical_set>
          <geometry>top</geometry>
          <type>Dirichlet</type>
          <parameter>t_Dirichlet_top</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>
          <geometrical_set>square_1x1_geometry</geometrical_set>
          <geometry>topleft</geometry>
          <type>Dirichlet</type>
          <parameter>p_Dirichlet_topleft</parameter>
        </boundary_condition>
      </boundary_conditions>
    </process_variable>
  </process_variables>
  <nonlinear_solvers>
    <nonlinear_solver>
      <name>picard_T</name>
      <type>Picard</type>
      <max_iter>20</max_iter>
      <linear_solver>linear_solver_T</linear_solver>
    </nonlinear_solver>
    <nonlinear_solver>
      <name>picard_H</name>
      <type>Picard</type>
      <max_iter>20</max_iter>
      <linear_solver>linear_solver_H</linear_solver>
    </nonlinear_solver>
  </nonlinear_solvers>
  <linear_solvers>
    <linear_solver>
      <name>linear_solver_T</name>
      <lis>-i bicgstab -p ilu -tol 1e-20 -maxiter 10000</lis>
      <eigen>
        <solver_type>BiCGSTAB</solver_type>
        <precon_type>ILUT</precon_type>
        <max_iteration_step>10000</max_iteration_step>
        <error_tolerance>1e-20</error_tolerance>
      </eigen>
      <petsc>
        <prefix>T</prefix>
        <parameters>-T_ksp_type bcgs -T_pc_type hypre -T_pc_hypre_type boomeramg -T_ksp_rtol 1e-16 -T_ksp_max_it 3000</parameters>
      </petsc>
    </linear_solver>
    <linear_solver>
      <name>linear_solver_H</name>
      <lis>-i bicgstab -p jacobi -tol 1e-14 -maxiter 10000</lis>
      <eigen>
        <solver_type>BiCGSTAB</solver_type>
        <precon_type>DIAGONAL</precon_type>
        <max_iteration_step>10000</max_iteration_step>
        <error_tolerance>1e-14</error_tolerance>
      </eigen>
      <petsc>
        <prefix>H</prefix>
        <parameters>-H_ksp_type bcgs -H_pc_type hypre -H_pc_hypre_type boomeramg -H_ksp_rtol 1e-16 -H_ksp_max_it 3000</parameters>
      </petsc>
    </linear_solver>
  </linear_solvers>
</OpenGeoSysProject>