www.mooseframework.org
CavityPressurePostprocessor.C
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
8 
10 
11 template <>
12 InputParameters
14 {
15  InputParameters params = validParams<GeneralPostprocessor>();
16  params.addRequiredParam<UserObjectName>(
17  "cavity_pressure_uo", "The CavityPressureUserObject that computes the initial moles");
18  params.addRequiredParam<std::string>("quantity", "The quantity to report");
19  params.set<bool>("use_displaced_mesh") = true;
20  return params;
21 }
22 
24  : GeneralPostprocessor(params),
25  _cpuo(getUserObject<CavityPressureUserObject>("cavity_pressure_uo")),
26  _quantity(getParam<std::string>("quantity"))
27 {
28 }
29 
30 PostprocessorValue
32 {
33  return _cpuo.getValue(_quantity);
34 }
virtual PostprocessorValue getValue()
InputParameters validParams< CavityPressurePostprocessor >()
const CavityPressureUserObject & _cpuo
CavityPressurePostprocessor(const InputParameters &parameters)
Real getValue(const std::string &quantity) const