Flow123d
release_3.0.0-968-gc87a28e79
|
Go to the documentation of this file.
19 #ifndef CONC_TRANS_MODEL_HH_
20 #define CONC_TRANS_MODEL_HH_
43 namespace Input {
class Record; }
89 static constexpr
const char *
name() {
return "Solute_AdvectionDiffusion"; }
128 arma::uvec &bc_types)
override;
198 virtual ModelEqData &
data() = 0;
222 double water_content,
BCMultiField< 3, FieldValue< 3 >::Enum > bc_type
Type of boundary condition (see also BC_Type)
static IT::Selection get_output_selection()
unsigned int n_substances() override
Returns number of transported substances.
void calculate_dispersivity_tensor(const arma::vec3 &velocity, const arma::mat33 &Dm, double alphaL, double alphaT, double water_content, double porosity, double cross_cut, arma::mat33 &K)
void set_target_time(double target_time) override
void set_balance_object(std::shared_ptr< Balance > balance) override
void compute_init_cond(const std::vector< arma::vec3 > &point_list, const ElementAccessor< 3 > &ele_acc, std::vector< std::vector< double > > &init_values) override
unsigned int size() const
BCMultiField< 3, FieldValue< 3 >::Scalar > bc_robin_sigma
Transition coefficient in total/diffusive flux b.c.
void compute_advection_diffusion_coefficients(const std::vector< arma::vec3 > &point_list, const std::vector< arma::vec3 > &velocity, const ElementAccessor< 3 > &ele_acc, std::vector< std::vector< arma::vec3 > > &ad_coef, std::vector< std::vector< arma::mat33 > > &dif_coef) override
Classes for storing substance data.
MultiField< 3, FieldValue< 3 >::TensorFixed > diff_m
Molecular diffusivity (for each substance).
void set_output_stream(std::shared_ptr< OutputTime > stream)
Setter for output stream.
void init_from_input(const Input::Record &in_rec) override
Read necessary data from input record.
void compute_sources_sigma(const std::vector< arma::vec3 > &point_list, const ElementAccessor< 3 > &ele_acc, std::vector< std::vector< double > > &sources_sigma) override
void compute_source_coefficients(const std::vector< arma::vec3 > &point_list, const ElementAccessor< 3 > &ele_acc, std::vector< std::vector< double > > &sources_conc, std::vector< std::vector< double > > &sources_density, std::vector< std::vector< double > > &sources_sigma) override
Field< 3, FieldValue< 3 >::Scalar > rock_density
Rock matrix density.
ConcentrationTransportBase FactoryBaseType
SubstanceList substances_
Transported substances.
const MH_DofHandler * mh_dh
void compute_retardation_coefficient(const std::vector< arma::vec3 > &point_list, const ElementAccessor< 3 > &ele_acc, std::vector< std::vector< double > > &ret_coef) override
Discontinuous Galerkin method for equation of transport with dispersion.
MultiField< 3, FieldValue< 3 >::Scalar > disp_t
Transversal dispersivity (for each substance).
std::shared_ptr< OutputTime > output_stream_
BCMultiField< 3, FieldValue< 3 >::Scalar > bc_dirichlet_value
Prescribed concentration for Dirichlet/reference concentration for flux b.c.
void get_flux_bc_sigma(unsigned int index, const std::vector< arma::vec3 > &point_list, const ElementAccessor< 3 > &ele_acc, std::vector< double > &bc_sigma) override
Return transition coefficient for flux b.c.
std::shared_ptr< OutputTime > output_stream() override
Getter for output stream.
const vector< unsigned int > & get_subst_idx() override
Return substance indices used in balance.
void set_velocity_field(const MH_DofHandler &dh) override
Updates the velocity field which determines some coefficients of the transport equation.
~ConcentrationTransportModel() override
MultiField< 3, FieldValue< 3 >::Scalar > output_field
static const Input::Type::Selection & get_bc_type_selection()
The class for outputting data during time.
SubstanceList & substances() override
Returns reference to the vector of substance names.
virtual ModelEqData & data()=0
Derived class should implement getter for ModelEqData instance.
MultiField< 3, FieldValue< 3 >::Scalar > sorption_coefficient
Coefficient of linear sorption.
bool flux_changed
Indicator of change in advection vector field.
BCMultiField< 3, FieldValue< 3 >::Scalar > bc_flux
Flux value in total/diffusive flux b.c.
double solvent_density_
Density of liquid (a global constant).
void get_flux_bc_data(unsigned int index, const std::vector< arma::vec3 > &point_list, const ElementAccessor< 3 > &ele_acc, std::vector< double > &bc_flux, std::vector< double > &bc_sigma, std::vector< double > &bc_ref_value) override
Return data for diffusive or total flux b.c.
ConcentrationTransportModel(Mesh &mesh, const Input::Record &in_rec)
Class for representation of a vector of fields of the same physical quantity.
void compute_mass_matrix_coefficient(const std::vector< arma::vec3 > &point_list, const ElementAccessor< 3 > &ele_acc, std::vector< double > &mm_coef) override
static constexpr const char * name()
static Input::Type::Abstract & get_input_type()
Common specification of the input record for secondary equations.
void get_bc_type(const ElementAccessor< 3 > &ele_acc, arma::uvec &bc_types) override
MultiField< 3, FieldValue< 3 >::Scalar > disp_l
Longitudal dispersivity (for each substance).
static string default_output_field()
Class template representing a field with values dependent on: point, element, and region.
vector< unsigned int > subst_idx
List of indices used to call balance methods for a set of quantities.
MultiField< 3, FieldValue< 3 >::Scalar > init_conc
Initial concentrations.