Loading [MathJax]/extensions/tex2jax.js
OGS
p_cap.xml
<OpenGeoSysProjectDiff base_file="base.prj">
  <add sel=".//process_variables/process_variable[name="displacement"]">
    <initial_condition>displacement0</initial_condition>
  </add>
  <add sel=".//processes/process">
    <initial_stress>initial_stress</initial_stress>
  </add>
  <add sel=".//parameters">
    <parameter>
      <name>initial_stress</name>
      <type>Function</type>
      <expression>-1e5 * 0.25 * x</expression>
      <expression>-1e5 * 0.25 * x</expression>
      <expression>0</expression>
      <expression>0</expression>
    </parameter>
  </add>
  <add sel=".//process_variables/process_variable[name="gas_pressure"]">
    <initial_condition>zero</initial_condition>
  </add>
  <add sel=".//process_variables/process_variable[name="capillary_pressure"]">
    <initial_condition>p_cap_initial</initial_condition>
  </add>
  <add sel=".//process_variables/process_variable[name="capillary_pressure"]/boundary_conditions">
    <boundary_condition>
      <mesh>surface_x_max</mesh>
      <type>Dirichlet</type>
      <component>0</component>
      <parameter>p_cap_right</parameter>
    </boundary_condition>
  </add>
  <add sel=".//parameters">
    <parameter>
      <name>p_cap_right</name>
      <type>Constant</type>
      <value>2e5</value>
    </parameter>
    <parameter>
      <name>p_cap_initial</name>
      <type>Function</type>
      <expression>2e5 * 0.25 * x</expression>
    </parameter>
  </add>
  <add sel=".//process_variables/process_variable[name="temperature"]">
    <initial_condition>zero</initial_condition>
  </add>
  <add sel=".//time_loop/output">
    <prefix>p_cap</prefix>
  </add>
  <add sel=".//time_loop/submesh_residuum_output">
    <prefix>p_cap_{:meshname}</prefix>
  </add>
  <add sel=".//time_loop/output/variables">
    <variable>HeatFlowRate</variable>
    <variable>GasMassFlowRate</variable>
    <variable>LiquidMassFlowRate</variable>
    <variable>NodalForces</variable>
  </add>
  <add sel=".//time_loop/submesh_residuum_output/variables">
    <variable>HeatFlowRate</variable>
    <variable>GasMassFlowRate</variable>
    <variable>LiquidMassFlowRate</variable>
    <variable>NodalForces</variable>
  </add>
  <add sel="./">
    <test_definition>
      <vtkdiff>
        <regex>p_cap.*_ts_[0-9]*_.*.vtu</regex>
        <field>temperature_interpolated</field>
        <absolute_tolerance>1e-15</absolute_tolerance>
        <relative_tolerance>0</relative_tolerance>
      </vtkdiff>
      <vtkdiff>
        <regex>p_cap.*_ts_[0-9]*_.*.vtu</regex>
        <field>HeatFlowRate</field>
        <absolute_tolerance>1e-15</absolute_tolerance>
        <relative_tolerance>0</relative_tolerance>
      </vtkdiff>
      <vtkdiff>
        <regex>p_cap.*_ts_[0-9]*_.*.vtu</regex>
        <field>gas_pressure_interpolated</field>
        <absolute_tolerance>6.4e-14</absolute_tolerance>
        <relative_tolerance>0</relative_tolerance>
      </vtkdiff>
      <vtkdiff>
        <regex>p_cap.*_ts_[0-9]*_.*.vtu</regex>
        <field>GasMassFlowRate</field>
        <absolute_tolerance>1e-15</absolute_tolerance>
        <relative_tolerance>0</relative_tolerance>
      </vtkdiff>
      <vtkdiff>
        <regex>p_cap.*_ts_[0-9]*_.*.vtu</regex>
        <field>capillary_pressure_interpolated</field>
        <absolute_tolerance>1.2e-10</absolute_tolerance>
        <relative_tolerance>0</relative_tolerance>
      </vtkdiff>
      <vtkdiff>
        <regex>p_cap.*_ts_[0-9]*_.*.vtu</regex>
        <field>LiquidMassFlowRate</field>
        <absolute_tolerance>1e-15</absolute_tolerance>
        <relative_tolerance>0</relative_tolerance>
      </vtkdiff>
      <vtkdiff>
        <regex>p_cap.*_ts_[0-9]*_.*.vtu</regex>
        <field>displacement</field>
        <absolute_tolerance>1e-15</absolute_tolerance>
        <relative_tolerance>0</relative_tolerance>
      </vtkdiff>
      <vtkdiff>
        <regex>p_cap.*_ts_[0-9]*_.*.vtu</regex>
        <field>NodalForces</field>
        <absolute_tolerance>1.5e-11</absolute_tolerance>
        <relative_tolerance>0</relative_tolerance>
      </vtkdiff>
    </test_definition>
  </add>
</OpenGeoSysProjectDiff>