www.mooseframework.org
PressureAux.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 #include "PressureAux.h"
12 
13 registerMooseObject("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");
22  params.addClassDescription(
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 
35 Real
37 {
38  return _fp.p_from_v_e(_v[_qp], _e[_qp]);
39 }
const VariableValue & _v
Definition: PressureAux.h:29
void addRequiredParam(const std::string &name, const std::string &doc_string)
const VariableValue & _e
Definition: PressureAux.h:30
Common class for single phase fluid properties.
static InputParameters validParams()
Definition: PressureAux.C:16
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
Computes pressure from specific volume and specific internal energy.
Definition: PressureAux.h:19
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
registerMooseObject("FluidPropertiesApp", PressureAux)
void addClassDescription(const std::string &doc_string)
static InputParameters validParams()
PressureAux(const InputParameters &parameters)
Definition: PressureAux.C:27
const SinglePhaseFluidProperties & _fp
Definition: PressureAux.h:32
virtual Real computeValue()
Definition: PressureAux.C:36