Skip to content
Snippets Groups Projects
Commit 0c1f7eba authored by wenqing's avatar wenqing
Browse files

[CTest/TH2M] Reused HM/InitialStress

parent bf2da45e
No related branches found
No related tags found
No related merge requests found
......@@ -435,6 +435,24 @@ AddTest(
results_heatpipe_strict_ts_23_t_40000_000000_2.vtu results_heatpipe_strict_ts_23_t_40000_000000_2.vtu saturation saturation 1e-9 1e-8
)
AddTest(
NAME TH2MTotalInitialStress
PATH TH2M/TotalInitialStress
EXECUTABLE ogs
EXECUTABLE_ARGS total_initial_stress_H2M.prj
WRAPPER time
TESTER vtkdiff
REQUIREMENTS NOT OGS_USE_MPI
RUNTIME 1
DIFF_DATA
total_initial_stress_H2M_ts_0_t_0.000000.vtu total_initial_stress_H2M_ts_0_t_0.000000.vtu capillary_pressure capillary_pressure 1.0e-10 1.e-10
total_initial_stress_H2M_ts_0_t_0.000000.vtu total_initial_stress_H2M_ts_0_t_0.000000.vtu p_GR p_GR 1.0e-10 1.e-10
total_initial_stress_H2M_ts_0_t_0.000000.vtu total_initial_stress_H2M_ts_0_t_0.000000.vtu sigma sigma 1.0e-8 1.e-10
total_initial_stress_H2M_ts_1_t_1000000.000000.vtu total_initial_stress_H2M_ts_1_t_1000000.000000.vtu capillary_pressure capillary_pressure 1.0e-10 1.e-10
total_initial_stress_H2M_ts_1_t_1000000.000000.vtu total_initial_stress_H2M_ts_1_t_1000000.000000.vtu p_GR p_GR 1.e-10 1.e-10
total_initial_stress_H2M_ts_1_t_1000000.000000.vtu total_initial_stress_H2M_ts_1_t_1000000.000000.vtu sigma sigma 1.0e-8 1.e-10
)
if(NOT OGS_USE_PETSC)
NotebookTest(NOTEBOOKFILE TH2M/TH2/heatpipe/heatpipe.ipynb RUNTIME 140)
endif()
<?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>cube_1x1x1_geometry</name>
<points>
<point id="0" x="0" y="0" z="0"/>
<point id="1" x="0" y="0" z="1"/>
<point id="2" x="0" y="1" z="1"/>
<point id="3" x="0" y="1" z="0"/>
<point id="4" x="1" y="0" z="0"/>
<point id="5" x="1" y="0" z="1"/>
<point id="6" x="1" y="1" z="1"/>
<point id="7" x="1" y="1" z="0"/>
</points>
<surfaces>
<surface id="0" name="left"><!-- x=0 -->
<element p1="0" p2="1" p3="2"/>
<element p1="0" p2="3" p3="2"/>
</surface>
<surface id="1" name="right"><!-- x=1 -->
<element p1="4" p2="6" p3="5"/>
<element p1="4" p2="6" p3="7"/>
</surface>
<surface id="2" name="top"><!-- z=1 -->
<element p1="1" p2="2" p3="5"/>
<element p1="5" p2="2" p3="6"/>
</surface>
<surface id="3" name="bottom"><!-- z=0 -->
<element p1="0" p2="3" p3="4"/>
<element p1="4" p2="3" p3="7"/>
</surface>
<surface id="4" name="front"><!-- y=0 -->
<element p1="0" p2="1" p3="4"/>
<element p1="4" p2="1" p3="5"/>
</surface>
<surface id="5" name="back"><!-- y=1 -->
<element p1="2" p2="3" p3="6"/>
<element p1="6" p2="3" p3="7"/>
</surface>
</surfaces>
</OpenGeoSysGLI>
<?xml version="1.0"?>
<VTKFile type="UnstructuredGrid" version="1.0" byte_order="LittleEndian" header_type="UInt64">
<UnstructuredGrid>
<Piece NumberOfPoints="8" NumberOfCells="1" >
<PointData>
<DataArray type="UInt64" Name="bulk_node_ids" format="appended" RangeMin="0" RangeMax="7" offset="0" />
</PointData>
<CellData>
<DataArray type="UInt64" Name="bulk_element_ids" format="appended" RangeMin="0" RangeMax="0" offset="96" />
</CellData>
<Points>
<DataArray type="Float64" Name="Points" NumberOfComponents="3" format="appended" RangeMin="0" RangeMax="1.7320508076" offset="120" />
</Points>
<Cells>
<DataArray type="Int64" Name="connectivity" format="appended" RangeMin="" RangeMax="" offset="388" />
<DataArray type="Int64" Name="offsets" format="appended" RangeMin="" RangeMax="" offset="484" />
<DataArray type="UInt8" Name="types" format="appended" RangeMin="" RangeMax="" offset="508" />
</Cells>
</Piece>
</UnstructuredGrid>
<AppendedData encoding="base64">
_QAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAgAAAAAAAAADAAAAAAAAAAQAAAAAAAAABQAAAAAAAAAGAAAAAAAAAAcAAAAAAAAACAAAAAAAAAAAAAAAAAAAAA==wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADwPwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPA/AAAAAAAAAAAAAAAAAADwPwAAAAAAAPA/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA8D8AAAAAAADwPwAAAAAAAAAAAAAAAAAA8D8AAAAAAAAAAAAAAAAAAPA/AAAAAAAA8D8AAAAAAADwPwAAAAAAAPA/AAAAAAAA8D8=QAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAwAAAAAAAAACAAAAAAAAAAQAAAAAAAAABQAAAAAAAAAHAAAAAAAAAAYAAAAAAAAACAAAAAAAAAAIAAAAAAAAAA==AQAAAAAAAAAM
</AppendedData>
</VTKFile>
<?xml version="1.0" encoding="ISO-8859-1"?>
<OpenGeoSysProject>
<mesh>cube_1x1x1_hex_1e0.vtu</mesh>
<geometry>cube_1x1x1.gml</geometry>
<processes>
<process>
<name>H2M</name>
<type>TH2M</type>
<integration_order>2</integration_order>
<constitutive_relation>
<type>LinearElasticIsotropic</type>
<youngs_modulus>YoungModulus</youngs_modulus>
<poissons_ratio>PoissonRatio</poissons_ratio>
</constitutive_relation>
<initial_stress type = "total">sigma0</initial_stress>
<process_variables>
<gas_pressure>p_GR</gas_pressure>
<capillary_pressure>capillary_pressure</capillary_pressure>
<temperature>T</temperature>
<displacement>displacement</displacement>
</process_variables>
<reference_temperature>T0</reference_temperature>
<specific_body_force>0 0.0 0.0</specific_body_force>
<secondary_variables>
<secondary_variable internal_name="sigma" output_name="sigma"/>
</secondary_variables>
</process>
</processes>
<media>
<medium>
<phases>
<phase>
<type>Gas</type>
<properties>
<property>
<name>viscosity</name>
<type>Constant</type>
<value>1e-9</value>
</property>
<property>
<name>density</name>
<type>Constant</type>
<value>1e-2</value>
</property>
<property>
<name>specific_heat_capacity</name>
<type>Constant</type>
<value>1</value>
</property>
<property>
<name>thermal_conductivity</name>
<type>Constant</type>
<value>1</value>
</property>
<property>
<name>thermal_expansivity</name>
<type>Constant</type>
<value>0</value>
</property>
<property>
<name>molar_mass</name>
<type>Constant</type>
<value>0.0</value>
</property>
</properties>
</phase>
<phase>
<type>AqueousLiquid</type>
<properties>
<property>
<name>viscosity</name>
<type>Constant</type>
<value>1e-3</value>
</property>
<property>
<name>density</name>
<type>Constant</type>
<value>1e+3</value>
</property>
<property>
<name>specific_heat_capacity</name>
<type>Constant</type>
<value>1</value>
</property>
<property>
<name>thermal_conductivity</name>
<type>Constant</type>
<value>1</value>
</property>
</properties>
</phase>
<phase>
<type>Solid</type>
<properties>
<property>
<name>density</name>
<type>Constant</type>
<value>0.0</value>
</property>
<property>
<name>specific_heat_capacity</name>
<type>Constant</type>
<value>1</value>
</property>
<property>
<name>thermal_conductivity</name>
<type>Constant</type>
<value>1</value>
</property>
<property>
<!-- linear thermal expansivity -->
<name>thermal_expansivity</name>
<type>Constant</type>
<value>0</value>
</property>
</properties>
</phase>
</phases>
<properties>
<property>
<name>biot_coefficient</name>
<type>Constant</type>
<value>0.8</value>
</property>
<property>
<name>porosity</name>
<type>Constant</type>
<value>0.2</value>
</property>
<property>
<name>storage</name>
<type>Constant</type>
<value>0.0</value>
</property>
<property>
<name>permeability</name>
<type>Constant</type>
<value>1e-9</value>
</property>
<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>bishops_effective_stress</name>
<type>BishopsPowerLaw</type>
<exponent>1</exponent>
</property>
<property>
<name>relative_permeability_nonwetting_phase</name>
<type>Constant</type>
<value>1</value>
</property>
<property>
<name>thermal_conductivity</name>
<type>EffectiveThermalConductivityPorosityMixing</type>
</property>
</properties>
</medium>
</media>
<parameters>
<parameter>
<name>YoungModulus</name>
<type>Constant</type>
<value>1.e9</value>
</parameter>
<parameter>
<name>PoissonRatio</name>
<type>Constant</type>
<value>0.40</value>
</parameter>
<parameter>
<name>p_c0</name>
<type>Constant</type>
<values>-0.9e+6</values>
</parameter>
<parameter>
<name>p_g0</name>
<type>Constant</type>
<values>1e+5</values>
</parameter>
<parameter>
<name>T0</name>
<type>Constant</type>
<value>293.0</value>
</parameter>
<parameter>
<name>u0</name>
<type>Constant</type>
<values>0.0 0.0 0.0</values>
</parameter>
<parameter>
<name>zero</name>
<type>Constant</type>
<value>0</value>
</parameter>
<parameter>
<name>sigma0</name>
<type>Constant</type>
<values>-0.8e6 -0.8e6 -2.0e6 0.0 0.0 0.0</values>
</parameter>
<parameter>
<name>load</name>
<type>Constant</type>
<value>-2e+6</value>
</parameter>
</parameters>
<process_variables>
<process_variable>
<name>capillary_pressure</name>
<components>1</components>
<order>1</order>
<initial_condition>p_c0</initial_condition>
<boundary_conditions>
<boundary_condition>
<geometrical_set>cube_1x1x1_geometry</geometrical_set>
<geometry>top</geometry>
<type>Dirichlet</type>
<parameter>p_c0</parameter>
</boundary_condition>
<boundary_condition>
<geometrical_set>cube_1x1x1_geometry</geometrical_set>
<geometry>bottom</geometry>
<type>Dirichlet</type>
<parameter>p_c0</parameter>
</boundary_condition>
</boundary_conditions>
</process_variable>
<process_variable>
<name>p_GR</name>
<components>1</components>
<order>1</order>
<initial_condition>p_g0</initial_condition>
<boundary_conditions>
<boundary_condition>
<geometrical_set>cube_1x1x1_geometry</geometrical_set>
<geometry>top</geometry>
<type>Dirichlet</type>
<parameter>p_g0</parameter>
</boundary_condition>
<boundary_condition>
<geometrical_set>cube_1x1x1_geometry</geometrical_set>
<geometry>bottom</geometry>
<type>Dirichlet</type>
<parameter>p_g0</parameter>
</boundary_condition>
</boundary_conditions>
</process_variable>
<process_variable>
<name>displacement</name>
<components>3</components>
<order>1</order>
<initial_condition>u0</initial_condition>
<boundary_conditions>
<boundary_condition>
<geometrical_set>cube_1x1x1_geometry</geometrical_set>
<geometry>top</geometry>
<type>Neumann</type>
<component>2</component>
<parameter>load</parameter>
</boundary_condition>
<boundary_condition>
<geometrical_set>cube_1x1x1_geometry</geometrical_set>
<geometry>left</geometry>
<type>Dirichlet</type>
<component>0</component>
<parameter>zero</parameter>
</boundary_condition>
<boundary_condition>
<geometrical_set>cube_1x1x1_geometry</geometrical_set>
<geometry>right</geometry>
<type>Dirichlet</type>
<component>0</component>
<parameter>zero</parameter>
</boundary_condition>
<boundary_condition>
<geometrical_set>cube_1x1x1_geometry</geometrical_set>
<geometry>front</geometry>
<type>Dirichlet</type>
<component>1</component>
<parameter>zero</parameter>
</boundary_condition>
<boundary_condition>
<geometrical_set>cube_1x1x1_geometry</geometrical_set>
<geometry>back</geometry>
<type>Dirichlet</type>
<component>1</component>
<parameter>zero</parameter>
</boundary_condition>
<boundary_condition>
<geometrical_set>cube_1x1x1_geometry</geometrical_set>
<geometry>bottom</geometry>
<type>Dirichlet</type>
<component>2</component>
<parameter>zero</parameter>
</boundary_condition>
</boundary_conditions>
</process_variable>
<process_variable>
<name>T</name>
<components>1</components>
<order>1</order>
<initial_condition>T0</initial_condition>
<boundary_conditions>
<boundary_condition>
<mesh>cube_1x1x1_hex_1e0</mesh>
<type>Dirichlet</type>
<parameter>T0</parameter>
</boundary_condition>
</boundary_conditions>
</process_variable>
</process_variables>
<time_loop>
<processes>
<process ref="H2M">
<nonlinear_solver>basic_newton</nonlinear_solver>
<convergence_criterion>
<type>PerComponentDeltaX</type>
<norm_type>NORM2</norm_type>
<abstols>1e-9 1e-9 1e-9 1e-9 1e-9 1e-9</abstols>
</convergence_criterion>
<time_discretization>
<type>BackwardEuler</type>
</time_discretization>
<time_stepping>
<type>FixedTimeStepping</type>
<t_initial>0</t_initial>
<t_end>1e6</t_end>
<timesteps>
<pair>
<repeat>1</repeat>
<delta_t>1e6</delta_t>
</pair>
</timesteps>
</time_stepping>
</process>
</processes>
<output>
<type>VTK</type>
<prefix>total_initial_stress_H2M</prefix>
<timesteps>
<pair>
<repeat>1</repeat>
<each_steps>1</each_steps>
</pair>
</timesteps>
<variables>
<variable>displacement</variable>
<variable>capillary_pressure</variable>
<variable>p_GR</variable>
<variable>sigma</variable>
</variables>
<suffix>_ts_{:timestep}_t_{:time}</suffix>
</output>
</time_loop>
<nonlinear_solvers>
<nonlinear_solver>
<name>basic_newton</name>
<type>Newton</type>
<max_iter>10</max_iter>
<linear_solver>general_linear_solver</linear_solver>
</nonlinear_solver>
</nonlinear_solvers>
<linear_solvers>
<linear_solver>
<name>general_linear_solver</name>
<eigen>
<solver_type>SparseLU</solver_type>
<scaling>true</scaling>
</eigen>
</linear_solver>
</linear_solvers>
</OpenGeoSysProject>
<?xml version="1.0"?>
<VTKFile type="UnstructuredGrid" version="1.0" byte_order="LittleEndian" header_type="UInt64" compressor="vtkZLibDataCompressor">
<UnstructuredGrid>
<FieldData>
<DataArray type="Int8" Name="OGS_VERSION" NumberOfTuples="25" format="appended" RangeMin="45" RangeMax="121" offset="0" />
</FieldData>
<Piece NumberOfPoints="8" NumberOfCells="1" >
<PointData>
<DataArray type="Float64" Name="capillary_pressure" format="appended" RangeMin="-900000" RangeMax="-900000" offset="88" />
<DataArray type="Float64" Name="displacement" NumberOfComponents="3" format="appended" RangeMin="0" RangeMax="0" offset="160" />
<DataArray type="Float64" Name="p_GR" format="appended" RangeMin="100000" RangeMax="100000" offset="220" />
<DataArray type="Float64" Name="sigma" NumberOfComponents="6" format="appended" RangeMin="1200000" RangeMax="1200000" offset="288" />
</PointData>
<CellData>
</CellData>
<Points>
<DataArray type="Float64" Name="Points" NumberOfComponents="3" format="appended" RangeMin="0" RangeMax="1.7320508076" offset="392" />
</Points>
<Cells>
<DataArray type="Int64" Name="connectivity" format="appended" RangeMin="" RangeMax="" offset="476" />
<DataArray type="Int64" Name="offsets" format="appended" RangeMin="" RangeMax="" offset="560" />
<DataArray type="UInt8" Name="types" format="appended" RangeMin="" RangeMax="" offset="620" />
</Cells>
</Piece>
</UnstructuredGrid>
<AppendedData encoding="base64">
_AQAAAAAAAAAAgAAAAAAAABkAAAAAAAAAIQAAAAAAAAA=eF4z0zPVM9A1sTDVTU9JNEtJNUg010vJLCqpBABQywdAAQAAAAAAAAAAgAAAAAAAAEAAAAAAAAAAEwAAAAAAAAA=eF5jYGBgcCjXPshAJg0Ais8NGQ==AQAAAAAAAAAAgAAAAAAAAMAAAAAAAAAADAAAAAAAAAA=eF5jYBjaAAAAwAABAQAAAAAAAAAAgAAAAAAAAEAAAAAAAAAAEQAAAAAAAAA=eF5jYACCrB8ODGTSAIl/DRE=AQAAAAAAAAAAgAAAAAAAAIABAAAAAAAALQAAAAAAAAA=eF5jYEAFTEDc4G90kIEEQIr6f////6+nofo/JKr/RqJ6UsOHhQG/egADcR33AQAAAAAAAAAAgAAAAAAAAMAAAAAAAAAAHAAAAAAAAAA=eF5jYMAHPtjjlcaQh/GJ1YdLPy51mDQAp2EONQ==AQAAAAAAAAAAgAAAAAAAAEAAAAAAAAAAHgAAAAAAAAA=eF5jYIAARijNDKWZoDQLlGaF0uxQmg1KAwAC8AAdAQAAAAAAAAAAgAAAAAAAAAgAAAAAAAAACwAAAAAAAAA=eF7jYIAAAABIAAk=AQAAAAAAAAAAgAAAAAAAAAEAAAAAAAAACQAAAAAAAAA=eF7jAQAADQAN
</AppendedData>
</VTKFile>
<?xml version="1.0"?>
<VTKFile type="UnstructuredGrid" version="1.0" byte_order="LittleEndian" header_type="UInt64" compressor="vtkZLibDataCompressor">
<UnstructuredGrid>
<FieldData>
<DataArray type="Int8" Name="OGS_VERSION" NumberOfTuples="25" format="appended" RangeMin="45" RangeMax="121" offset="0" />
</FieldData>
<Piece NumberOfPoints="8" NumberOfCells="1" >
<PointData>
<DataArray type="Float64" Name="capillary_pressure" format="appended" RangeMin="-900000" RangeMax="-900000" offset="88" />
<DataArray type="Float64" Name="displacement" NumberOfComponents="3" format="appended" RangeMin="0" RangeMax="0" offset="160" />
<DataArray type="Float64" Name="p_GR" format="appended" RangeMin="100000" RangeMax="100000" offset="220" />
<DataArray type="Float64" Name="sigma" NumberOfComponents="6" format="appended" RangeMin="1200000" RangeMax="1200000" offset="288" />
</PointData>
<CellData>
</CellData>
<Points>
<DataArray type="Float64" Name="Points" NumberOfComponents="3" format="appended" RangeMin="0" RangeMax="1.7320508076" offset="392" />
</Points>
<Cells>
<DataArray type="Int64" Name="connectivity" format="appended" RangeMin="" RangeMax="" offset="476" />
<DataArray type="Int64" Name="offsets" format="appended" RangeMin="" RangeMax="" offset="560" />
<DataArray type="UInt8" Name="types" format="appended" RangeMin="" RangeMax="" offset="620" />
</Cells>
</Piece>
</UnstructuredGrid>
<AppendedData encoding="base64">
_AQAAAAAAAAAAgAAAAAAAABkAAAAAAAAAIQAAAAAAAAA=eF4z0zPVM9A1sTDVTU9JNEtJNUg010vJLCqpBABQywdAAQAAAAAAAAAAgAAAAAAAAEAAAAAAAAAAEwAAAAAAAAA=eF5jYGBgcCjXPshAJg0Ais8NGQ==AQAAAAAAAAAAgAAAAAAAAMAAAAAAAAAADAAAAAAAAAA=eF5jYBjaAAAAwAABAQAAAAAAAAAAgAAAAAAAAEAAAAAAAAAAEQAAAAAAAAA=eF5jYACCrB8ODGTSAIl/DRE=AQAAAAAAAAAAgAAAAAAAAIABAAAAAAAALQAAAAAAAAA=eF5jYEAFTEDc4G90kIEEQIr6f////6+nofo/JKr/RqJ6UsOHhQG/egADcR33AQAAAAAAAAAAgAAAAAAAAMAAAAAAAAAAHAAAAAAAAAA=eF5jYMAHPtjjlcaQh/GJ1YdLPy51mDQAp2EONQ==AQAAAAAAAAAAgAAAAAAAAEAAAAAAAAAAHgAAAAAAAAA=eF5jYIAARijNDKWZoDQLlGaF0uxQmg1KAwAC8AAdAQAAAAAAAAAAgAAAAAAAAAgAAAAAAAAACwAAAAAAAAA=eF7jYIAAAABIAAk=AQAAAAAAAAAAgAAAAAAAAAEAAAAAAAAACQAAAAAAAAA=eF7jAQAADQAN
</AppendedData>
</VTKFile>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment