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 13 of file CavityPressurePPAction.h.

Constructor & Destructor Documentation

CavityPressurePPAction::CavityPressurePPAction ( InputParameters  params)

Definition at line 22 of file CavityPressurePPAction.C.

22 : Action(params) {}

Member Function Documentation

void CavityPressurePPAction::act ( )
virtual

Definition at line 25 of file CavityPressurePPAction.C.

26 {
27  std::string uo_name = _name + "UserObject";
28 
29  InputParameters params = _factory.getValidParams("CavityPressurePostprocessor");
30  params.set<MultiMooseEnum>("execute_on") = "initial linear";
31  params.set<UserObjectName>("cavity_pressure_uo") = uo_name;
32  params.set<std::string>("quantity") = "cavity_pressure";
33 
34  _problem->addPostprocessor("CavityPressurePostprocessor",
35  isParamValid("output") ? getParam<std::string>("output") : _name,
36  params);
37 
38  if (isParamValid("output_initial_moles"))
39  {
40  params.set<std::string>("quantity") = "initial_moles";
41  _problem->addPostprocessor(
42  "CavityPressurePostprocessor", getParam<std::string>("output_initial_moles"), params);
43  }
44 }

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