88 template<
unsigned int dim>
96 return fe_values_[dim-1];
165 void initialize()
override;
170 void zero_time_step()
override;
177 bool evaluate_time_constraint(
double &time_constraint)
override;
181 void update_solution()
override;
207 void set_target_time(
double target_time)
override;
212 void set_balance_object(std::shared_ptr<Balance> balance)
override;
215 {
return subst_idx; }
220 virtual void output_data()
override;
223 { output_stream_ = stream; }
233 Vec get_component_vec(
unsigned int sbi)
override;
237 LongIdx *get_row_4_el()
override;
241 {
return substances_.size(); }
245 {
return substances_; }
261 void create_transport_matrix_mpi();
262 void create_mass_matrix();
264 void make_transport_partitioning();
265 void set_initial_condition();
266 void read_concentration_sources();
271 void conc_sources_bdr_conditions();
276 void transport_matrix_step_mpi(
double time_step);
278 void alloc_transport_vectors();
279 void alloc_transport_structs_mpi();
284 double side_flux(
const DHCellSide &cell_side);
289 template<
unsigned int dim>
290 double calculate_side_flux(
const DHCellSide &cell);
362 std::shared_ptr<DOFHandlerMultiDim>
dh_;
bool is_mass_diag_changed
Flag indicates that porosity or cross_section changed during last time.
const vector< unsigned int > & get_subst_idx() override
Return substance indices used in balance.
double transport_matrix_time
QGauss::array q_
Quadratures used in assembling methods.
unsigned int n_substances() override
Returns number of transported substances.
MultiField< 3, FieldValue< 3 >::Scalar > conc_mobile
Calculated concentrations in the mobile zone.
Class template representing a field with values dependent on: point, element, and region...
std::shared_ptr< OutputTime > output_stream_
TimeMark::Type target_mark_type
TimeMark type for time marks denoting end of every time interval where transport matrix remains const...
Field< 3, FieldValue< 3 >::Scalar > region_id
double transport_bc_time
Time of the last update of the boundary condition terms.
Coupling of a transport model with a reaction model by operator splitting.
EquationOutput output_fields
Fields indended for output, i.e. all input fields plus those representing solution.
Class FEValues calculates finite element data on the actual cells such as shape function values...
BCMultiField< 3, FieldValue< 3 >::Scalar > bc_conc
MultiField< 3, FieldValue< 3 >::Scalar > init_conc
Initial concentrations.
const Input::Record input_rec
Record with input specification.
Base class for quadrature rules on simplices in arbitrary dimensions.
SubstanceList & substances() override
Returns reference to the vector of substance names.
Field< 3, FieldValue< 3 >::Scalar > subdomain
FieldFEScalarVec conc_mobile_fe
Underlaying FieldFE for each substance of conc_mobile.
vector< VectorMPI > corr_vec
static const int registrar
Registrar of class to factory.
SubstanceList substances_
Transported substances.
FEValues< 3 > & fe_values(unsigned int dim)
std::shared_ptr< DOFHandlerMultiDim > dh_
The class for outputting data during time.
vector< unsigned int > subst_idx
List of indices used to call balance methods for a set of quantities.
void update_after_reactions(bool) override
Not used in this class.
void compute_p0_interpolation() override
std::array< QGauss, 4 > array
int LongIdx
Define type that represents indices of large arrays (elements, nodes, dofs etc.)
void set_output_stream(std::shared_ptr< OutputTime > stream) override
Setter for output stream.
VecScatter vconc_out_scatter
FiniteElement< 1 > * fe1_
ConcentrationTransportBase FactoryBaseType
Classes for storing substance data.
Vec vcfl_source_
Parallel vector for source term contribution to CFL condition.
Definitions of particular quadrature rules on simplices.
double ** cumulative_corr
FETransportObjects feo_
Finite element objects.
Class for representation of a vector of fields of the same physical quantity.
Abstract class for the description of a general finite element on a reference simplex in dim dimensio...
FiniteElement< 3 > * fe3_
FiniteElement< 0 > * fe0_
Finite elements for the solution of the advection-diffusion equation.
Side accessor allows to iterate over sides of DOF handler cell.
double cfl_max_step
Time step constraint coming from CFL condition.
FiniteElement< 2 > * fe2_