OGS
calculatesurfaceflux_ht_cube_1e4.prj
<OpenGeoSysProject>
  <meshes>
    <mesh>cube_1x1x1_hex_1e4.vtu</mesh>
    <mesh>cube_1x1x1_hex_1e4_complete_surface.vtu</mesh>
    <mesh>cube_1x1x1_hex_1e4_left.vtu</mesh>
    <mesh>cube_1x1x1_hex_1e4_right.vtu</mesh>
  </meshes>
  <processes>
    <process>
      <name>SimpleThermalConvection</name>
      <type>HT</type>
      <integration_order>2</integration_order>
      <process_variables>
        <temperature>T</temperature>
        <pressure>p</pressure>
      </process_variables>
      <specific_body_force>0 0 0</specific_body_force>
      <secondary_variables>
        <secondary_variable internal_name="darcy_velocity" output_name="darcy_velocity" />
      </secondary_variables>
      <calculatesurfaceflux>
        <mesh>cube_1x1x1_hex_1e4_complete_surface</mesh>
        <property_name>specific_flux</property_name>
      </calculatesurfaceflux>
    </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>
                <reference_condition>20</reference_condition>
                <slope>-4.3e-4</slope>
              </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 0 1.e-14 0 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>
    <processes>
      <process ref="SimpleThermalConvection">
        <nonlinear_solver>basic_picard</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>FixedTimeStepping</type>
          <t_initial>0.0</t_initial>
          <t_end>10</t_end>
          <timesteps>
            <pair>
              <repeat>1</repeat>
              <delta_t>1e-7</delta_t>
            </pair>
            <pair>
              <repeat>1</repeat>
              <delta_t>1e-5</delta_t>
            </pair>
            <pair>
              <repeat>1</repeat>
              <delta_t>1e-3</delta_t>
            </pair>
            <pair>
              <repeat>1</repeat>
              <delta_t>1e-1</delta_t>
            </pair>
            <pair>
              <repeat>1</repeat>
              <delta_t>1</delta_t>
            </pair>
            <pair>
              <repeat>1</repeat>
              <delta_t>10</delta_t>
            </pair>
          </timesteps>
        </time_stepping>
      </process>
    </processes>
    <output>
      <type>VTK</type>
      <prefix>ThermalConvection_{:meshname}</prefix>
      <suffix>ts{:timestep}_t_{:time}</suffix>
      <timesteps>
        <pair>
          <repeat>10</repeat>
          <each_steps>1</each_steps>
        </pair>
      </timesteps>
      <variables>
        <variable>T</variable>
        <variable>p</variable>
        <variable>darcy_velocity</variable>
        <variable>specific_flux</variable>
      </variables>
      <meshes>
        <mesh>cube_1x1x1_hex_1e4</mesh>
        <mesh>cube_1x1x1_hex_1e4_complete_surface</mesh>
      </meshes>
    </output>
  </time_loop>
  <parameters>
    <parameter>
      <name>T0</name>
      <type>Constant</type>
      <value>20</value>
    </parameter>
    <parameter>
      <name>P0</name>
      <type>Constant</type>
      <value>2.99e7</value>
    </parameter>
    <parameter>
      <name>p_Dirichlet_left</name>
      <type>Constant</type>
      <value>3e7</value>
    </parameter>
    <parameter>
      <name>p_Dirichlet_right</name>
      <type>Constant</type>
      <value>2.99e7</value>
    </parameter>
    <parameter>
      <name>t_Dirichlet_left</name>
      <type>Constant</type>
      <value>20</value>
    </parameter>
    <parameter>
      <name>t_Dirichlet_right</name>
      <type>Constant</type>
      <value>10</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>cube_1x1x1_hex_1e4_left</mesh>
          <type>Dirichlet</type>
          <parameter>t_Dirichlet_left</parameter>
        </boundary_condition>
        <boundary_condition>
          <mesh>cube_1x1x1_hex_1e4_right</mesh>
          <type>Dirichlet</type>
          <parameter>t_Dirichlet_right</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>cube_1x1x1_hex_1e4_left</mesh>
          <type>Dirichlet</type>
          <parameter>p_Dirichlet_left</parameter>
        </boundary_condition>
        <boundary_condition>
          <mesh>cube_1x1x1_hex_1e4_right</mesh>
          <type>Dirichlet</type>
          <parameter>p_Dirichlet_right</parameter>
        </boundary_condition>
      </boundary_conditions>
    </process_variable>
  </process_variables>
  <nonlinear_solvers>
    <nonlinear_solver>
      <name>basic_picard</name>
      <type>Picard</type>
      <max_iter>1000</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 jacobi -tol 1e-12 -maxiter 10000</lis>
      <petsc>
        <prefix>T</prefix>
        <parameters>-T_ksp_type bcgs -T_pc_type bjacobi -T_ksp_rtol 1e-16 -T_ksp_max_it 4000</parameters>
      </petsc>
      <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>
    </linear_solver>
  </linear_solvers>
</OpenGeoSysProject>