www.mooseframework.org
Public Member Functions | List of all members
NodalAreaAction Class Reference

#include <NodalAreaAction.h>

Inheritance diagram for NodalAreaAction:
[legend]

Public Member Functions

 NodalAreaAction (const InputParameters &params)
 
virtual void act ()
 

Detailed Description

Definition at line 17 of file NodalAreaAction.h.

Constructor & Destructor Documentation

◆ NodalAreaAction()

NodalAreaAction::NodalAreaAction ( const InputParameters &  params)

Definition at line 36 of file NodalAreaAction.C.

36 : MooseObjectAction(params) {}

Member Function Documentation

◆ act()

void NodalAreaAction::act ( )
virtual

Definition at line 39 of file NodalAreaAction.C.

40 {
41  _moose_object_pars.set<std::vector<BoundaryName>>("boundary") = {getParam<BoundaryName>("slave")};
42  _moose_object_pars.set<std::vector<VariableName>>("variable") = {"nodal_area_" + _name};
43 
44  mooseAssert(_problem, "Problem pointer is NULL");
45  _moose_object_pars.set<ExecFlagEnum>("execute_on", true) = {EXEC_INITIAL, EXEC_TIMESTEP_BEGIN};
46  _moose_object_pars.set<bool>("use_displaced_mesh") = true;
47 
48  _problem->addUserObject(
49  "NodalArea", "nodal_area_object_" + Moose::stringify(na_counter++), _moose_object_pars);
50 }
static unsigned int na_counter

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