OGS
3D_2U_BHE_powerBC.prj
<OpenGeoSysProject>
  <mesh>3D_2U_BHE_benchmark.vtu</mesh>
  <geometry>3D_2U_BHE.gml</geometry>
  <processes>
    <process>
      <name>HeatTransportBHE</name>
      <type>HEAT_TRANSPORT_BHE</type>
      <integration_order>2</integration_order>
      <process_variables>
        <process_variable>temperature_soil</process_variable>
        <process_variable>temperature_BHE1</process_variable>
      </process_variables>
      <borehole_heat_exchangers>
        <borehole_heat_exchanger>
          <type>2U</type>
          <flow_and_temperature_control>
            <type>PowerCurveConstantFlow</type>
            <power_curve>heating_load</power_curve>
            <flow_rate>2.0e-4</flow_rate>
          </flow_and_temperature_control>
          <borehole>
            <length>18.0</length>
            <diameter>0.13</diameter>
          </borehole>
          <grout>
            <density>2190.0</density>
            <porosity>0.0</porosity>
            <specific_heat_capacity>1141.55</specific_heat_capacity>
            <thermal_conductivity>1</thermal_conductivity>
          </grout>
          <pipes>
            <inlet>
              <diameter>0.0378</diameter>
              <wall_thickness>0.0029</wall_thickness>
              <wall_thermal_conductivity>0.42</wall_thermal_conductivity>
            </inlet>
            <outlet>
              <diameter>0.0378</diameter>
              <wall_thickness>0.0029</wall_thickness>
              <wall_thermal_conductivity>0.42</wall_thermal_conductivity>
            </outlet>
            <distance_between_pipes>0.053</distance_between_pipes>
            <longitudinal_dispersion_length>0.001</longitudinal_dispersion_length>
          </pipes>
          <refrigerant>
            <density>1052</density>
            <viscosity>0.0003</viscosity>
            <specific_heat_capacity>3802.28</specific_heat_capacity>
            <thermal_conductivity>0.48</thermal_conductivity>
            <reference_temperature>22</reference_temperature>
          </refrigerant>
        </borehole_heat_exchanger>
      </borehole_heat_exchangers>
    </process>
  </processes>
  <media>
    <medium id="0">
      <phases>
        <phase>
          <type>AqueousLiquid</type>
          <properties>
            <property>
              <name>phase_velocity</name>
              <type>Constant</type>
              <value>0 0 0</value>
            </property>
            <property>
              <name>specific_heat_capacity</name>
              <type>Constant</type>
              <value>4068</value>
            </property>
            <property>
              <name>density</name>
              <type>Constant</type>
              <value>992.92</value>
            </property>
          </properties>
        </phase>
        <phase>
          <type>Solid</type>
          <properties>
            <property>
              <name>specific_heat_capacity</name>
              <type>Constant</type>
              <value>1778</value>
            </property>
            <property>
              <name>density</name>
              <type>Constant</type>
              <value>1800</value>
            </property>
          </properties>
        </phase>
        <phase>
          <type>Gas</type>
          <properties>
            <property>
              <name>specific_heat_capacity</name>
              <type>Constant</type>
              <value>1000</value>
            </property>
            <property>
              <name>density</name>
              <type>Constant</type>
              <value>2500</value>
            </property>
          </properties>
        </phase>
      </phases>
      <properties>
        <property>
          <name>porosity</name>
          <type>Constant</type>
          <value>0</value>
        </property>
        <property>
          <name>thermal_conductivity</name>
          <type>Constant</type>
          <value>2.78018</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>
      </properties>
    </medium>
  </media>
  <time_loop>
    <processes>
      <process ref="HeatTransportBHE">
        <nonlinear_solver>basic_picard</nonlinear_solver>
        <convergence_criterion>
          <type>DeltaX</type>
          <norm_type>NORM2</norm_type>
          <reltol>1e-6</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>60</repeat>
              <delta_t>60</delta_t>
            </pair>
          </timesteps>
        </time_stepping>
      </process>
    </processes>
    <output>
      <type>VTK</type>
      <prefix>3D_2U_BHE_powerBC</prefix>
      <timesteps>
        <pair>
          <repeat>1</repeat>
          <each_steps>1</each_steps>
        </pair>
      </timesteps>
      <variables>
        <variable>temperature_soil</variable>
        <variable>temperature_BHE1</variable>
      </variables>
      <suffix>ts{:timestep}_t_{:time}</suffix>
    </output>
  </time_loop>
  <parameters>
    <parameter>
      <name>T0</name>
      <type>Constant</type>
      <value>22</value>
    </parameter>
    <parameter>
      <name>T0_BHE1</name>
      <type>Constant</type>
      <values>22 22 22 22 22 22 22 22</values>
    </parameter>
  </parameters>
  <process_variables>
    <process_variable>
      <name>temperature_soil</name>
      <components>1</components>
      <order>1</order>
      <initial_condition>T0</initial_condition>
      <boundary_conditions />
    </process_variable>
    <process_variable>
      <name>temperature_BHE1</name>
      <components>8</components>
      <order>1</order>
      <initial_condition>T0_BHE1</initial_condition>
    </process_variable>
  </process_variables>
  <nonlinear_solvers>
    <nonlinear_solver>
      <name>basic_picard</name>
      <type>Picard</type>
      <max_iter>100</max_iter>
      <linear_solver>general_linear_solver</linear_solver>
    </nonlinear_solver>
  </nonlinear_solvers>
  <linear_solvers>
    <linear_solver>
      <name>general_linear_solver</name>
      <lis>-i cg -p jacobi -tol 1e-16 -maxiter 10000</lis>
      <eigen>
        <solver_type>BiCGSTAB</solver_type>
        <precon_type>ILUT</precon_type>
        <max_iteration_step>1000</max_iteration_step>
        <error_tolerance>1e-16</error_tolerance>
      </eigen>
      <petsc>
        <prefix>gw</prefix>
        <parameters>-gw_ksp_type cg -gw_pc_type bjacobi -gw_ksp_rtol 1e-16 -gw_ksp_max_it 10000</parameters>
      </petsc>
    </linear_solver>
  </linear_solvers>
  <curves>
    <curve>
      <name>heating_load</name>
      <coords>0 3600</coords>
      <values>-157.86 -157.86</values>
    </curve>
  </curves>
</OpenGeoSysProject>