Flow123d
JS_before_hm-887-g601087d
|
Class for solution of fully coupled flow and mechanics using fixed-stress iterative splitting. More...
#include <hm_iterative.hh>
Classes | |
class | EqData |
Public Member Functions | |
HM_Iterative (Mesh &mesh, Input::Record in_record) | |
void | initialize () override |
void | zero_time_step () override |
void | update_solution () override |
double | last_t () override |
Return last time of TimeGovernor. More... | |
~HM_Iterative () | |
Public Member Functions inherited from DarcyFlowInterface | |
DarcyFlowInterface (Mesh &mesh, const Input::Record in_rec) | |
virtual std::shared_ptr< FieldFE< 3, FieldValue< 3 >::VectorFixed > > | get_velocity_field () |
virtual | ~DarcyFlowInterface () |
Public Member Functions inherited from EquationBase | |
EquationBase () | |
EquationBase (Mesh &mesh, const Input::Record in_rec) | |
virtual | ~EquationBase () |
virtual void | choose_next_time () |
virtual void | set_time_upper_constraint (double dt, std::string message) |
virtual void | set_time_lower_constraint (double dt, std::string message) |
TimeGovernor & | time () |
virtual void | set_time_governor (TimeGovernor &time) |
double | planned_time () |
double | solved_time () |
Mesh & | mesh () |
std::shared_ptr< Balance > | balance () const |
TimeMark::Type | mark_type () |
FieldSet & | data () |
virtual void | output_data () |
Write computed fields. More... | |
Static Public Member Functions | |
static const Input::Type::Record & | get_input_type () |
Define input record. More... | |
Static Public Member Functions inherited from DarcyFlowInterface | |
static Input::Type::Abstract & | get_input_type () |
Static Public Member Functions inherited from EquationBase | |
static Input::Type::Record & | record_template () |
Template Record with common keys for derived equations. More... | |
Private Member Functions | |
void | update_potential () |
void | update_flow_fields () |
void | compute_iteration_error (double &difference, double &norm) |
Private Attributes | |
std::shared_ptr< RichardsLMH > | flow_ |
steady or unsteady water flow simulator based on MH scheme More... | |
std::shared_ptr< Elasticity > | mechanics_ |
solute transport with chemistry through operator splitting More... | |
EqData | data_ |
double | beta_ |
Tuning parameter for iterative splitting. More... | |
unsigned int | min_it_ |
Minimal number of iterations to perform. More... | |
unsigned int | max_it_ |
Maximal number of iterations. More... | |
double | a_tol_ |
Absolute tolerance for difference between two succeeding iterations. More... | |
double | r_tol_ |
Relative tolerance for difference between two succeeding iterations. More... | |
Static Private Attributes | |
static const int | registrar |
Additional Inherited Members | |
Public Types inherited from DarcyFlowInterface | |
enum | MortarMethod { NoMortar = 0, MortarP0 = 1, MortarP1 = 2 } |
Type of experimental Mortar-like method for non-compatible 1d-2d interaction. More... | |
typedef DarcyFlowInterface | FactoryBaseType |
Typedef for usage of Input::Factory in child classes. More... | |
Protected Attributes inherited from EquationBase | |
bool | equation_empty_ |
flag is true if only default constructor was called More... | |
Mesh * | mesh_ |
TimeGovernor * | time_ |
Input::Record | input_record_ |
FieldSet * | eq_data_ |
std::shared_ptr< Balance > | balance_ |
object for calculation and writing the mass balance to file. More... | |
Class for solution of fully coupled flow and mechanics using fixed-stress iterative splitting.
Flow and mechanics are solved separately and within each iteration the coupling terms are updated. Here we use the fixed-stress splitting [see Mikelic&Wheeler, Comput. Geosci. 17(3), 2013] which uses a tuning parameter "beta" to speed up the convergence.
Definition at line 43 of file hm_iterative.hh.
HM_Iterative::HM_Iterative | ( | Mesh & | mesh, |
Input::Record | in_record | ||
) |
Definition at line 119 of file hm_iterative.cc.
HM_Iterative::~HM_Iterative | ( | ) |
Definition at line 336 of file hm_iterative.cc.
|
private |
|
static |
Define input record.
Definition at line 32 of file hm_iterative.cc.
|
overridevirtual |
This method should initialize fields of the equation. All members (e.g. number of components) that are necessary for the field initialization must be set between construction and call of initialize. After this method the upper level coupling may set sharing of some fields between equations.
Reimplemented from EquationBase.
Definition at line 160 of file hm_iterative.cc.
|
overridevirtual |
Return last time of TimeGovernor.
Implements DarcyFlowInterface.
Definition at line 330 of file hm_iterative.cc.
|
private |
|
private |
|
overridevirtual |
Calculation of the next time step and its output.
Reimplemented from EquationBase.
Definition at line 199 of file hm_iterative.cc.
|
overridevirtual |
Initialization of the solution in the zero time.
There may be fields that can not be initialized in the initialize method as they are provided by the coupling. Fields coming from coupling has to be set after the initialize method and before zero_time_step.
Reimplemented from EquationBase.
Definition at line 182 of file hm_iterative.cc.
|
private |
Absolute tolerance for difference between two succeeding iterations.
Definition at line 110 of file hm_iterative.hh.
|
private |
Tuning parameter for iterative splitting.
Definition at line 101 of file hm_iterative.hh.
|
private |
Definition at line 98 of file hm_iterative.hh.
|
private |
steady or unsteady water flow simulator based on MH scheme
Definition at line 93 of file hm_iterative.hh.
|
private |
Maximal number of iterations.
Definition at line 107 of file hm_iterative.hh.
|
private |
solute transport with chemistry through operator splitting
Definition at line 96 of file hm_iterative.hh.
|
private |
Minimal number of iterations to perform.
Definition at line 104 of file hm_iterative.hh.
|
private |
Relative tolerance for difference between two succeeding iterations.
Definition at line 113 of file hm_iterative.hh.
|
staticprivate |
Definition at line 90 of file hm_iterative.hh.