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

#include <CavityPressureUOAction.h>

Inheritance diagram for CavityPressureUOAction:
[legend]

Public Member Functions

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

Public Attributes

const Real _initial_pressure
 
const std::vector< PostprocessorName > _material_input
 
const Real _R
 
const PostprocessorName _temperature
 
const PostprocessorName _volume
 
const Real _startup_time
 

Detailed Description

Definition at line 13 of file CavityPressureUOAction.h.

Constructor & Destructor Documentation

CavityPressureUOAction::CavityPressureUOAction ( const InputParameters &  params)

Definition at line 36 of file CavityPressureUOAction.C.

37  : Action(params),
38  _initial_pressure(getParam<Real>("initial_pressure")),
39  _material_input(getParam<std::vector<PostprocessorName>>("material_input")),
40  _R(getParam<Real>("R")),
41  _temperature(getParam<PostprocessorName>("temperature")),
42  _volume(getParam<PostprocessorName>("volume")),
43  _startup_time(getParam<Real>("startup_time"))
44 {
45 }
const std::vector< PostprocessorName > _material_input
const PostprocessorName _volume
const PostprocessorName _temperature

Member Function Documentation

void CavityPressureUOAction::act ( )
virtual

Definition at line 48 of file CavityPressureUOAction.C.

49 {
50  std::string name = _name + "UserObject";
51 
52  InputParameters params = _factory.getValidParams("CavityPressureUserObject");
53  params.set<MultiMooseEnum>("execute_on") = getParam<MultiMooseEnum>("execute_on");
54  params.set<Real>("initial_pressure") = _initial_pressure;
55  params.set<std::vector<PostprocessorName>>("material_input") = _material_input;
56  params.set<Real>("R") = _R;
57  params.set<PostprocessorName>("temperature") = _temperature;
58 
59  if (isParamValid("initial_temperature"))
60  params.set<Real>("initial_temperature") = getParam<Real>("initial_temperature");
61 
62  params.set<PostprocessorName>("volume") = _volume;
63  params.set<Real>("startup_time") = _startup_time;
64 
65  _problem->addUserObject("CavityPressureUserObject", name, params);
66 }
const std::vector< PostprocessorName > _material_input
const PostprocessorName _volume
const PostprocessorName _temperature

Member Data Documentation

const Real CavityPressureUOAction::_initial_pressure

Definition at line 20 of file CavityPressureUOAction.h.

Referenced by act().

const std::vector<PostprocessorName> CavityPressureUOAction::_material_input

Definition at line 21 of file CavityPressureUOAction.h.

Referenced by act().

const Real CavityPressureUOAction::_R

Definition at line 22 of file CavityPressureUOAction.h.

Referenced by act().

const Real CavityPressureUOAction::_startup_time

Definition at line 25 of file CavityPressureUOAction.h.

Referenced by act().

const PostprocessorName CavityPressureUOAction::_temperature

Definition at line 23 of file CavityPressureUOAction.h.

Referenced by act().

const PostprocessorName CavityPressureUOAction::_volume

Definition at line 24 of file CavityPressureUOAction.h.

Referenced by act().


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