https://mooseframework.inl.gov
Loading...
Searching...
No Matches
NSPressureAux.C
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// Navier-Stokes inclues
11#include "NSPressureAux.h"
12#include "NS.h"
13
14// FluidProperties includes
16
17// MOOSE includes
18#include "MooseMesh.h"
19
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
47Real
registerMooseObject("NavierStokesApp", NSPressureAux)
static InputParameters validParams()
Ideal gas fluid properties Default parameters are for air at atmospheric pressure and temperature.
virtual Real p_from_v_e(Real v, Real e) const override
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
void addRequiredParam(const std::string &name, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
void mooseDeprecated(Args &&... args) const
Nodal auxiliary variable, for computing pressure at the nodes.
const VariableValue & _specific_internal_energy
static InputParameters validParams()
const IdealGasFluidProperties & _fp
NSPressureAux(const InputParameters &parameters)
virtual Real computeValue()
const VariableValue & _specific_volume
static const std::string specific_volume
Definition NS.h:82
static const std::string specific_internal_energy
Definition NS.h:63