www.mooseframework.org
AddCoupledEqSpeciesAction.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 #ifndef ADDCOUPLEDEQSPECIESACTION_H
8 #define ADDCOUPLEDEQSPECIESACTION_H
9 
10 #include "Action.h"
11 
13 
14 template <>
16 
17 class AddCoupledEqSpeciesAction : public Action
18 {
19 public:
20  AddCoupledEqSpeciesAction(const InputParameters & params);
21 
22  virtual void act() override;
23 
24 protected:
26  const std::vector<NonlinearVariableName> _primary_species;
28  const std::vector<AuxVariableName> _secondary_species;
30  std::vector<std::vector<Real>> _stos;
32  std::vector<std::vector<Real>> _weights;
34  std::vector<Real> _eq_const;
36  std::vector<VariableName> _eq_species;
38  std::set<std::string> _aux_species;
40  std::vector<std::vector<bool>> _primary_participation;
42  std::vector<std::vector<Real>> _sto_u;
44  std::vector<std::vector<std::vector<Real>>> _sto_v;
46  std::vector<std::vector<std::vector<VariableName>>> _coupled_v;
48  std::vector<std::vector<VariableName>> _primary_species_involved;
50  std::string _input_reactions;
52  std::vector<std::string> _reactions;
54  unsigned int _num_reactions;
56  const std::vector<VariableName> _pressure_var;
58  const RealVectorValue _gravity;
59 };
60 
61 #endif // ADDCOUPLEDEQSPECIESACTION_H
AddCoupledEqSpeciesAction(const InputParameters &params)
std::vector< Real > _eq_const
Equilibrium constants for each reaction.
const std::vector< AuxVariableName > _secondary_species
Secondary species added as AuxVariables.
std::vector< VariableName > _eq_species
Equilibrium species.
std::vector< std::vector< bool > > _primary_participation
Participation of primary species in each reaction.
std::vector< std::string > _reactions
Vector of parsed reactions.
std::vector< std::vector< Real > > _sto_u
Stoichiometric coefficients of primary variables in each reaction.
const RealVectorValue _gravity
Gravity (default is (0, 0, 0))
std::set< std::string > _aux_species
Set of auxillary species.
std::vector< std::vector< Real > > _weights
Weight of each primary species in each reaction.
std::vector< std::vector< std::vector< Real > > > _sto_v
Stoichiometric coefficients of coupled primary variables in each reaction.
std::string _input_reactions
Reaction network read from input file.
const std::vector< NonlinearVariableName > _primary_species
Basis set of primary species.
std::vector< std::vector< Real > > _stos
Stoichiometric coefficients for each primary species in each reaction.
unsigned int _num_reactions
Number of reactions.
std::vector< std::vector< std::vector< VariableName > > > _coupled_v
Coupled primary species for each reaction.
InputParameters validParams< AddCoupledEqSpeciesAction >()
std::vector< std::vector< VariableName > > _primary_species_involved
Primary species involved in the ith equilibrium reaction.
const std::vector< VariableName > _pressure_var
Pressure variable.