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
 Primary species to add. More...
 
const Real _scaling
 Variable scaling. More...
 

Detailed Description

Definition at line 20 of file AddPrimarySpeciesAction.h.

Constructor & Destructor Documentation

◆ AddPrimarySpeciesAction()

AddPrimarySpeciesAction::AddPrimarySpeciesAction ( const InputParameters &  params)

Definition at line 26 of file AddPrimarySpeciesAction.C.

27  : AddVariableAction(params),
28  _vars(getParam<std::vector<NonlinearVariableName>>("primary_species")),
29  _scaling(getParam<Real>("scaling"))
30 {
31 }
const std::vector< NonlinearVariableName > _vars
Primary species to add.
const Real _scaling
Variable scaling.

Member Function Documentation

◆ act()

void AddPrimarySpeciesAction::act ( )
overridevirtual

Definition at line 34 of file AddPrimarySpeciesAction.C.

35 {
36  for (auto i = beginIndex(_vars); i < _vars.size(); ++i)
37  _problem->addVariable(_vars[i], _fe_type, _scaling);
38 }
const std::vector< NonlinearVariableName > _vars
Primary species to add.
const Real _scaling
Variable scaling.

Member Data Documentation

◆ _scaling

const Real AddPrimarySpeciesAction::_scaling
private

Variable scaling.

Definition at line 31 of file AddPrimarySpeciesAction.h.

Referenced by act().

◆ _vars

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

Primary species to add.

Definition at line 29 of file AddPrimarySpeciesAction.h.

Referenced by act().


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