https://mooseframework.inl.gov
Loading...
Searching...
No Matches
CavityPressureUserObject.h
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
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{
16public:
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
29protected:
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
60 const Real _init_temp;
61
63 const Real _startup_time;
64
66
68 std::vector<const PostprocessorValue *> _additional_volumes;
69
71 std::vector<const PostprocessorValue *> _temperature_of_additional_volumes;
72
75};
const Real _startup_time
The total time to ramp up the pressure to its initial value.
std::vector< const PostprocessorValue * > _additional_volumes
Additional volume that communicates with the cavity volume but is not meshed.
Real & _n0
Initial number of moles of gas.
virtual void initialize() override
Real _start_time
The time at which the pressure is at its maximum values.
std::vector< const PostprocessorValue * > _temperature_of_additional_volumes
The temperature of the additional volume.
static InputParameters validParams()
Real & _cavity_pressure
The pressure within the cavity.
const Real _init_temp
The initial temperature.
virtual void finalize() override
const bool _init_temp_given
Whether or not an initial temperature is given.
virtual void execute() override
const Real _R
The ideal gas constant.
Real getValue(const MooseEnum &quantity) const
const Real & _temperature
Reference to a postprocessor that contains the cavity temperature.
std::vector< const PostprocessorValue * > _material_input
Postprocessors containing additional material released to the cavity.
std::vector< const PostprocessorValue * > _volume
Postprocessors whose sum equal the meshed cavity volume.
const InputParameters & parameters() const