OGS
2D_single_fracture_HTC_Monolithic.prj
<OpenGeoSysProject>
  <meshes>
    <mesh>2D_single_fracture.vtu</mesh>
    <mesh>fracture_outflow.vtu</mesh>
    <mesh>fracture_injection.vtu</mesh>
  </meshes>
  <processes>
    <process>
      <name>hc</name>
      <type>ComponentTransport</type>
      <integration_order>2</integration_order>
      <process_variables>
        <concentration>Con</concentration>
        <pressure>pressure</pressure>
        <temperature>temperature</temperature>
      </process_variables>
      <specific_body_force>0 0</specific_body_force>
      <secondary_variables>
        <secondary_variable internal_name="darcy_velocity" output_name="darcy_velocity" />
      </secondary_variables>
      <numerical_stabilization>
        <type>FluxCorrectedTransport</type>
      </numerical_stabilization>
      <aperture_size>
        <parameter>fracture_thickness</parameter>
      </aperture_size>
    </process>
  </processes>
  <media>
    <medium id="0">
      <phases>
        <phase>
          <type>AqueousLiquid</type>
          <components>
            <component>
              <name>Con</name>
              <properties>
                <property>
                  <name>pore_diffusion</name>
                  <type>Constant</type>
                  <value>1.6e-10</value>
                </property>
                <property>
                  <name>retardation_factor</name>
                  <type>Constant</type>
                  <value>1.0</value>
                </property>
                <property>
                  <name>decay_rate</name>
                  <type>Constant</type>
                  <value>2.1e-9</value>
                </property>
              </properties>
            </component>
          </components>
          <properties>
            <property>
              <name>density</name>
              <type>Constant</type>
              <value>1e3</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>
          </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>2700</value>
            </property>
            <property>
              <name>specific_heat_capacity</name>
              <type>Constant</type>
              <value>1000</value>
            </property>
          </properties>
        </phase>
      </phases>
      <properties>
        <property>
          <name>permeability</name>
          <type>Constant</type>
          <value>1e-100</value>
        </property>
        <property>
          <name>porosity</name>
          <type>Constant</type>
          <value>0.01</value>
        </property>
        <property>
          <name>longitudinal_dispersivity</name>
          <type>Constant</type>
          <value>0.0</value>
        </property>
        <property>
          <name>transversal_dispersivity</name>
          <type>Constant</type>
          <value>0.0</value>
        </property>
        <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>thermal_conductivity</name>
          <type>Constant</type>
          <value>3</value>
        </property>
      </properties>
    </medium>
    <medium id="1">
      <phases>
        <phase>
          <type>AqueousLiquid</type>
          <components>
            <component>
              <name>Con</name>
              <properties>
                <property>
                  <name>pore_diffusion</name>
                  <type>Constant</type>
                  <value>0</value>
                </property>
                <property>
                  <name>retardation_factor</name>
                  <type>Constant</type>
                  <value>1.0</value>
                </property>
                <property>
                  <name>decay_rate</name>
                  <type>Constant</type>
                  <value>2.1e-9</value>
                </property>
              </properties>
            </component>
          </components>
          <properties>
            <property>
              <name>density</name>
              <type>Constant</type>
              <value>1e3</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>
          </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>2850</value>
            </property>
            <property>
              <name>specific_heat_capacity</name>
              <type>Constant</type>
              <value>0.0</value>
            </property>
          </properties>
        </phase>
      </phases>
      <properties>
        <property>
          <name>permeability</name>
          <type>Constant</type>
          <value>8.3333e-10</value>
        </property>
        <property>
          <name>porosity</name>
          <type>Constant</type>
          <value>1</value>
        </property>
        <property>
          <name>longitudinal_dispersivity</name>
          <type>Constant</type>
          <value>0.5</value>
        </property>
        <property>
          <name>transversal_dispersivity</name>
          <type>Constant</type>
          <value>0.0</value>
        </property>
        <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>thermal_conductivity</name>
          <type>Constant</type>
          <value>0</value>
        </property>
      </properties>
    </medium>
  </media>
  <time_loop>
    <processes>
      <process ref="hc">
        <nonlinear_solver>basic_picard</nonlinear_solver>
        <convergence_criterion>
          <type>DeltaX</type>
          <norm_type>NORM2</norm_type>
          <reltol>1e-14</reltol>
        </convergence_criterion>
        <time_discretization>
          <type>BackwardEuler</type>
        </time_discretization>
        <time_stepping>
          <type>FixedTimeStepping</type>
          <t_initial>0.0</t_initial>
          <t_end>3600</t_end>
          <timesteps>
            <pair>
              <repeat>1</repeat>
              <delta_t>600</delta_t>
            </pair>
          </timesteps>
        </time_stepping>
      </process>
    </processes>
    <output>
      <type>VTK</type>
      <prefix>2D_single_fracture_HTC_mono</prefix>
      <timesteps>
        <pair>
          <repeat>1</repeat>
          <each_steps>1</each_steps>
        </pair>
      </timesteps>
      <variables>
        <variable>Con</variable>
        <variable>pressure</variable>
        <variable>temperature</variable>
        <variable>darcy_velocity</variable>
      </variables>
      <suffix>ts{:timestep}_t_{:time}</suffix>
    </output>
  </time_loop>
  <parameters>
    <parameter>
      <name>p_Dirichlet_left_HC</name>
      <type>Constant</type>
      <value>0.9722</value>
    </parameter>
    <parameter>
      <name>p_Dirichlet_left_HT</name>
      <type>Constant</type>
      <value>972222</value>
    </parameter>
    <parameter>
      <name>p_Dirichlet_right</name>
      <type>Constant</type>
      <value>0</value>
    </parameter>
    <parameter>
      <name>p0</name>
      <type>Constant</type>
      <value>0</value>
    </parameter>
    <parameter>
      <name>T0</name>
      <type>Constant</type>
      <value>353</value>
    </parameter>
    <parameter>
      <name>c0</name>
      <type>Constant</type>
      <value>0</value>
    </parameter>
    <parameter>
      <name>T_inlet</name>
      <type>Constant</type>
      <value>303</value>
    </parameter>
    <parameter>
      <name>c_inlet</name>
      <type>Constant</type>
      <value>1</value>
    </parameter>
    <parameter>
      <name>fracture_thickness</name>
      <type>Group</type>
      <group_id_property>MaterialIDs</group_id_property>
      <index_values>
        <index>0</index>
        <value>1</value>
      </index_values>
      <index_values>
        <index>1</index>
        <value>1e-4</value>
      </index_values>
    </parameter>
  </parameters>
  <process_variables>
    <process_variable>
      <name>pressure</name>
      <components>1</components>
      <order>1</order>
      <initial_condition>p0</initial_condition>
      <boundary_conditions>
        <boundary_condition>
          <mesh>fracture_injection</mesh>
          <type>Dirichlet</type>
          <parameter>p_Dirichlet_left_HT</parameter>
        </boundary_condition>
        <boundary_condition>
          <mesh>fracture_outflow</mesh>
          <type>Dirichlet</type>
          <parameter>p_Dirichlet_right</parameter>
        </boundary_condition>
      </boundary_conditions>
    </process_variable>
    <process_variable>
      <name>temperature</name>
      <components>1</components>
      <order>1</order>
      <initial_condition>T0</initial_condition>
      <boundary_conditions>
        <boundary_condition>
          <mesh>fracture_injection</mesh>
          <type>Dirichlet</type>
          <parameter>T_inlet</parameter>
        </boundary_condition>
      </boundary_conditions>
    </process_variable>
    <process_variable>
      <name>Con</name>
      <components>1</components>
      <order>1</order>
      <initial_condition>c0</initial_condition>
      <boundary_conditions>
        <boundary_condition>
          <mesh>fracture_injection</mesh>
          <type>Dirichlet</type>
          <parameter>c_inlet</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>
  <test_definition>
    <vtkdiff>
      <regex>2D_single_fracture_HTC_ts_.*_t_.*.vtu</regex>
      <field>Con</field>
      <absolute_tolerance>1e-12</absolute_tolerance>
      <relative_tolerance>1e-12</relative_tolerance>
    </vtkdiff>
    <vtkdiff>
      <regex>2D_single_fracture_HTC_ts_.*_t_.*.vtu</regex>
      <field>temperature</field>
      <absolute_tolerance>1e-12</absolute_tolerance>
      <relative_tolerance>1e-12</relative_tolerance>
    </vtkdiff>
    <vtkdiff>
      <regex>2D_single_fracture_HTC_ts_.*_t_.*.vtu</regex>
      <field>pressure</field>
      <absolute_tolerance>1e-12</absolute_tolerance>
      <relative_tolerance>1e-12</relative_tolerance>
    </vtkdiff>
    <vtkdiff>
      <regex>2D_single_fracture_HTC_ts_.*_t_.*.vtu</regex>
      <field>darcy_velocity</field>
      <absolute_tolerance>1e-12</absolute_tolerance>
      <relative_tolerance>1e-12</relative_tolerance>
    </vtkdiff>
  </test_definition>
</OpenGeoSysProject>