Flow123d
release_3.0.0-968-gc87a28e79
|
Go to the documentation of this file.
24 #ifndef SORPTION_BASE_H
25 #define SORPTION_BASE_H
64 <<
" does not match the number of substances.");
85 EqData(
const string &output_field_name,
const string &output_field_desc);
268 #endif //SORPTION_BASE_H
std::vector< double > table_limit_
static const Input::Type::Record & get_input_type()
EqData * data_
Pointer to equation data. The object is constructed in descendants.
std::shared_ptr< ReactionTerm > reaction_liquid
void initialize_substance_ids()
Reads names of substances from input and creates indexing to global vector of substance.
std::shared_ptr< ReactionTerm > reaction_solid
DECLARE_INPUT_EXCEPTION(ExcSubstanceCountMatch,<< "The size of the input array "<< EI_ArrayName::qval<< " does not match the number of substances.")
void clear_max_conc()
Sets max conc to zeros on all regins.
bool evaluate_time_constraint(double &time_constraint) override
Computes a constraint for time step.
void initialize_from_input()
Initializes private members of sorption from the input record.
EquationOutput output_fields
Fields indended for output, i.e. all input fields plus those representing solution.
std::vector< std::shared_ptr< FieldFE< 3, FieldValue< 3 >::Scalar > > > output_field_ptr
Fields correspond with conc_solid_out.
void initialize_fields()
Initializes field sets.
unsigned int n_interpolation_steps_
void update_max_conc()
Computes maximal aqueous concentration at the current step.
std::vector< double > solubility_vec_
MultiField< 3, FieldValue< 3 >::Enum > sorption_type
Discrete need Selection for initialization.
double no_sorbing_surface_cond
void isotherm_reinit(unsigned int i_subst, const ElementAccessor< 3 > &elm)
Reinitializes the isotherm.
void output_data(void) override
Output method.
virtual void compute_common_ele_data(const ElementAccessor< 3 > &elem)=0
const Input::Type::Instance & make_output_type(const string &equation_name, const string &aditional_description="")
MultiField< 3, FieldValue< 3 >::Scalar > init_conc_solid
Initial sorbed concentrations.
EqData(const string &output_field_name, const string &output_field_desc)
Collect all fields.
Field< 3, FieldValue< 3 >::Scalar > rock_density
Rock matrix density.
static Input::Type::Instance make_output_type(const string &equation_name, const string &output_field_name, const string &output_field_desc)
void set_initial_condition()
Reads and sets initial condition for concentration in solid.
void zero_time_step() override
static const Input::Type::Selection & get_sorption_type_selection()
Field< 3, FieldValue< 3 >::Scalar > porosity
Porosity field copied from transport.
virtual ~SorptionBase(void)
double ** compute_reaction(double **concentrations, int loc_el) override
Container for various descendants of FieldCommonBase.
std::vector< std::vector< Isotherm > > isotherms
void update_solution(void) override
Updates the solution.
std::vector< unsigned int > substance_global_idx_
Mapping from local indexing of substances to global.
TYPEDEF_ERR_INFO(EI_ArrayName, std::string)
FieldSet input_data_set_
Input data set - fields in this set are read from the input file.
unsigned int n_substances_
Class for representation of a vector of fields of the same physical quantity.
void isotherm_reinit_all(const ElementAccessor< 3 > &elm)
Calls isotherm_reinit for all isotherms.
std::vector< std::vector< double > > max_conc
MultiField< 3, FieldValue< 3 >::Scalar > conc_solid
Calculated sorbed concentrations, for output only.
std::vector< VectorMPI > conc_solid_out
sorbed concentration array output (gathered - sequential)
void initialize() override
Prepares the object to usage.
Class template representing a field with values dependent on: point, element, and region.
MultiField< 3, FieldValue< 3 >::Scalar > isotherm_other
Langmuir sorption coeficients alpha (in fraction c_s = omega * (alpha*c_a)/(1- alpha*c_a)).
Class ReactionTerm is an abstract class representing reaction term in transport.
MultiField< 3, FieldValue< 3 >::Scalar > distribution_coefficient
Multiplication coefficients (k, omega) for all types of isotherms.
struct SorptionBase::CommonElementData common_ele_data