| 
    GRINS-0.7.0
    
   | 
 
Parses mole fraction values and converts to mass fractions. More...
#include <constant_function_dirichlet_bc_factory.h>


Protected Member Functions | |
| virtual void | add_found_vars (const GetPot &input, MultiphysicsSystem &system, const std::string §ion, const std::set< std::string > &vars_found, libMesh::CompositeFunction< libMesh::Number > &composite_func, std::set< std::string > &vars_added) const | 
| Here, we're expected vars_found to correspond to mole fractions and we'll add mass fractions.  More... | |
| virtual void | set_vars_to_search_for (const std::vector< std::string > &var_names, std::vector< std::string > &vars_to_search_for) const | 
| We'll search for mole fractions: X_<species_name>.  More... | |
| template<typename ChemistryType > | |
| void | add_mole_frac_to_mass_frac (const GetPot &input, const std::string §ion, const std::set< std::string > &vars_found, const std::string &material, const SpeciesMassFractionsFEVariables &species_fe_var, libMesh::CompositeFunction< libMesh::Number > &composite_func, std::set< std::string > &vars_added) const | 
| void | extract_species_name (const std::string &var_name, const std::string &prefix, std::string &species_name) const | 
  Protected Member Functions inherited from GRINS::ConstantFunctionDirichletBCFactory | |
| virtual libMesh::UniquePtr< libMesh::FunctionBase< libMesh::Number > > | build_func (const GetPot &input, MultiphysicsSystem &system, std::vector< std::string > &var_names, const std::string §ion) | 
| Builds ConstantFunction objects for boundary conditions.  More... | |
  Protected Member Functions inherited from GRINS::DirichletBCFactoryFunctionBase< libMesh::FunctionBase< libMesh::Number > > | |
| libMesh::UniquePtr< libMesh::DirichletBoundary > | make_dirichlet_boundary (const std::set< BoundaryID > &bc_ids, const libMesh::System &system, libMesh::UniquePtr< libMesh::FunctionBase< libMesh::Number > > &func, const std::vector< VariableIndex > &var_indices) | 
| Dispatch, based on FunctionType, to the correct DirchletBoundary construction.  More... | |
| virtual const std::vector< std::string > & | get_var_names () const | 
| Helper function that can be overridded in subclasses.  More... | |
  Protected Member Functions inherited from GRINS::DirichletBCFactoryAbstract | |
| void | check_for_vars (const GetPot &input, const std::string §ion, const std::vector< std::string > &var_names, std::set< std::string > *vars_found=NULL) | 
| Helper function.  More... | |
  Protected Member Functions inherited from GRINS::BCFactoryAbstract< libMesh::DirichletBoundary > | |
| void | check_for_multiple_expressions (const GetPot &input, const std::string §ion, const std::string &var_name) const | 
| Ensure that there is only one expression for the [Section/var_name] variable.  More... | |
| void | build_var_indices (const MultiphysicsSystem &system, const std::vector< std::string > &var_names, std::vector< VariableIndex > &var_indices) const | 
| virtual void | check_state () const | 
| Helper function to reduce code duplication.  More... | |
| virtual void | reset_state () | 
| Helper function to redue code duplication.  More... | |
  Protected Member Functions inherited from GRINS::ParsedFunctionFactoryHelper< libMesh::FunctionBase< libMesh::Number > > | |
| libMesh::UniquePtr< libMesh::FunctionBase< libMesh::Number > > | build_parsed_func (const MultiphysicsSystem &system, const std::string &expression) | 
| libMesh::UniquePtr< libMesh::FunctionBase< libMesh::Number > > | build_composite_func () | 
Additional Inherited Members | |
  Static Public Member Functions inherited from GRINS::BCFactoryAbstract< libMesh::DirichletBoundary > | |
| static void | set_system (MultiphysicsSystem &system) | 
| static void | set_bc_ids (const std::set< BoundaryID > &bc_ids) | 
| Boundary id for the current boundary condition section.  More... | |
| static void | set_fe_var (const FEVariablesBase &fe_var) | 
| Active variable for the current boundary condition.  More... | |
| static void | set_section (const std::string §ion) | 
| Sets the current section of the input file.  More... | |
| static bool | have_bc_type (const std::string &bc_type) | 
  Static Public Member Functions inherited from GRINS::FactoryWithGetPot< libMesh::DirichletBoundary > | |
| static void | set_getpot (const GetPot &input) | 
  Static Protected Attributes inherited from GRINS::BCFactoryAbstract< libMesh::DirichletBoundary > | |
| static MultiphysicsSystem * | _system | 
| We store only a raw pointer here because we can't make a copy.  More... | |
| static const std::set< BoundaryID > * | _bc_ids | 
| BoundaryID for constructing a particular boundary condition.  More... | |
| static const FEVariablesBase * | _fe_var | 
| The FEVariablesBase class associated with the boundary condition being built.  More... | |
| static std::string | _section | 
  Static Protected Attributes inherited from GRINS::FactoryWithGetPot< libMesh::DirichletBoundary > | |
| static const GetPot * | _input | 
| We store only a raw pointer here because we can't make a copy.  More... | |
Parses mole fraction values and converts to mass fractions.
Only valid for SpeciesMassFraction FEVariables.
Definition at line 94 of file constant_function_dirichlet_bc_factory.h.
      
  | 
  inline | 
Definition at line 97 of file constant_function_dirichlet_bc_factory.h.
      
  | 
  inline | 
Definition at line 101 of file constant_function_dirichlet_bc_factory.h.
      
  | 
  protectedvirtual | 
Here, we're expected vars_found to correspond to mole fractions and we'll add mass fractions.
vars_found should have things like X_N, etc. The prefix will be "X_" for mole fractions. Then, we'll add mass fractions, using the corresponding names in the SpeciesMassFractionsFEVariables. We'll match them based on the species names.
Reimplemented from GRINS::ConstantFunctionDirichletBCFactory.
Definition at line 153 of file constant_function_dirichlet_bc_factory.C.
References GRINS::SpeciesMassFractionsFEVariables::material(), and GRINS::VariablesParsing::species_mass_fractions_section().
      
  | 
  protected | 
Definition at line 206 of file constant_function_dirichlet_bc_factory.C.
References GRINS::SpeciesMassFractionsFEVariables::prefix(), GRINS::SpeciesMassFractionsFEVariables::species(), and GRINS::StringUtilities::split_string().
      
  | 
  protected | 
Definition at line 117 of file constant_function_dirichlet_bc_factory.C.
References GRINS::StringUtilities::split_string().
Referenced by set_vars_to_search_for().
      
  | 
  protectedvirtual | 
We'll search for mole fractions: X_<species_name>.
We extract the species name from var_names and then set the corresponding vars_to_search_for to X_<species_name>.
Reimplemented from GRINS::ConstantFunctionDirichletBCFactory.
Definition at line 131 of file constant_function_dirichlet_bc_factory.C.
References extract_species_name(), GRINS::SpeciesMassFractionsFEVariables::prefix(), and GRINS::VariablesParsing::species_mass_fractions_section().