www.mooseframework.org
CavityPressureUserObject.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
12 #include "GeneralUserObject.h"
13 
15 {
16 public:
18 
20 
21  virtual void execute() override;
22  virtual void initialize() override;
23  virtual void finalize() override {}
24 
25  virtual Real computeCavityVolume();
26 
27  Real getValue(const MooseEnum & quantity) const;
28 
29 protected:
31  {
34  };
35 
38 
40  Real & _n0;
41 
43 
45  std::vector<const PostprocessorValue *> _material_input;
46 
48  std::vector<const PostprocessorValue *> _volume;
49 
51  const Real _R;
52 
54  const Real & _temperature;
55 
57  const bool _init_temp_given;
58 
61 
64 
65  bool & _initialized;
66 
68  std::vector<const PostprocessorValue *> _additional_volumes;
69 
71  std::vector<const PostprocessorValue *> _temperature_of_additional_volumes;
72 
75 };
Real & _cavity_pressure
The pressure within the cavity.
Real getValue(const MooseEnum &quantity) const
CavityPressureUserObject(const InputParameters &parameters)
const Real _init_temp
The initial temperature.
std::vector< const PostprocessorValue * > _volume
Postprocessors whose sum equal the meshed cavity volume.
virtual void initialize() override
std::vector< const PostprocessorValue * > _material_input
Postprocessors containing additional material released to the cavity.
virtual void execute() override
const Real _R
The ideal gas constant.
const bool _init_temp_given
Whether or not an initial temperature is given.
std::vector< const PostprocessorValue * > _temperature_of_additional_volumes
The temperature of the additional volume.
static InputParameters validParams()
const Real & _temperature
Reference to a postprocessor that contains the cavity temperature.
const Real _startup_time
The total time to ramp up the pressure to its initial value.
Real & _n0
Initial number of moles of gas.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Real _start_time
The time at which the pressure is at its maximum values.
std::vector< const PostprocessorValue * > _additional_volumes
Additional volume that communicates with the cavity volume but is not meshed.
const InputParameters & parameters() const
virtual void finalize() override