25 #ifndef GRINS_MULTICOMPONENT_VARIABLE_H
26 #define GRINS_MULTICOMPONENT_VARIABLE_H
48 unsigned int dim()
const
49 {
return _vars.size(); }
52 { libmesh_assert_less( component,
_vars.size() );
53 return _vars[component]; }
77 {
return this->
dim(); }
100 #endif // GRINS_MULTICOMPONENT_VARIABLE_H
SpeciesMassFractionsVariable()
unsigned int VariableIndex
More descriptive name of the type used for variable indices.
VariableIndex species(unsigned int species) const
VariableIndex idx_from_component(unsigned int component) const
Variables that may components, but are not intended to be vectors.
virtual ~MulticomponentVariable()
virtual ~SpeciesMassFractionsVariable()
SpeciesMassFractionsVariable(const std::vector< std::string > &var_names, const std::vector< VariableIndex > &var_indices, const std::string &prefix, const std::string &material, const std::set< libMesh::subdomain_id_type > &subdomain_ids)
const std::set< libMesh::subdomain_id_type > & subdomain_ids() const
unsigned int dim() const
Number of components.
const std::string & prefix() const
unsigned int n_species() const
MulticomponentVariable(const std::vector< std::string > &var_names, const std::vector< VariableIndex > &var_indices, const std::set< libMesh::subdomain_id_type > &subdomain_ids)
std::vector< VariableIndex > _vars
const std::string & material() const
const std::vector< VariableIndex > & var_indices() const