38 for(
unsigned int i_subst = 0; i_subst <
n_substances_; i_subst++)
40 double mult_coef = mult_coef_vec[i_subst];
41 double second_coef = second_coef_vec[i_subst];
42 Isotherm & isotherm = isotherms_vec[i_subst];
45 double scale_aqua = por_m,
48 bool limited_solubility_on =
false;
51 limited_solubility_on =
false;
54 limited_solubility_on =
true;
64 if ( scale_sorbed <= 0.0)
65 xprintf(
UsrErr,
"Scaling parameter in sorption is not positive. Check the input for rock density and molar mass of %d. substance.",i_subst);
68 solvent_density_, scale_aqua, scale_sorbed, table_limit, mult_coef, second_coef);
72 END_TIMER(
"SorptionSimple::isotherm_reinit");
81 const string &output_conc_name,
82 const string &output_selection_name)
88 .
name(
"porosity_immobile");
103 :
SorptionDual(init_mesh, in_rec,
"conc_solid",
"SorptionMobile_Output")
126 double phi = por_m/(por_m + por_imm);
133 for(
unsigned int i_subst = 0; i_subst <
n_substances_; i_subst++)
135 double mult_coef = mult_coef_vec[i_subst];
136 double second_coef = second_coef_vec[i_subst];
137 Isotherm & isotherm = isotherms_vec[i_subst];
140 double scale_aqua = por_m,
143 bool limited_solubility_on;
146 limited_solubility_on =
false;
150 limited_solubility_on =
true;
160 if ( scale_sorbed <= 0.0)
161 xprintf(
UsrErr,
"Scaling parameter in sorption is not positive. Check the input for rock density and molar mass of %d. substance.",i_subst);
164 solvent_density_, scale_aqua, scale_sorbed, table_limit, mult_coef, second_coef);
168 END_TIMER(
"SorptionMob::isotherm_reinit");
179 :
SorptionDual(init_mesh, in_rec,
"conc_immobile_solid",
"SorptionImmobile_Output")
201 double phi = por_m/(por_m + por_imm);
208 for(
unsigned int i_subst = 0; i_subst <
n_substances_; i_subst++)
210 double mult_coef = mult_coef_vec[i_subst];
211 double second_coef = second_coef_vec[i_subst];
212 Isotherm & isotherm = isotherms_vec[i_subst];
215 double scale_aqua = por_imm,
218 bool limited_solubility_on;
221 limited_solubility_on =
false;
225 limited_solubility_on =
true;
235 if ( scale_sorbed <= 0.0)
236 xprintf(
UsrErr,
"Scaling parameter in sorption is not positive. Check the input for rock density and molar mass of %d. substance.",i_subst);
239 solvent_density_, scale_aqua, scale_sorbed, table_limit, mult_coef, second_coef);
243 END_TIMER(
"SorptionImmob::isotherm_reinit");
static Input::Type::Record input_type
~SorptionDual(void)
Destructor.
Field< 3, FieldValue< 3 >::EnumVector > sorption_type
Discrete need Selection for initialization.
FieldCommon & flags_add(FieldFlag::Flags::Mask mask)
Field< 3, FieldValue< 3 >::Vector > isotherm_other
Langmuir sorption coeficients alpha (in fraction c_s = omega * (alpha*c_a)/(1- alpha*c_a)).
Input::Type::Selection output_selection
~SorptionMob(void)
Destructor.
Abstract class of sorption model in case dual porosity is considered.
SubstanceList substances_
Names belonging to substances.
static Input::Type::Record input_type
Field< 3, FieldValue< 3 >::Scalar > rock_density
Rock matrix density.
void isotherm_reinit(std::vector< Isotherm > &isotherms_vec, const ElementAccessor< 3 > &elem) override
Reinitializes the isotherm.
std::vector< double > table_limit_
Field< 3, FieldValue< 3 >::Vector > isotherm_mult
Multiplication coefficients (k, omega) for all types of isotherms.
void reinit(enum SorptionType sorption_type, bool limited_solubility_on, double aqua_density, double scale_aqua, double scale_sorbed, double c_aqua_limit, double mult_coef, double second_coef)
std::vector< unsigned int > substance_global_idx_
Mapping from local indexing of substances to global.
Field< 3, FieldValue< 3 >::Scalar > porosity
Porosity field copied from transport.
Field< 3, FieldValue< 3 >::Scalar > immob_porosity_
static constexpr Mask input_copy
A field that is input of its equation and can not read from input, thus must be set by copy...
std::vector< double > solubility_vec_
#define START_TIMER(tag)
Starts a timer with specified tag.
virtual Value::return_type const & value(const Point &p, const ElementAccessor< spacedim > &elm) const
static Input::Type::Record record_factory(SorptionRecord::Type)
Creates the input record for different cases of sorption model (simple or in dual porosity)...
static Input::Type::Selection make_output_selection(const string &output_field_name, const string &selection_name)
SorptionType
Type of adsorption isotherm.
SorptionImmob(Mesh &init_mesh, Input::Record in_rec)
Constructor.
static Input::Type::Record input_type
void isotherm_reinit(std::vector< Isotherm > &isotherms, const ElementAccessor< 3 > &elm) override
Reinitializes the isotherm.
SorptionSimple(Mesh &init_mesh, Input::Record in_rec)
Constructor.
~SorptionSimple(void)
Destructor.
FieldCommon & name(const string &name)
#define END_TIMER(tag)
Ends a timer with specified tag.
arma::vec::fixed< spacedim > centre() const
unsigned int n_substances_
SorptionDual(Mesh &init_mesh, Input::Record in_rec, const string &output_conc_name, const string &output_selection_name)
Constructor.
EqData * data_
Pointer to equation data. The object is constructed in descendants.
void isotherm_reinit(std::vector< Isotherm > &isotherms_vec, const ElementAccessor< 3 > &elem) override
Reinitializes the isotherm.
SorptionMob(Mesh &init_mesh, Input::Record in_rec)
Constructor.
~SorptionImmob(void)
Destructor.