OGS
|
<OpenGeoSysProject>
<mesh>H2_H20_2D.vtu</mesh>
<geometry>H2_H20_2D.gml</geometry>
<processes>
<process>
<name>GW23</name>
<type>TWOPHASE_FLOW_PRHO</type>
<integration_order>2</integration_order>
<process_variables>
<liquid_pressure>liquid_pressure</liquid_pressure>
<overall_mass_density>overall_mass_density</overall_mass_density>
</process_variables>
<jacobian_assembler>
<type>CentralDifferences</type>
<component_magnitudes>1e6 1.0</component_magnitudes>
<relative_epsilons>1e-8 1e-8</relative_epsilons>
</jacobian_assembler>
<material_property>
<porous_medium>
<porous_medium id="0">
<capillary_pressure>
<type>vanGenuchten</type>
<pd>2e+6</pd>
<sr>0.4</sr>
<smax>1.</smax>
<m>0.3288590604</m>
<pc_max>2e+7</pc_max>
<has_regularized>true</has_regularized>
</capillary_pressure>
<relative_permeability>
<relative_permeability id="0">
<type>NonWettingPhaseVanGenuchten</type>
<sr>0.0</sr>
<smax>0.6</smax>
<m>0.3288590604</m>
<krel_min>0.0</krel_min>
</relative_permeability>
<relative_permeability id="1">
<type>WettingPhaseVanGenuchten</type>
<sr>0.4</sr>
<smax>1.</smax>
<m>0.3288590604</m>
<krel_min>0.0</krel_min>
</relative_permeability>
</relative_permeability>
</porous_medium>
</porous_medium>
</material_property>
<secondary_variables>
<secondary_variable internal_name="saturation" output_name="saturation" />
<secondary_variable internal_name="pressure_nonwetting" output_name="pressure_nonwetting" />
</secondary_variables>
<specific_body_force>0 0</specific_body_force>
<mass_lumping>true</mass_lumping>
<diffusion_coeff_component_b>diff_coef_b</diffusion_coeff_component_b>
<diffusion_coeff_component_a>diff_coef_a</diffusion_coeff_component_a>
<temperature>temp</temperature>
</process>
</processes>
<media>
<medium>
<phases>
<phase>
<type>AqueousLiquid</type>
<properties>
<property>
<name>density</name>
<type>Constant</type>
<value>1e3</value>
</property>
<property>
<name>viscosity</name>
<type>Constant</type>
<value>3.171e-11</value>
</property>
</properties>
</phase>
<phase>
<type>Gas</type>
<properties>
<property>
<name>density</name>
<type>Function</type>
<value>
<expression>liquid_phase_pressure * 0.002 / 8.3144621 / temperature</expression>
</value>
<dvalue>
<variable_name>liquid_phase_pressure</variable_name>
<expression>0.002 / 8.3144621 / temperature</expression>
</dvalue>
<dvalue>
<variable_name>temperature</variable_name>
<expression>-liquid_phase_pressure * 0.002 / 8.3144621 / temperature / temperature</expression>
</dvalue>
</property>
<property>
<name>molar_mass</name>
<type>Constant</type>
<value>0.002</value>
</property>
<property>
<name>viscosity</name>
<type>Constant</type>
<value>2.8539e-13</value>
</property>
</properties>
</phase>
</phases>
<properties>
<property>
<name>permeability</name>
<type>Constant</type>
<value>5e-20</value>
</property>
<property>
<name>porosity</name>
<type>Constant</type>
<value>0.15</value>
</property>
</properties>
</medium>
</media>
<parameters>
<parameter>
<name>HEN0</name>
<type>Constant</type>
<value>7.65E-6</value>
</parameter>
<parameter>
<name>molX_Dirichlet_right</name>
<type>Constant</type>
<value>1e-6</value>
</parameter>
<parameter>
<name>pg_Dirichlet_right</name>
<type>Constant</type>
<value>1e+6</value>
</parameter>
<parameter>
<name>molX_0</name>
<type>Constant</type>
<values>1e-6</values>
</parameter>
<parameter>
<name>pg_0</name>
<type>Constant</type>
<value>1e+6</value>
</parameter>
<parameter>
<name>T_neumann</name>
<type>Constant</type>
<value>5.57e-6</value>
</parameter>
<parameter>
<name>henry_const</name>
<type>Constant</type>
<value>7.65e-6</value>
</parameter>
<parameter>
<name>diff_coef_b</name>
<type>Constant</type>
<value>9.467e-2</value>
</parameter>
<parameter>
<name>diff_coef_a</name>
<type>Constant</type>
<value>0.0</value>
</parameter>
<parameter>
<name>temp</name>
<type>Constant</type>
<value>303.15</value>
</parameter>
</parameters>
<time_loop>
<processes>
<process ref="GW23">
<nonlinear_solver>basic_newton</nonlinear_solver>
<convergence_criterion>
<type>PerComponentDeltaX</type>
<norm_type>NORM2</norm_type>
<reltols>1.e-10 1.e-10</reltols>
</convergence_criterion>
<time_discretization>
<type>BackwardEuler</type>
</time_discretization>
<time_stepping>
<type>EvolutionaryPIDcontroller</type>
<t_initial>0.0</t_initial>
<t_end>1.e5</t_end>
<dt_guess>1000</dt_guess>
<dt_min>100</dt_min>
<dt_max>1e3</dt_max>
<rel_dt_min>0.01</rel_dt_min>
<rel_dt_max>1.5</rel_dt_max>
<tol>1</tol>
</time_stepping>
</process>
</processes>
<output>
<type>VTK</type>
<prefix>twophaseflow_adaptive_dt</prefix>
<timesteps>
<pair>
<repeat>1</repeat>
<each_steps>10</each_steps>
</pair>
<pair>
<repeat>1</repeat>
<each_steps>1000</each_steps>
</pair>
</timesteps>
<output_iteration_results>false</output_iteration_results>
<variables>
<variable>overall_mass_density</variable>
<variable>liquid_pressure</variable>
<variable>saturation</variable>
<variable>pressure_nonwetting</variable>
</variables>
<suffix>ts{:timestep}_t_{:time}</suffix>
</output>
</time_loop>
<process_variables>
<process_variable>
<name>liquid_pressure</name>
<components>1</components>
<order>1</order>
<initial_condition>pg_0</initial_condition>
<boundary_conditions>
<boundary_condition>
<geometrical_set>H2_H20_2D</geometrical_set>
<geometry>PLY_RIGHT</geometry>
<type>Dirichlet</type>
<parameter>pg_Dirichlet_right</parameter>
</boundary_condition>
<boundary_condition>
<geometrical_set>H2_H20_2D</geometrical_set>
<geometry>PLY_LEFT</geometry>
<type>Neumann</type>
<parameter>T_neumann</parameter>
</boundary_condition>
</boundary_conditions>
</process_variable>
<process_variable>
<name>overall_mass_density</name>
<components>1</components>
<order>1</order>
<initial_condition>molX_0</initial_condition>
<boundary_conditions>
<boundary_condition>
<geometrical_set>H2_H20_2D</geometrical_set>
<geometry>PLY_RIGHT</geometry>
<type>Dirichlet</type>
<parameter>molX_Dirichlet_right</parameter>
</boundary_condition>
<boundary_condition>
<geometrical_set>H2_H20_2D</geometrical_set>
<geometry>PLY_LEFT</geometry>
<type>Neumann</type>
<parameter>T_neumann</parameter>
</boundary_condition>
</boundary_conditions>
</process_variable>
</process_variables>
<nonlinear_solvers>
<nonlinear_solver>
<name>basic_newton</name>
<type>Newton</type>
<max_iter>20</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-18 -maxiter 10000</lis>
<eigen>
<solver_type>SparseLU</solver_type>
<scaling>true</scaling>
</eigen>
<petsc>
<prefix>multiphase</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>