https://mooseframework.inl.gov
Loading...
Searching...
No Matches
PressureAux.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#include "PressureAux.h"
12
13registerMooseObject("FluidPropertiesApp", PressureAux);
14
17{
19 params.addRequiredCoupledVar("e", "Specific internal energy");
20 params.addRequiredCoupledVar("v", "Specific volume");
21 params.addRequiredParam<UserObjectName>("fp", "The name of the user object for fluid properties");
23 "Computes pressure given specific volume and specific internal energy");
24 return params;
25}
26
28 : AuxKernel(parameters),
29 _v(coupledValue("v")),
30 _e(coupledValue("e")),
31 _fp(getUserObject<SinglePhaseFluidProperties>("fp"))
32{
33}
34
35Real
37{
38 return _fp.p_from_v_e(_v[_qp], _e[_qp]);
39}
registerMooseObject("FluidPropertiesApp", PressureAux)
static InputParameters validParams()
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)
Computes pressure from specific volume and specific internal energy.
Definition PressureAux.h:20
PressureAux(const InputParameters &parameters)
Definition PressureAux.C:27
virtual Real computeValue()
Definition PressureAux.C:36
const VariableValue & _v
Definition PressureAux.h:29
static InputParameters validParams()
Definition PressureAux.C:16
const SinglePhaseFluidProperties & _fp
Definition PressureAux.h:32
const VariableValue & _e
Definition PressureAux.h:30
Common class for single phase fluid properties.