www.mooseframework.org
NSPressureAux.C
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 // Navier-Stokes inclues
11 #include "NSPressureAux.h"
12 #include "NS.h"
13 
14 // FluidProperties includes
16 
17 // MOOSE includes
18 #include "MooseMesh.h"
19 
20 registerMooseObject("NavierStokesApp", NSPressureAux);
21 
24 {
26 
27  params.addClassDescription("Nodal auxiliary variable, for computing pressure at the nodes.");
28  // Mark variables as required
29  params.addRequiredCoupledVar(NS::specific_volume, "specific volume");
30  params.addRequiredCoupledVar(NS::specific_internal_energy, "internal energy");
31  params.addRequiredParam<UserObjectName>("fluid_properties",
32  "The name of the user object for fluid properties");
33 
34  return params;
35 }
36 
38  : AuxKernel(parameters),
39  _specific_volume(coupledValue(NS::specific_volume)),
40  _specific_internal_energy(coupledValue(NS::specific_internal_energy)),
41  _fp(getUserObject<IdealGasFluidProperties>("fluid_properties"))
42 {
43  mooseDeprecated("The NSPressureAux aux kernel has been replaced by the "
44  "PressureAux kernel in the fluid properties module.");
45 }
46 
47 Real
49 {
51 }
Nodal auxiliary variable, for computing pressure at the nodes.
Definition: NSPressureAux.h:20
void mooseDeprecated(Args &&... args) const
virtual Real p_from_v_e(Real v, Real e) const override
virtual Real computeValue()
Definition: NSPressureAux.C:48
registerMooseObject("NavierStokesApp", NSPressureAux)
static const std::string specific_internal_energy
Definition: NS.h:60
const VariableValue & _specific_volume
Definition: NSPressureAux.h:32
void addRequiredParam(const std::string &name, const std::string &doc_string)
static InputParameters validParams()
Definition: NSPressureAux.C:23
NSPressureAux(const InputParameters &parameters)
Definition: NSPressureAux.C:37
static const std::string specific_volume
Definition: NS.h:79
const VariableValue & _specific_internal_energy
Definition: NSPressureAux.h:33
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
const IdealGasFluidProperties & _fp
Definition: NSPressureAux.h:36
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void addClassDescription(const std::string &doc_string)
static InputParameters validParams()
Ideal gas fluid properties Default parameters are for air at atmospheric pressure and temperature...