Public Member Functions | Private Attributes | List of all members
AddSecondarySpeciesAction Class Reference

#include <AddSecondarySpeciesAction.h>

Inheritance diagram for AddSecondarySpeciesAction:

Public Member Functions

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

Private Attributes

const std::vector< AuxVariableName > _secondary_species
 Secondary species to add. More...

Detailed Description

Definition at line 20 of file AddSecondarySpeciesAction.h.

Constructor & Destructor Documentation

◆ AddSecondarySpeciesAction()

AddSecondarySpeciesAction::AddSecondarySpeciesAction ( const InputParameters &  params)

Definition at line 26 of file AddSecondarySpeciesAction.C.

27  : AddAuxVariableAction(params),
28  _secondary_species(getParam<std::vector<AuxVariableName>>("secondary_species"))
29 {
30 }
const std::vector< AuxVariableName > _secondary_species
Secondary species to add.

Member Function Documentation

◆ act()

void AddSecondarySpeciesAction::act ( )

Definition at line 33 of file AddSecondarySpeciesAction.C.

34 {
35  for (auto & secondary_specimen : _secondary_species)
36  _problem->addAuxVariable(secondary_specimen, _fe_type);
37 }
const std::vector< AuxVariableName > _secondary_species
Secondary species to add.

Member Data Documentation

◆ _secondary_species

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

Secondary species to add.

Definition at line 29 of file AddSecondarySpeciesAction.h.

Referenced by act().

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