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 std::vector< PostprocessorName > _volume
 
const Real _startup_time
 

Detailed Description

Definition at line 16 of file CavityPressureUOAction.h.

Constructor & Destructor Documentation

◆ CavityPressureUOAction()

CavityPressureUOAction::CavityPressureUOAction ( const InputParameters &  params)

Definition at line 44 of file CavityPressureUOAction.C.

45  : Action(params),
46  _initial_pressure(getParam<Real>("initial_pressure")),
47  _material_input(getParam<std::vector<PostprocessorName>>("material_input")),
48  _R(getParam<Real>("R")),
49  _temperature(getParam<PostprocessorName>("temperature")),
50  _volume(getParam<std::vector<PostprocessorName>>("volume")),
51  _startup_time(getParam<Real>("startup_time"))
52 {
53 }
const std::vector< PostprocessorName > _material_input
const std::vector< PostprocessorName > _volume
const PostprocessorName _temperature

Member Function Documentation

◆ act()

void CavityPressureUOAction::act ( )
virtual

Definition at line 56 of file CavityPressureUOAction.C.

57 {
58  std::string name = _name + "UserObject";
59 
60  InputParameters params = _factory.getValidParams("CavityPressureUserObject");
61  params.set<ExecFlagEnum>("execute_on") = getParam<ExecFlagEnum>("execute_on");
62  params.set<Real>("initial_pressure") = _initial_pressure;
63  params.set<std::vector<PostprocessorName>>("material_input") = _material_input;
64  params.set<Real>("R") = _R;
65  params.set<PostprocessorName>("temperature") = _temperature;
66 
67  if (isParamValid("initial_temperature"))
68  params.set<Real>("initial_temperature") = getParam<Real>("initial_temperature");
69 
70  params.set<std::vector<PostprocessorName>>("volume") = _volume;
71  params.set<Real>("startup_time") = _startup_time;
72 
73  _problem->addUserObject("CavityPressureUserObject", name, params);
74 }
const std::vector< PostprocessorName > _material_input
const std::vector< PostprocessorName > _volume
const std::string name
Definition: Setup.h:22
const PostprocessorName _temperature

Member Data Documentation

◆ _initial_pressure

const Real CavityPressureUOAction::_initial_pressure

Definition at line 23 of file CavityPressureUOAction.h.

Referenced by act().

◆ _material_input

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

Definition at line 24 of file CavityPressureUOAction.h.

Referenced by act().

◆ _R

const Real CavityPressureUOAction::_R

Definition at line 25 of file CavityPressureUOAction.h.

Referenced by act().

◆ _startup_time

const Real CavityPressureUOAction::_startup_time

Definition at line 28 of file CavityPressureUOAction.h.

Referenced by act().

◆ _temperature

const PostprocessorName CavityPressureUOAction::_temperature

Definition at line 26 of file CavityPressureUOAction.h.

Referenced by act().

◆ _volume

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

Definition at line 27 of file CavityPressureUOAction.h.

Referenced by act().


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