33 #ifndef DARCY_FLOW_MH_HH 34 #define DARCY_FLOW_MH_HH 39 #include <boost/exception/info.hpp> 131 <<
"Diverged nonlinear solver. Reason: " << EI_Reason::val
134 <<
"Missing the key 'time', obligatory for the transient problems.");
229 get_solution_vector(array, size);
239 mh_dh.set_solution(time_->last_t(),
array, solution_precision());
244 void initialize()
override;
245 virtual void initialize_specific();
246 void zero_time_step()
override;
247 void update_solution()
override;
249 void solve_time_step(
bool output =
true);
251 void get_solution_vector(
double * &
vec,
unsigned int &vec_size)
override;
252 void get_parallel_solution_vector(Vec &
vector)
override;
255 virtual void prepare_new_time_step();
256 virtual void postprocess();
257 virtual void output_data()
override;
262 { data_->extra_storativity = extra_stor; }
265 { data_->extra_source = extra_src; }
277 virtual bool zero_time_term(
bool time_global=
false);
280 void solve_nonlinear();
281 void make_serial_scatter();
282 void modify_system();
283 virtual void setup_time_term();
303 virtual void read_initial_condition();
320 void allocate_mh_matrix();
331 void assembly_mh_matrix(MultidimAssembly& assembler);
334 virtual void assembly_source_term();
339 virtual void assembly_linear_system();
341 void set_mesh_data_for_bddc(
LinSys_BDDC * bddc_ls);
347 virtual double solution_precision()
const;
350 void print_matlab_matrix(
string matlab_file);
405 #endif //DARCY_FLOW_MH_HH void set_extra_storativity(const Field< 3, FieldValue< 3 >::Scalar > &extra_stor)
Field< 3, FieldValue< 3 >::Scalar > extra_source
Externally added storativity.
Container for various descendants of FieldCommonBase.
Field< 3, FieldValue< 3 >::Scalar > init_pressure
Class template representing a field with values dependent on: point, element, and region...
static const int registrar
Registrar of class to factory.
Field< 3, FieldValue< 3 >::Scalar > extra_storativity
Field< 3, FieldValue< 3 >::Scalar > sigma
arma::vec4 gravity_
Externally added water source.
std::vector< char > bc_switch_dirichlet
Idicator of dirichlet or neumann type of switch boundary conditions.
int is_linear
Hack fo BDDC solver.
Basic time management functionality for unsteady (and steady) solvers (class Equation).
unsigned int n_schur_compls
void set_extra_source(const Field< 3, FieldValue< 3 >::Scalar > &extra_src)
bool solution_changed_for_scatter
std::shared_ptr< EqData > data_
void mat_count_off_proc_values(Mat m, Vec v)
Basic time management class.
unsigned int nonlinear_iteration_
BCField< 3, FieldValue< 3 >::Scalar > bc_flux
BCField< 3, FieldValue< 3 >::Scalar > bc_pressure
Field< 3, FieldValue< 3 >::Scalar > water_source_density
BCField< 3, FieldValue< 3 >::Scalar > bc_switch_pressure
Field< 3, FieldValue< 3 >::Scalar > storativity
std::shared_ptr< Balance > balance_
bool force_bc_switch
auxiliary flag for switchting Dirichlet like BC
bool use_steady_assembly_
std::shared_ptr< Balance > balance
MortarMethod
Type of experimental Mortar-like method for non-compatible 1d-2d interaction.
Field< 3, FieldValue< 3 >::TensorFixed > anisotropy
Field< 3, FieldValue< 3 >::Scalar > cross_section
BCField< 3, FieldValue< 3 >::Enum > bc_type
DarcyFlowMHOutput * output_object
Field< 3, FieldValue< 3 >::Scalar > conductivity
BCField< 3, FieldValue< 3 >::Scalar > bc_robin_sigma
std::vector< std::shared_ptr< AssemblyBase > > MultidimAssembly
MortarMethod mortar_method_
const MH_DofHandler & get_mh_dofhandler() override
Mixed-hybrid model of linear Darcy flow, possibly unsteady.