40 using namespace Input::Type;
54 .
description(
"Dirichlet boundary condition (for each substance).")
64 .
description(
"Longitudal dispersivity (for each substance).")
70 .
description(
"Transversal dispersivity (for each substance).")
76 .
description(
"Molecular diffusivity (for each substance).")
96 "Names of transported substances.");
124 vector<double> elem_csec(point_list.size()), por_m(point_list.size());
129 for (
unsigned int i=0; i<point_list.size(); i++)
130 mm_coef[i] = elem_csec[i]*por_m[i];
135 double Dm,
double alphaL,
double alphaT,
double porosity,
double cross_cut,
arma::mat33 &K)
137 double vnorm = arma::norm(velocity, 2);
140 for (
int i=0; i<3; i++)
141 for (
int j=0; j<3; j++)
142 K(i,j) = velocity[i]*velocity[j]/(vnorm*vnorm)*(alphaL-alphaT) + alphaT*(i==j?1:0);
148 K = (vnorm*K + (Dm*pow(porosity, 1./3)*porosity*cross_cut)*arma::eye(3,3));
160 const unsigned int qsize = point_list.size();
161 const unsigned int n_subst = dif_coef.size();
162 std::vector<arma::vec> Dm(qsize, arma::vec(n_subst) ), alphaL(qsize, arma::vec(n_subst) ), alphaT(qsize, arma::vec(n_subst) );
171 for (
unsigned int i=0; i<qsize; i++) {
172 for (
unsigned int sbi=0; sbi<n_subst; sbi++) {
173 ad_coef[sbi][i] = velocity[i];
175 Dm[i][sbi], alphaL[i][sbi], alphaT[i][sbi], por_m[i], csection[i],
204 const unsigned int qsize = point_list.size();
211 for (
unsigned int k=0; k<qsize; k++)
213 sources_density[k] *= csection[k];
214 sources_sigma[k] *= csection[k];
223 const unsigned int qsize = point_list.size();
228 for (
unsigned int k=0; k<qsize; k++)
229 sources_sigma[k] *= csection[k];
Field< 3, FieldValue< 3 >::Vector > disp_l
Longitudal dispersivity (for each substance).
MultiField< 3, FieldValue< 3 >::Scalar > output_field
static Input::Type::AbstractRecord input_type
Common specification of the input record for secondary equations.
Field< 3, FieldValue< 3 >::Vector > disp_t
Transversal dispersivity (for each substance).
static constexpr Mask in_main_matrix
A field is part of main "stiffness matrix" of the equation.
Field< 3, FieldValue< 3 >::Scalar > cross_section
Pointer to DarcyFlow field cross_section.
Field< 3, FieldValue< 3 >::Vector > diff_m
Molecular diffusivity (for each substance).
static IT::Record & get_input_type(const string &implementation, const string &description)
FieldCommon & flags_add(FieldFlag::Flags::Mask mask)
void compute_dirichlet_bc(const std::vector< arma::vec3 > &point_list, const ElementAccessor< 3 > &ele_acc, std::vector< arma::vec > &bc_values) override
Field< 3, FieldValue< 3 >::Vector > sources_conc
Field< 3, FieldValue< 3 >::Scalar > porosity
Mobile porosity.
bool flux_changed
Indicator of change in advection vector field.
Field< 3, FieldValue< 3 >::Vector > init_conc
Initial concentrations.
void compute_mass_matrix_coefficient(const std::vector< arma::vec3 > &point_list, const ElementAccessor< 3 > &ele_acc, std::vector< double > &mm_coef) override
Discontinuous Galerkin method for equation of transport with dispersion.
FieldCommon & units(const UnitSI &units)
Set basic units of the field.
virtual void value_list(const std::vector< Point > &point_list, const ElementAccessor< spacedim > &elm, std::vector< typename Value::return_type > &value_list) const
Specification of transport model interface.
void compute_init_cond(const std::vector< arma::vec3 > &point_list, const ElementAccessor< 3 > &ele_acc, std::vector< arma::vec > &init_values) override
void compute_sources_sigma(const std::vector< arma::vec3 > &point_list, const ElementAccessor< 3 > &ele_acc, std::vector< arma::vec > &sources_sigma) override
static constexpr Mask equation_result
Match non-result fields, that are data fields of an equation.
static IT::Selection & get_output_selection_input_type(const string &implementation, const string &description)
FieldCommon & input_default(const string &input_default)
void calculate_dispersivity_tensor(const arma::vec3 &velocity, double Dm, double alphaL, double alphaT, double porosity, double cross_cut, arma::mat33 &K)
BCField< 3, FieldValue< 3 >::Vector > bc_conc
Boundary conditions (Dirichlet) for concentrations.
static constexpr Mask in_rhs
A field is part of the right hand side of the equation.
ConcentrationTransportModel()
void compute_source_coefficients(const std::vector< arma::vec3 > &point_list, const ElementAccessor< 3 > &ele_acc, std::vector< arma::vec > &sources_conc, std::vector< arma::vec > &sources_density, std::vector< arma::vec > &sources_sigma) override
Field< 3, FieldValue< 3 >::Vector > sources_sigma
Concentration sources - Robin type, in_flux = sources_sigma * (sources_conc - mobile_conc) ...
FieldCommon & description(const string &description)
Field< 3, FieldValue< 3 >::Vector > sources_density
Concentration sources - density of substance source, only positive part is used.
FieldCommon & name(const string &name)
mixed-hybrid model of linear Darcy flow, possibly unsteady.
void set_component_names(std::vector< string > &names, const Input::Record &in_rec) override
Read or set names of solution components.
FieldCommon & flags(FieldFlag::Flags::Mask mask)
Class for representation SI units of Fields.
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
virtual ModelEqData & data()=0
Derived class should implement getter for ModelEqData instance.
~ConcentrationTransportModel() override