Flow123d
JS_before_hm-2207-gef9ee6d82
|
Go to the documentation of this file.
33 #ifndef DARCY_FLOW_MH_HH
34 #define DARCY_FLOW_MH_HH
130 <<
"Diverged nonlinear solver. Reason: " << EI_Reason::val
133 <<
"Missing the key 'time', obligatory for the transient problems.");
218 std::shared_ptr<DOFHandlerMultiDim>
dh_;
219 std::shared_ptr<SubDOFHandlerMultiDim>
dh_cr_;
272 {
eq_fields_->extra_storativity = extra_stor; }
407 void dofs_range(
unsigned int n_dofs,
unsigned int &min,
unsigned int &max,
unsigned int component);
410 #endif //DARCY_FLOW_MH_HH
BCField< 3, FieldValue< 3 >::Scalar > bc_pressure
std::shared_ptr< Balance > balance_
virtual double solution_precision() const
Field< 3, FieldValue< 3 >::Scalar > sigma
void solve_nonlinear()
Solve method common to zero_time_step and update solution.
bool use_steady_assembly_
void set_extra_source(const Field< 3, FieldValue< 3 >::Scalar > &extra_src)
BCField< 3, FieldValue< 3 >::Scalar > bc_piezo_head
void set_extra_storativity(const Field< 3, FieldValue< 3 >::Scalar > &extra_stor)
Basic time management class.
void solve_time_step(bool output=true)
Solve the problem without moving to next time and without output.
void update_solution() override
EqFields()
Creation of all fields.
Field< 3, FieldValue< 3 >::Scalar > field_ele_piezo_head
BCField< 3, FieldValue< 3 >::Scalar > bc_robin_sigma
static const Input::Type::Record & type_field_descriptor()
void dofs_range(unsigned int n_dofs, unsigned int &min, unsigned int &max, unsigned int component)
Helper method fills range (min and max) of given component.
virtual void postprocess()
postprocess velocity field (add sources)
virtual void setup_time_term()
BCField< 3, FieldValue< 3 >::Scalar > bc_flux
unsigned int n_schur_compls
std::shared_ptr< SubDOFHandlerMultiDim > dh_cr_
DOF handler represents DOFs of edges.
Field< 3, FieldValue< 3 >::Scalar > extra_source
Externally added storativity.
MultidimAssembly multidim_assembler
Field< 3, FieldValue< 3 >::Scalar > field_edge_pressure
void create_linear_system(Input::AbstractRecord rec)
FieldCoords & X()
Return coords field.
Field< 3, FieldValue< 3 >::Scalar > init_pressure
virtual void output_data() override
Write computed fields.
virtual ~DarcyMH() override
static const Input::Type::Selection & get_mh_mortar_selection()
Selection for enum MortarMethod.
std::shared_ptr< DOFHandlerMultiDim > dh_
full DOF handler represents DOFs of sides, elements and edges
BCField< 3, FieldValue< 3 >::VectorFixed > bc_gravity
Holds gravity vector acceptable in FieldModel.
void allocate_mh_matrix()
void prepare_new_time_step()
void assembly_mh_matrix(MultidimAssembly &assembler)
virtual double solved_time() override
FieldCoords X_
Field holds coordinates for computing of FieldFormulas.
std::shared_ptr< EqData > eq_data_
DarcyFlowMHOutput * output_object
Field< 3, FieldValue< 3 >::Scalar > cross_section
Field< 3, FieldValue< 3 >::Scalar > water_source_density
std::vector< char > bc_switch_dirichlet
Idicator of dirichlet or neumann type of switch boundary conditions.
Field< 3, FieldValue< 3 >::Scalar > conductivity
static const Input::Type::Selection & get_bc_type_selection()
Return a Selection corresponding to enum BC_Type.
virtual void assembly_source_term()
Source term is implemented differently in LMH version.
int is_linear
Hack fo BDDC solver.
void mat_count_off_proc_values(Mat m, Vec v)
Basic time management functionality for unsteady (and steady) solvers (class Equation).
Field< 3, FieldValue< 3 >::VectorFixed > field_ele_velocity
virtual bool zero_time_term(bool time_global=false)
BCField< 3, FieldValue< 3 >::Scalar > bc_switch_pressure
BCField< 3, FieldValue< 3 >::Scalar > bc_switch_piezo_head
void print_matlab_matrix(string matlab_file)
Print darcy flow matrix in matlab format into a file.
std::shared_ptr< EqFields > eq_fields_
Field< 3, FieldValue< 3 >::Scalar > init_piezo_head
Same as previous but used in boundary fields.
DECLARE_INPUT_EXCEPTION(ExcMissingTimeGovernor,<< "Missing the key 'time', obligatory for the transient problems.")
Container for various descendants of FieldCommonBase.
void reconstruct_solution_from_schur(MultidimAssembly &assembler)
BCField< 3, FieldValue< 3 >::Enum > bc_type
MortarMethod
Type of experimental Mortar-like method for non-compatible 1d-2d interaction.
bool force_no_neumann_bc
auxiliary flag for switchting Dirichlet like BC
DECLARE_EXCEPTION(ExcSolverDiverge,<< "Diverged nonlinear solver. Reason: "<< EI_Reason::val)
std::vector< int > get_component_indices_vec(unsigned int component) const
Get vector of all DOF indices of given component (0..side, 1..element, 2..edge)
unsigned int nonlinear_iteration_
Field< 3, FieldValue< 3 >::VectorFixed > flux
void set_mesh_data_for_bddc(LinSys_BDDC *bddc_ls)
static const Input::Type::Record & get_input_type()
std::shared_ptr< DOFHandlerMultiDim > dh_cr_disc_
DOF handler represents DOFs of sides.
virtual void assembly_linear_system()
DarcyMH(Mesh &mesh, const Input::Record in_rec, TimeGovernor *tm=nullptr)
CREATE AND FILL GLOBAL MH MATRIX OF THE WATER MODEL.
std::shared_ptr< Balance > balance
virtual void initialize_specific()
std::vector< std::shared_ptr< AssemblyFlowBase > > MultidimAssembly
MortarMethod mortar_method_
Field< 3, FieldValue< 3 >::Scalar > extra_storativity
Field< 3, FieldValue< 3 >::Scalar > storativity
Class template representing a field with values dependent on: point, element, and region.
TYPEDEF_ERR_INFO(EI_Reason, string)
virtual void read_initial_condition()
Mixed-hybrid model of linear Darcy flow, possibly unsteady.
Field< 3, FieldValue< 3 >::TensorFixed > anisotropy
static const int registrar
Registrar of class to factory.
void initialize() override
void zero_time_step() override
Field< 3, FieldValue< 3 >::VectorFixed > gravity_field
Field< 3, FieldValue< 3 >::Scalar > field_ele_pressure
Externally added water source.