Skip to content
Snippets Groups Projects
Commit 781f6257 authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[T] Update nonuniform BCs GWF tests.

parent 648b15fd
No related branches found
No related tags found
No related merge requests found
Showing
with 174 additions and 39 deletions
......@@ -539,25 +539,37 @@ foreach(mesh_size 1e1)
endforeach()
AddTest(
NAME GroundWaterFlowProcess_Neumann_nonuniform
NAME GroundWaterFlowProcess_Inhomogeneous_permeability
PATH Elliptic/nonuniform_bc_Groundwaterflow
EXECUTABLE ogs
EXECUTABLE_ARGS inhomogeneous_permeability.prj
TESTER vtkdiff
REQUIREMENTS NOT OGS_USE_MPI
DIFF_DATA
inhomogeneous_permeability.vtu inhomogeneous_permeability_pcs_0_ts_1_t_1.000000.vtu mass_flux_ref mass_flux 4e-2 1e-16
)
AddTest(
NAME GroundWaterFlowProcess_Neumann_nonuniform_cosY
PATH Elliptic/nonuniform_bc_Groundwaterflow
EXECUTABLE ogs
EXECUTABLE_ARGS neumann_nonuniform.prj
TESTER vtkdiff
REQUIREMENTS NOT OGS_USE_MPI
DIFF_DATA
inhomogeneous_permeability.vtu neumann_nonuniform_pcs_0_ts_1_t_1.000000.vtu mass_flux_ref mass_flux 4e-2 1e-16
expected_neumann_nonuniform_pcs_0_ts_1_t_1.000000.vtu neumann_nonuniform_pcs_0_ts_1_t_1.000000.vtu pressure pressure 1e-14 0
expected_neumann_nonuniform_pcs_0_ts_1_t_1.000000.vtu neumann_nonuniform_pcs_0_ts_1_t_1.000000.vtu darcy_velocity darcy_velocity 1e-12 0
)
AddTest(
NAME GroundWaterFlowProcess_Dirichlet_nonuniform
NAME GroundWaterFlowProcess_Dirichlet_nonuniform_linearY
PATH Elliptic/nonuniform_bc_Groundwaterflow
EXECUTABLE ogs
EXECUTABLE_ARGS dirichlet_nonuniform.prj
TESTER vtkdiff
REQUIREMENTS NOT OGS_USE_MPI
DIFF_DATA
expected_dirichlet_nonuniform_pcs_0_ts_1_t_1.000000.vtu dirichlet_nonuniform_pcs_0_ts_1_t_1.000000.vtu pressure pressure 1e-14 1e-16
expected_dirichlet_nonuniform_pcs_0_ts_1_t_1.000000.vtu dirichlet_nonuniform_pcs_0_ts_1_t_1.000000.vtu pressure pressure 1e-14 0
)
# tests for nodal source term implementation
......
<?xml version="1.0" encoding="ISO-8859-1"?>
<OpenGeoSysProject>
<mesh>dirichlet_nonuniform.vtu</mesh>
<geometry>square_1x1.gml</geometry>
<meshes>
<mesh>square_1x1_quad_1e3.vtu</mesh>
<mesh>square_1x1_left.vtu</mesh>
<mesh>square_1x1_right.vtu</mesh>
</meshes>
<processes>
<process>
<name>GW23</name>
......@@ -62,22 +65,18 @@
<process_variables>
<process_variable>
<name>pressure</name>
<mesh>square_1x1_quad_1e3</mesh>
<components>1</components>
<order>1</order>
<initial_condition>p0</initial_condition>
<boundary_conditions>
<boundary_condition>
<!-- dummy values -->
<geometrical_set>square_1x1_geometry</geometrical_set>
<geometry>left</geometry>
<!-- end dummy values -->
<type>NonuniformDirichlet</type>
<mesh>dirichlet_nonuniform_left_1e3.vtu</mesh>
<field_name>value</field_name>
<mesh>square_1x1_left</mesh>
<field_name>linearY</field_name>
</boundary_condition>
<boundary_condition>
<geometrical_set>square_1x1_geometry</geometrical_set>
<geometry>right</geometry>
<mesh>square_1x1_right</mesh>
<type>Dirichlet</type>
<parameter>p_Dirichlet_right</parameter>
</boundary_condition>
......
<?xml version="1.0" encoding="ISO-8859-1"?>
<OpenGeoSysProject>
<meshes>
<mesh axially_symmetric="true">inhomogeneous_permeability.vtu</mesh>
<mesh axially_symmetric="true">inhomogeneous_permeability_top.vtu</mesh>
<mesh axially_symmetric="true">inhomogeneous_permeability_bottom.vtu</mesh>
</meshes>
<processes>
<process>
<name>GW23</name>
<type>GROUNDWATER_FLOW</type>
<integration_order>2</integration_order>
<hydraulic_conductivity>K_rho_over_mu__eff</hydraulic_conductivity>
<process_variables>
<process_variable>pressure</process_variable>
</process_variables>
<secondary_variables>
<secondary_variable type="static" internal_name="darcy_velocity" output_name="mass_flux"/>
</secondary_variables>
</process>
</processes>
<time_loop>
<processes>
<process ref="GW23">
<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> mass_flux </variable>
</variables>
</output>
<time_stepping>
<type>SingleStep</type>
</time_stepping>
</process>
</processes>
<output>
<type>VTK</type>
<prefix>inhomogeneous_permeability</prefix>
</output>
</time_loop>
<parameters>
<parameter>
<name>K_rho_over_mu__eff</name>
<type>MeshElement</type>
<field_name>K_rho_over_mu__eff</field_name>
</parameter>
<parameter>
<name>p_initial</name>
<type>Constant</type>
<value>0</value>
</parameter>
<parameter>
<name>p_outlet</name>
<type>Constant</type>
<value>0</value>
</parameter>
</parameters>
<process_variables>
<process_variable>
<name>pressure</name>
<mesh>inhomogeneous_permeability</mesh>
<components>1</components>
<order>1</order>
<initial_condition>p_initial</initial_condition>
<boundary_conditions>
<boundary_condition>
<mesh>inhomogeneous_permeability_top</mesh>
<type>NonuniformNeumann</type>
<field_name>mass_flux</field_name>
</boundary_condition>
<boundary_condition>
<mesh>inhomogeneous_permeability_bottom</mesh>
<type>Dirichlet</type>
<parameter>p_outlet</parameter>
</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-16 -maxiter 10000</lis>
<eigen>
<solver_type>CG</solver_type>
<precon_type>DIAGONAL</precon_type>
<max_iteration_step>10000</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>
</OpenGeoSysProject>
<?xml version="1.0" encoding="ISO-8859-1"?>
<OpenGeoSysProject>
<mesh axially_symmetric="true"> inhomogeneous_permeability.vtu </mesh>
<geometry>inhomogeneous_permeability.gml</geometry>
<meshes>
<mesh>square_1x1_quad_1e3.vtu</mesh>
<mesh>square_1x1_left.vtu</mesh>
<mesh>square_1x1_right.vtu</mesh>
</meshes>
<processes>
<process>
<name>GW23</name>
<type>GROUNDWATER_FLOW</type>
<integration_order>2</integration_order>
<hydraulic_conductivity>K_rho_over_mu__eff</hydraulic_conductivity>
<hydraulic_conductivity>K</hydraulic_conductivity>
<process_variables>
<process_variable>pressure</process_variable>
</process_variables>
<secondary_variables>
<secondary_variable type="static" internal_name="darcy_velocity" output_name="mass_flux"/>
<secondary_variable type="static" internal_name="darcy_velocity" output_name="darcy_velocity"/>
</secondary_variables>
</process>
</processes>
......@@ -23,15 +26,15 @@
<convergence_criterion>
<type>DeltaX</type>
<norm_type>NORM2</norm_type>
<abstol>1.e-6</abstol>
<abstol>1e-15</abstol>
</convergence_criterion>
<time_discretization>
<type>BackwardEuler</type>
</time_discretization>
<output>
<variables>
<variable> pressure </variable>
<variable> mass_flux </variable>
<variable> pressure </variable>
<variable> darcy_velocity </variable>
</variables>
</output>
<time_stepping>
......@@ -46,44 +49,38 @@
</time_loop>
<parameters>
<parameter>
<name>K_rho_over_mu__eff</name>
<type>MeshElement</type>
<field_name>K_rho_over_mu__eff</field_name>
<name>K</name>
<type>Constant</type>
<value>1</value>
</parameter>
<parameter>
<name>p_initial</name>
<name>p0</name>
<type>Constant</type>
<value>0</value>
</parameter>
<parameter>
<name>p_outlet</name>
<name>p_Dirichlet_right</name>
<type>Constant</type>
<value>0</value>
<value>-1</value>
</parameter>
</parameters>
<process_variables>
<process_variable>
<name>pressure</name>
<mesh>square_1x1_quad_1e3</mesh>
<components>1</components>
<order>1</order>
<initial_condition>p_initial</initial_condition>
<initial_condition>p0</initial_condition>
<boundary_conditions>
<boundary_condition>
<!-- dummy values -->
<geometrical_set>square_1x1_geometry</geometrical_set>
<geometry>left</geometry>
<!-- end dummy values -->
<type>NonuniformNeumann</type>
<field_name>mass_flux</field_name>
<mesh>inhomogeneous_mass_flux.vtu</mesh>
<mesh>square_1x1_left</mesh>
<field_name>cosY</field_name>
</boundary_condition>
<boundary_condition>
<geometrical_set>square_1x1_geometry</geometrical_set>
<geometry>bottom</geometry>
<type>Dirichlet</type>
<parameter>p_outlet</parameter>
<mesh>square_1x1_right</mesh>
<parameter>p_Dirichlet_right</parameter>
</boundary_condition>
</boundary_conditions>
</process_variable>
......
File added
File added
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