www.mooseframework.org
CavityPressureUserObject.h
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 /****************************************************************/
7 #ifndef CAVITYPRESSUREUSEROBJECT_H
8 #define CAVITYPRESSUREUSEROBJECT_H
9 
10 #include "GeneralUserObject.h"
11 
12 class CavityPressureUserObject : public GeneralUserObject
13 {
14 public:
15  CavityPressureUserObject(const InputParameters & parameters);
16 
18 
19  virtual void initialSetup() {}
20 
21  virtual void residualSetup() {}
22 
23  virtual void timestepSetup() {}
24 
25  virtual void execute();
26 
27  virtual void initialize();
28  virtual void finalize() {}
29 
30  Real getValue(const std::string & quantity) const;
31 
32 protected:
34  Real & _n0; // The initial number of moles of gas.
35 
36  const Real _initial_pressure;
37 
38  std::vector<const PostprocessorValue *> _material_input;
39 
40  const Real _R;
41 
42  const Real & _temperature;
43  const bool _init_temp_given;
44  const Real _init_temp;
45 
46  const Real & _volume;
47 
49  const Real _startup_time;
50 
51  bool & _initialized;
52 };
53 
54 template <>
56 
57 #endif // CAVITYRESSUREPOSTPROCESSOR_H
CavityPressureUserObject(const InputParameters &parameters)
std::vector< const PostprocessorValue * > _material_input
InputParameters validParams< CavityPressureUserObject >()
Real getValue(const std::string &quantity) const