www.mooseframework.org
Public Member Functions | Private Attributes | List of all members
AddSecondarySpeciesAction Class Reference

#include <AddSecondarySpeciesAction.h>

Inheritance diagram for AddSecondarySpeciesAction:
[legend]

Public Member Functions

 AddSecondarySpeciesAction (const InputParameters &params)
 
virtual void act () override
 

Private Attributes

const std::vector< AuxVariableName > _secondary_species
 

Detailed Description

Definition at line 17 of file AddSecondarySpeciesAction.h.

Constructor & Destructor Documentation

AddSecondarySpeciesAction::AddSecondarySpeciesAction ( const InputParameters &  params)

Definition at line 38 of file AddSecondarySpeciesAction.C.

39  : Action(params), _secondary_species(getParam<std::vector<AuxVariableName>>("secondary_species"))
40 {
41 }
const std::vector< AuxVariableName > _secondary_species

Member Function Documentation

void AddSecondarySpeciesAction::act ( )
overridevirtual

Definition at line 44 of file AddSecondarySpeciesAction.C.

45 {
46  // Checking to see if there are secondary species to be added as AuxVariables
47  if (_pars.isParamValid("secondary_species"))
48  {
49  for (unsigned int i = 0; i < _secondary_species.size(); ++i)
50  {
51  FEType fe_type(Utility::string_to_enum<Order>(getParam<MooseEnum>("order")),
52  Utility::string_to_enum<FEFamily>(getParam<MooseEnum>("family")));
53 
54  _problem->addAuxVariable(_secondary_species[i], fe_type);
55  }
56  }
57 }
const std::vector< AuxVariableName > _secondary_species

Member Data Documentation

const std::vector<AuxVariableName> AddSecondarySpeciesAction::_secondary_species
private

Definition at line 25 of file AddSecondarySpeciesAction.h.

Referenced by act().


The documentation for this class was generated from the following files: