Commit 50439af9 authored by wenqing's avatar wenqing

[TRM/Test] Added the input files of PointHeatSource

parent 3bc70067
......@@ -56,3 +56,34 @@ AddTest(
HT_HeatTransportInStationaryFlow_ts_50_t_50000.000000.vtu HeatTransportInStationaryFlow_ts_50_t_50000.000000.vtu temperature temperature 1e-6 1e-10
HT_HeatTransportInStationaryFlow_ts_50_t_50000.000000.vtu HeatTransportInStationaryFlow_ts_50_t_50000.000000.vtu pressure pressure 1e-10 1e-10
)
AddTest(
NAME ThermoRichardsMechanics_PointHeatSource_THM
PATH ThermoRichardsMechanics/PointHeatSource
EXECUTABLE ogs
EXECUTABLE_ARGS point_heat_source_2D.prj
WRAPPER time
TESTER vtkdiff
REQUIREMENTS NOT (OGS_USE_LIS OR OGS_USE_MPI)
RUNTIME 25
DIFF_DATA
PointHeatSource_ts_5_t_25000.000000.vtu PointHeatSource_ts_5_t_25000.000000.vtu displacement displacement 1e-10 1e-12
PointHeatSource_ts_5_t_25000.000000.vtu PointHeatSource_ts_5_t_25000.000000.vtu temperature temperature 1e-10 1e-12
PointHeatSource_ts_5_t_25000.000000.vtu PointHeatSource_ts_5_t_25000.000000.vtu pressure pressure 1e-10 1e-12
PointHeatSource_ts_5_t_25000.000000.vtu PointHeatSource_ts_5_t_25000.000000.vtu sigma sigma 1e-6 1e-12
PointHeatSource_ts_5_t_25000.000000.vtu PointHeatSource_ts_5_t_25000.000000.vtu epsilon epsilon 1e-16 0
PointHeatSource_ts_10_t_50000.000000.vtu PointHeatSource_ts_10_t_50000.000000.vtu displacement displacement 1e-10 1e-12
PointHeatSource_ts_10_t_50000.000000.vtu PointHeatSource_ts_10_t_50000.000000.vtu temperature temperature 1e-10 1e-12
PointHeatSource_ts_10_t_50000.000000.vtu PointHeatSource_ts_10_t_50000.000000.vtu pressure pressure 1e-10 1e-12
PointHeatSource_ts_10_t_50000.000000.vtu PointHeatSource_ts_10_t_50000.000000.vtu sigma sigma 1e-6 1e-12
PointHeatSource_ts_10_t_50000.000000.vtu PointHeatSource_ts_10_t_50000.000000.vtu epsilon epsilon 1e-16 0
# Compare with the results of THM/Linear/Point_injection/square_1e2.prj with power=100.0
square_1e0_ts_10_t_50000.000000.vtu PointHeatSource_ts_10_t_50000.000000.vtu displacement displacement 5e-6 2e-2
square_1e0_ts_10_t_50000.000000.vtu PointHeatSource_ts_10_t_50000.000000.vtu temperature temperature 2e-2 5e-5
# There are negative pressure in the far field. Due to the constraint in TRM that
# the fluid thermal expansion is only considered when p>0.0. While there is no such constraint in THM
# Therefore, the stress and pressure comparisons are ignored.
#square_1e0_ts_10_t_50000.000000.vtu PointHeatSource_ts_10_t_50000.000000.vtu pressure pressure 2e-9 5e-9
#square_1e0_ts_10_t_50000.000000.vtu PointHeatSource_ts_10_t_50000.000000.vtu sigma sigma 1e-6 1e-12
square_1e0_ts_10_t_50000.000000.vtu PointHeatSource_ts_10_t_50000.000000.vtu epsilon epsilon 5e-5 5e-5
)
<?xml version="1.0" encoding="ISO-8859-1"?>
<OpenGeoSysProject>
<mesh axially_symmetric="true">quarter_002_2nd.vtu</mesh>
<geometry>square_1x1.gml</geometry>
<processes>
<process>
<name>PointHeatSource</name>
<type>THERMO_RICHARDS_MECHANICS</type>
<integration_order>4</integration_order>
<constitutive_relation>
<type>LinearElasticIsotropic</type>
<youngs_modulus>E</youngs_modulus>
<poissons_ratio>nu</poissons_ratio>
</constitutive_relation>
<process_variables>
<temperature>temperature</temperature>
<pressure>pressure</pressure>
<displacement>displacement</displacement>
</process_variables>
<secondary_variables>
<secondary_variable internal_name="sigma" output_name="sigma"/>
<secondary_variable internal_name="epsilon" output_name="epsilon"/>
</secondary_variables>
<specific_body_force>0 0</specific_body_force>
</process>
</processes>
<media>
<medium id="0">
<phases>
<phase>
<type>AqueousLiquid</type>
<properties>
<property>
<name>specific_heat_capacity</name>
<type>Constant</type>
<value>4280.0</value>
</property>
<property>
<name>thermal_conductivity</name>
<type>Constant</type>
<value>0.6</value>
</property>
<property>
<name>density</name>
<type>Linear</type>
<reference_value>999.1</reference_value>
<independent_variable>
<variable_name>temperature</variable_name>
<reference_condition>273.15</reference_condition>
<slope>-4e-4</slope>
</independent_variable>
</property>
<property>
<name>thermal_expansivity</name>
<type>Constant</type>
<value>4.0e-4</value>
</property>
<property>
<name>viscosity</name>
<type>Constant</type>
<value>1.e-3</value>
</property>
</properties>
</phase>
<phase>
<type>Solid</type>
<properties>
<property>
<name>density</name>
<type>Constant</type>
<value>2290</value>
</property>
<property>
<name>thermal_conductivity</name>
<type>Constant</type>
<value>1.838</value>
</property>
<property>
<name>specific_heat_capacity</name>
<type>Constant</type>
<value>917.654</value>
</property>
<property>
<name>thermal_expansivity</name>
<type>Constant</type>
<value>1.5e-5</value>
</property>
</properties>
</phase>
</phases>
<properties>
<property>
<name>saturation</name>
<type>Constant</type>
<value>1</value>
</property>
<property>
<name>relative_permeability</name>
<type>Constant</type>
<value>1</value>
</property>
<property>
<name>permeability</name>
<type>Constant</type>
<value>2e-20</value>
</property>
<property>
<name>porosity</name>
<type>Constant</type>
<value>0.16</value>
</property>
<property>
<name>bishops_effective_stress</name>
<!--type>BishopsSaturationCutoff</type>
<cutoff_value>1.1</cutoff_value-->
<type>BishopsPowerLaw</type>
<exponent>1</exponent>
</property>
<property>
<name>biot_coefficient</name>
<type>Constant</type>
<value>1.0</value>
</property>
</properties>
</medium>
</media>
<time_loop>
<processes>
<process ref="PointHeatSource">
<nonlinear_solver>basic_newton</nonlinear_solver>
<convergence_criterion>
<type>PerComponentDeltaX</type>
<norm_type>NORM2</norm_type>
<reltols>1e-14 1e-12 1e-13 1e-13</reltols>
</convergence_criterion>
<time_discretization>
<type>BackwardEuler</type>
</time_discretization>
<time_stepping>
<type>FixedTimeStepping</type>
<t_initial>0</t_initial>
<t_end>50000</t_end>
<timesteps>
<pair>
<repeat>10</repeat>
<delta_t>5000</delta_t>
</pair>
</timesteps>
</time_stepping>
</process>
</processes>
<output>
<type>VTK</type>
<prefix>PointHeatSource</prefix>
<timesteps>
<pair>
<repeat>2</repeat>
<each_steps>5</each_steps>
</pair>
</timesteps>
<variables>
<variable>displacement</variable>
<variable>pressure</variable>
<variable>temperature</variable>
<variable>sigma</variable>
<variable>epsilon</variable>
</variables>
<suffix>_ts_{:timestep}_t_{:time}</suffix>
</output>
</time_loop>
<parameters>
<parameter>
<name>E</name>
<type>Constant</type>
<value>5000000000</value>
</parameter>
<parameter>
<name>nu</name>
<type>Constant</type>
<value>0.3</value>
</parameter>
<parameter>
<name>T0</name>
<type>Constant</type>
<value>273.15</value>
</parameter>
<parameter>
<name>displacement0</name>
<type>Constant</type>
<values>0 0</values>
</parameter>
<parameter>
<name>pressure_ic</name>
<type>Constant</type>
<values>0</values>
</parameter>
<parameter>
<name>dirichlet0</name>
<type>Constant</type>
<value>0</value>
</parameter>
<parameter>
<name>Neumann0</name>
<type>Constant</type>
<value>0</value>
</parameter>
<parameter>
<name>temperature_ic</name>
<type>Constant</type>
<value>273.15</value>
</parameter>
<parameter>
<name>pressure_bc_left</name>
<type>Constant</type>
<value>0</value>
</parameter>
<parameter>
<name>temperature_bc_left</name>
<type>Constant</type>
<value>273.15</value>
</parameter>
<parameter>
<name>temperature_source_term</name>
<type>Constant</type>
<value>100</value>
</parameter>
</parameters>
<process_variables>
<process_variable>
<name>temperature</name>
<components>1</components>
<order>1</order>
<initial_condition>temperature_ic</initial_condition>
<boundary_conditions>
<boundary_condition>
<geometrical_set>square_1x1_geometry</geometrical_set>
<geometry>out</geometry>
<type>Dirichlet</type>
<component>0</component>
<parameter>temperature_bc_left</parameter>
</boundary_condition>
</boundary_conditions>
<source_terms>
<source_term>
<geometrical_set>square_1x1_geometry</geometrical_set>
<geometry>center</geometry>
<type>Nodal</type>
<parameter>temperature_source_term</parameter>
</source_term>
</source_terms>
</process_variable>
<process_variable>
<name>pressure</name>
<components>1</components>
<order>1</order>
<initial_condition>pressure_ic</initial_condition>
<boundary_conditions>
<boundary_condition>
<geometrical_set>square_1x1_geometry</geometrical_set>
<geometry>out</geometry>
<type>Dirichlet</type>
<component>0</component>
<parameter>pressure_bc_left</parameter>
</boundary_condition>
</boundary_conditions>
</process_variable>
<process_variable>
<name>displacement</name>
<components>2</components>
<order>2</order>
<initial_condition>displacement0</initial_condition>
<boundary_conditions>
<boundary_condition>
<geometrical_set>square_1x1_geometry</geometrical_set>
<geometry>bottom</geometry>
<type>Dirichlet</type>
<component>1</component>
<parameter>dirichlet0</parameter>
</boundary_condition>
<boundary_condition>
<geometrical_set>square_1x1_geometry</geometrical_set>
<geometry>left</geometry>
<type>Dirichlet</type>
<component>0</component>
<parameter>dirichlet0</parameter>
</boundary_condition>
</boundary_conditions>
</process_variable>
</process_variables>
<nonlinear_solvers>
<nonlinear_solver>
<name>basic_newton</name>
<type>Newton</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 ilu -tol 1e-16 -maxiter 10000</lis>
<eigen>
<solver_type>BiCGSTAB</solver_type>
<precon_type>ILUT</precon_type>
<max_iteration_step>10000</max_iteration_step>
<error_tolerance>1e-8</error_tolerance>
<scaling>1</scaling>
</eigen>
<petsc>
<prefix>sd</prefix>
<parameters>-sd_ksp_type cg -sd_pc_type bjacobi -sd_ksp_rtol 1e-16 -sd_ksp_max_it 10000</parameters>
</petsc>
</linear_solver>
</linear_solvers>
</OpenGeoSysProject>
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="OpenGeoSysGLI.xsl"?>
<OpenGeoSysGLI xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ogs="http://www.opengeosys.org">
<name>square_1x1_geometry</name>
<points>
<point id="0" x="0" y="0" z="0" name="center"/>
<point id="1" x="0.00204357" y="0" z="0"/>
<point id="2" x="0" y="0.4" z="0"/>
<point id="3" x="0" y="0.6" z="0"/>
<point id="4" x="10" y="0" z="0.0000000000000000e+00"/>
<point id="5" x="9.95185" y="0.980171" z="0.0000000000000000e+00"/>
<point id="6" x="9.80785" y="1.9509" z="0.0000000000000000e+00"/>
<point id="7" x="9.5694" y="2.90285" z="0.0000000000000000e+00"/>
<point id="8" x="9.2388" y="3.82583" z="0.0000000000000000e+00"/>
<point id="9" x="8.81921" y="4.71397" z="0.0000000000000000e+00"/>
<point id="10" x="8.3147" y="5.5557" z="0.0000000000000000e+00"/>
<point id="11" x="7.7301" y="6.34393" z="0.0000000000000000e+00"/>
<point id="12" x="7.07107" y="7.07107" z="0.0000000000000000e+00"/>
<point id="13" x="6.34393" y="7.7301" z="0.0000000000000000e+00"/>
<point id="14" x="5.5557" y="8.3147" z="0.0000000000000000e+00"/>
<point id="15" x="4.71397" y="8.81921" z="0.0000000000000000e+00"/>
<point id="16" x="3.82683" y="9.2388" z="0.0000000000000000e+00"/>
<point id="17" x="2.90285" y="9.5694" z="0.0000000000000000e+00"/>
<point id="18" x="1.9509" y="9.80785" z="0.0000000000000000e+00"/>
<point id="19" x="0.980171" y="9.95185" z="0.0000000000000000e+00"/>
<point id="20" x="0" y="10" z="0.0000000000000000e+00"/>
</points>
<polylines>
<polyline id="0" name="left">
<pnt>0</pnt>
<pnt>20</pnt>
</polyline>
<polyline id="1" name="bottom">
<pnt>0</pnt>
<pnt>4</pnt>
</polyline>
<polyline id="2" name="flux_bc">
<pnt>0</pnt>
<pnt>1</pnt>
</polyline>
<polyline id="3" name="out">
<pnt>4</pnt>
<pnt>5</pnt>
<pnt>6</pnt>
<pnt>7</pnt>
<pnt>8</pnt>
<pnt>9</pnt>
<pnt>10</pnt>
<pnt>11</pnt>
<pnt>12</pnt>
<pnt>13</pnt>
<pnt>14</pnt>
<pnt>15</pnt>
<pnt>16</pnt>
<pnt>17</pnt>
<pnt>18</pnt>
<pnt>19</pnt>
<pnt>20</pnt>
</polyline>
</polylines>
</OpenGeoSysGLI>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment