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

#include <AddPrimarySpeciesAction.h>

Inheritance diagram for AddPrimarySpeciesAction:
[legend]

Public Member Functions

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

Private Attributes

const std::vector< NonlinearVariableName > _vars
 

Detailed Description

Definition at line 17 of file AddPrimarySpeciesAction.h.

Constructor & Destructor Documentation

AddPrimarySpeciesAction::AddPrimarySpeciesAction ( const InputParameters &  params)

Definition at line 37 of file AddPrimarySpeciesAction.C.

38  : Action(params), _vars(getParam<std::vector<NonlinearVariableName>>("primary_species"))
39 {
40 }
const std::vector< NonlinearVariableName > _vars

Member Function Documentation

void AddPrimarySpeciesAction::act ( )
overridevirtual

Definition at line 43 of file AddPrimarySpeciesAction.C.

44 {
45  for (unsigned int i = 0; i < _vars.size(); ++i)
46  {
47  FEType fe_type(Utility::string_to_enum<Order>(getParam<MooseEnum>("order")),
48  Utility::string_to_enum<FEFamily>(getParam<MooseEnum>("family")));
49 
50  _problem->addVariable(_vars[i], fe_type, getParam<Real>("scaling"));
51  }
52 }
const std::vector< NonlinearVariableName > _vars

Member Data Documentation

const std::vector<NonlinearVariableName> AddPrimarySpeciesAction::_vars
private

Definition at line 25 of file AddPrimarySpeciesAction.h.

Referenced by act().


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