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

#include <CavityPressurePPAction.h>

Inheritance diagram for CavityPressurePPAction:
[legend]

Public Member Functions

 CavityPressurePPAction (InputParameters params)
 
virtual void act ()
 

Detailed Description

Definition at line 16 of file CavityPressurePPAction.h.

Constructor & Destructor Documentation

◆ CavityPressurePPAction()

CavityPressurePPAction::CavityPressurePPAction ( InputParameters  params)

Definition at line 28 of file CavityPressurePPAction.C.

28 : Action(params) {}

Member Function Documentation

◆ act()

void CavityPressurePPAction::act ( )
virtual

Definition at line 31 of file CavityPressurePPAction.C.

32 {
33  std::string uo_name = _name + "UserObject";
34 
35  InputParameters params = _factory.getValidParams("CavityPressurePostprocessor");
36  params.set<ExecFlagEnum>("execute_on") = {EXEC_INITIAL, EXEC_LINEAR};
37  params.set<UserObjectName>("cavity_pressure_uo") = uo_name;
38  params.set<MooseEnum>("quantity") = "cavity_pressure";
39 
40  _problem->addPostprocessor("CavityPressurePostprocessor",
41  isParamValid("output") ? getParam<std::string>("output") : _name,
42  params);
43 
44  if (isParamValid("output_initial_moles"))
45  {
46  params.set<MooseEnum>("quantity") = "initial_moles";
47  _problem->addPostprocessor(
48  "CavityPressurePostprocessor", getParam<std::string>("output_initial_moles"), params);
49  }
50 }

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