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

[Test] A benchmark for DirichletWithinTimeInterval

parent 2cb554d0
No related branches found
No related tags found
No related merge requests found
...@@ -82,6 +82,20 @@ AddTest( ...@@ -82,6 +82,20 @@ AddTest(
hex.vtu isotropic_gravity_driven3D_pcs_0_ts_1_t_1.000000.vtu analytic_pressure pressure 1e-6 1e-6 hex.vtu isotropic_gravity_driven3D_pcs_0_ts_1_t_1.000000.vtu analytic_pressure pressure 1e-6 1e-6
) )
AddTest(
NAME LiquidFlowDirichletBCWithinTimeInterval
PATH Parabolic/LiquidFlow/TimeIntervalDirichletBC
EXECUTABLE ogs
EXECUTABLE_ARGS TimeIntervalDirichletBC.prj
WRAPPER time
TESTER vtkdiff
REQUIREMENTS NOT OGS_USE_MPI
DIFF_DATA
mesh2D.vtu dirichlet_bc_wihin_interval_pcs_0_ts_2_t_10.000000.vtu analytical_solution_t_lt_10 pressure 1e-6 1e-12
mesh2D.vtu dirichlet_bc_wihin_interval_pcs_0_ts_4_t_20.000000.vtu analytical_solution_t_gt_10 pressure 1e-6 1e-12
)
#=============================================================================== #===============================================================================
# PETSc/MPI # PETSc/MPI
AddTest( AddTest(
...@@ -153,3 +167,16 @@ AddTest( ...@@ -153,3 +167,16 @@ AddTest(
DIFF_DATA DIFF_DATA
hex.vtu isotropic_gravity_driven3D_pcs_0_ts_1_t_1_000000_0.vtu analytic_pressure pressure 1e-6 1e-6 hex.vtu isotropic_gravity_driven3D_pcs_0_ts_1_t_1_000000_0.vtu analytic_pressure pressure 1e-6 1e-6
) )
AddTest(
NAME LiquidFlowDirichletBCWithinTimeInterval
PATH Parabolic/LiquidFlow/TimeIntervalDirichletBC
EXECUTABLE_ARGS TimeIntervalDirichletBC.prj
WRAPPER mpirun
WRAPPER_ARGS -np 1
TESTER vtkdiff
REQUIREMENTS OGS_USE_MPI
DIFF_DATA
mesh2D.vtu dirichlet_bc_wihin_interval_pcs_0_ts_2_t_10_000000_0.vtu analytical_solution_t_lt_10 pressure 1e-6 1e-12
mesh2D.vtu dirichlet_bc_wihin_interval_pcs_0_ts_4_t_20_000000_0.vtu analytical_solution_t_gt_10 pressure 1e-6 1e-12
)
<?xml version="1.0" encoding="ISO-8859-1"?>
<OpenGeoSysProject>
<mesh>mesh2D.vtu</mesh>
<geometry>square.gml</geometry>
<processes>
<process>
<name>LiquidFlow</name>
<type>LIQUID_FLOW</type>
<integration_order>2</integration_order>
<darcy_gravity>
<!-- axis_id: 0, 1, or the dimension of space minus one -->
<axis_id>1</axis_id>
<!-- g>=0. g=0: non gravity term -->
<g>0.0</g>
</darcy_gravity>
<process_variables>
<process_variable>pressure</process_variable>
</process_variables>
<secondary_variables>
<secondary_variable type="static" internal_name="darcy_velocity" output_name="v"/>
</secondary_variables>
<material_property>
<fluid>
<density>
<type>Constant</type>
<value> 1.e3 </value>
</density>
<viscosity>
<type>Constant</type>
<value> 1.e-3 </value>
</viscosity>
</fluid>
<porous_medium>
<porous_medium id="0">
<permeability>
<permeability_tensor_entries>kappa1</permeability_tensor_entries>
<type>Constant</type>
</permeability>
<porosity>
<type>Constant</type>
<porosity_parameter>constant_porosity_parameter</porosity_parameter>
</porosity>
<storage>
<type>Constant</type>
<value> 0.0 </value>
</storage>
</porous_medium>
</porous_medium>
</material_property>
</process>
</processes>
<time_loop>
<processes>
<process ref="LiquidFlow">
<nonlinear_solver>basic_picard</nonlinear_solver>
<convergence_criterion>
<type>DeltaX</type>
<norm_type>NORM2</norm_type>
<abstol>1.e-6</abstol>
</convergence_criterion>
<time_discretization>
<type>BackwardEuler</type>
</time_discretization>
<output>
<variables>
<variable> pressure </variable>
<variable> v </variable>
</variables>
</output>
<time_stepping>
<type>FixedTimeStepping</type>
<t_initial> 0.0 </t_initial>
<t_end> 20 </t_end>
<timesteps>
<pair>
<repeat>5</repeat>
<delta_t>5.0</delta_t>
</pair>
</timesteps>
</time_stepping>
</process>
</processes>
<output>
<type>VTK</type>
<prefix>dirichlet_bc_wihin_interval</prefix>
<timesteps>
<pair>
<repeat> 1 </repeat>
<each_steps> 2 </each_steps>
</pair>
</timesteps>
</output>
</time_loop>
<parameters>
<parameter>
<name>p0</name>
<type>Constant</type>
<value>0</value>
</parameter>
<parameter>
<name>bc_top</name>
<type>Constant</type>
<value>1.e5</value>
</parameter>
<parameter>
<name>bc_bottom</name>
<type>Constant</type>
<value>1.e6</value>
</parameter>
<parameter>
<name>constant_porosity_parameter</name>
<type>Constant</type>
<value>0.2</value>
</parameter>
<parameter>
<name>kappa1</name>
<type>Constant</type>
<values>1.e-12</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>
<geometrical_set>square</geometrical_set>
<geometry>top</geometry>
<type>Dirichlet</type>
<parameter>bc_top</parameter>
</boundary_condition>
<boundary_condition>
<geometrical_set>square</geometrical_set>
<geometry>bottom</geometry>
<type>DirichletWithinTimeInterval</type>
<parameter>bc_bottom</parameter>
<start_time> 0.0 </start_time>
<end_time> 10.0 </end_time>
</boundary_condition>
</boundary_conditions>
</process_variable>
</process_variables>
<nonlinear_solvers>
<nonlinear_solver>
<name>basic_picard</name>
<type>Picard</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>
<lis>-i cg -p jacobi -tol 1e-20 -maxiter 10000</lis>
<eigen>
<solver_type>CG</solver_type>
<precon_type>DIAGONAL</precon_type>
<max_iteration_step>10000</max_iteration_step>
<error_tolerance>1e-20</error_tolerance>
</eigen>
<petsc>
<prefix>lf</prefix>
<parameters>-lf_ksp_type cg -lf_pc_type bjacobi -lf_ksp_rtol 1e-16 -lf_ksp_max_it 10000</parameters>
</petsc>
</linear_solver>
</linear_solvers>
</OpenGeoSysProject>
File added
Source diff could not be displayed: it is stored in LFS. Options to address this: view the blob.
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