33 #ifndef DARCY_FLOW_MH_HH 34 #define DARCY_FLOW_MH_HH 64 template<
unsigned int dim,
unsigned int spacedim>
class FE_RT0;
65 template<
unsigned int degree,
unsigned int dim,
unsigned int spacedim>
class FE_P_disc;
66 template<
unsigned int dim,
unsigned int spacedim>
class MappingP1;
67 template<
unsigned int dim,
unsigned int spacedim>
class FEValues;
68 template<
unsigned int dim,
unsigned int spacedim>
class FESideValues;
69 template<
unsigned int dim>
class QGauss;
145 <<
"Diverged nonlinear solver. Reason: " << EI_Reason::val
227 get_solution_vector(array, size);
237 mh_dh.set_solution(time_->last_t(), array, solution_precision());
242 void initialize()
override;
243 virtual void initialize_specific();
244 void zero_time_step()
override;
245 void update_solution()
override;
247 void get_solution_vector(
double * &vec,
unsigned int &vec_size)
override;
248 void get_parallel_solution_vector(Vec &
vector)
override;
251 virtual void prepare_new_time_step();
252 virtual void postprocess();
253 virtual void output_data()
override;
260 virtual bool zero_time_term();
264 void solve_nonlinear();
265 void make_serial_scatter();
266 void modify_system();
267 virtual void setup_time_term();
287 virtual void read_initial_condition();
308 void assembly_mh_matrix( MultidimAssembler ma);
312 virtual void assembly_source_term();
317 virtual void assembly_linear_system();
319 void set_mesh_data_for_bddc(
LinSys_BDDC * bddc_ls);
325 virtual double solution_precision()
const;
389 master_list_(darcy.mesh_->master_elements),
390 intersections_(darcy.mesh_->intersections),
394 arma::mat master_map(1,2), slave_map(1,3);
395 master_map.fill(1.0 / 2);
396 slave_map.fill(1.0 / 3);
398 tensor_average[0].push_back( trans( master_map ) * master_map );
399 tensor_average[0].push_back( trans( master_map ) * slave_map );
400 tensor_average[1].push_back( trans( slave_map ) * master_map );
401 tensor_average[1].push_back( trans( slave_map ) * slave_map );
404 void assembly(
LinSys &ls);
405 void pressure_diff(
int i_ele,
407 unsigned int &ele_type,
409 arma::vec &dirichlet);
433 intersections_(darcy.mesh_->intersections),
441 void assembly(
LinSys &ls);
482 static const int registrar;
488 #endif //DARCY_FLOW_MH_HH Abstract base class for equation clasess.
Container for various descendants of FieldCommonBase.
Field< 3, FieldValue< 3 >::Scalar > init_pressure
Solver based on the original PETSc solver using MPIAIJ matrix and succesive Schur complement construc...
std::vector< unsigned int > dirichlet_edge
vector< vector< arma::mat > > tensor_average
Row matrices to compute element pressure as average of boundary pressures.
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 > sigma
std::vector< char > bc_switch_dirichlet
Idicator of dirichlet or neumann type of switch boundary conditions.
vector< IsecList >::const_iterator ml_it_
P1_CouplingAssembler(const DarcyMH &darcy)
vector< double > dirichlet
P0_CouplingAssembler(const DarcyMH &darcy)
bool solution_changed_for_scatter
std::shared_ptr< EqData > data_
#define DECLARE_EXCEPTION(ExcName, Format)
Macro for simple definition of exceptions.
void mat_count_off_proc_values(Mat m, Vec v)
class to manage local indices on sub-domain to global indices on domain
MortarMethod mortar_method_
vector< unsigned int > IsecList
Symmetric Gauss-Legendre quadrature formulae on simplices.
unsigned int nonlinear_iteration_
BCField< 3, FieldValue< 3 >::Scalar > bc_flux
Discontinuous Lagrangean finite element on dim dimensional simplex.
std::shared_ptr< arma::mat > local_matrix
BCField< 3, FieldValue< 3 >::Scalar > bc_pressure
const MH_DofHandler & get_mh_dofhandler()
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_
Virtual class for construction and partitioning of a distributed sparse graph.
Raviart-Thomas element of order 0.
const vector< IsecList > & master_list_
bool use_steady_assembly_
Affine mapping between reference and actual cell.
Mixed-hybrid model of linear Darcy flow, possibly unsteady.
const vector< Intersection > & intersections_
const vector< Intersection > & intersections_
double delta_0
measure of master element, should be sum of intersection measures
MortarMethod
Type of experimental Mortar-like method for non-compatible 1d-2d interaction.
std::shared_ptr< Balance > balance
Vector classes to support both Iterator, index and Id access and creating co-located vectors...
Field< 3, FieldValue< 3 >::TensorFixed > anisotropy
unsigned int water_balance_idx_
index of water balance within the Balance object.
Abstract linear system class.
Calculates finite element data on the actual cell.
#define TYPEDEF_ERR_INFO(EI_Type, Type)
Macro to simplify declaration of error_info types.
std::vector< std::shared_ptr< AssemblyBase > > MultidimAssembler
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
Solver based on Multilevel BDDC - using corresponding class of OpenFTL package.
Calculates finite element data on a side.
Mixed-hybrid of steady Darcy flow with sources and variable density.