www.mooseframework.org
Public Member Functions | Protected Attributes | List of all members
CNSFVPressureIC Class Reference

An initial condition object for computing pressure from conserved variables. More...

#include <CNSFVPressureIC.h>

Inheritance diagram for CNSFVPressureIC:
[legend]

Public Member Functions

 CNSFVPressureIC (const InputParameters &parameters)
 
virtual ~CNSFVPressureIC ()
 
virtual Real value (const Point &p)
 

Protected Attributes

const VariableValue & _rho
 
const VariableValue & _rhou
 
const VariableValue & _rhov
 
const VariableValue & _rhow
 
const VariableValue & _rhoe
 
const SinglePhaseFluidProperties_fp
 

Detailed Description

An initial condition object for computing pressure from conserved variables.

Definition at line 22 of file CNSFVPressureIC.h.

Constructor & Destructor Documentation

CNSFVPressureIC::CNSFVPressureIC ( const InputParameters &  parameters)

Definition at line 34 of file CNSFVPressureIC.C.

35  : InitialCondition(parameters),
36  _rho(coupledValue("rho")),
37  _rhou(coupledValue("rhou")),
38  _rhov(isCoupled("rhov") ? coupledValue("rhov") : _zero),
39  _rhow(isCoupled("rhow") ? coupledValue("rhow") : _zero),
40  _rhoe(coupledValue("rhoe")),
41  _fp(getUserObject<SinglePhaseFluidProperties>("fluid_properties"))
42 {
43 }
const SinglePhaseFluidProperties & _fp
const VariableValue & _rhov
const VariableValue & _rhoe
const VariableValue & _rhow
const VariableValue & _rho
const VariableValue & _rhou
CNSFVPressureIC::~CNSFVPressureIC ( )
virtual

Definition at line 45 of file CNSFVPressureIC.C.

45 {}

Member Function Documentation

Real CNSFVPressureIC::value ( const Point &  p)
virtual

Definition at line 48 of file CNSFVPressureIC.C.

49 {
50  Real v = 1. / _rho[_qp];
51 
52  Real e =
53  _rhoe[_qp] * v -
54  0.5 * v * v * (_rhou[_qp] * _rhou[_qp] + _rhov[_qp] * _rhov[_qp] + _rhow[_qp] * _rhow[_qp]);
55 
56  return _fp.pressure(v, e);
57 }
const SinglePhaseFluidProperties & _fp
const VariableValue & _rhov
const VariableValue & _rhoe
const VariableValue & _rhow
const VariableValue & _rho
virtual Real pressure(Real v, Real u) const =0
Pressure as a function of specific internal energy and specific volume.
const VariableValue & _rhou

Member Data Documentation

const SinglePhaseFluidProperties& CNSFVPressureIC::_fp
protected

Definition at line 37 of file CNSFVPressureIC.h.

Referenced by value().

const VariableValue& CNSFVPressureIC::_rho
protected

Definition at line 31 of file CNSFVPressureIC.h.

Referenced by value().

const VariableValue& CNSFVPressureIC::_rhoe
protected

Definition at line 35 of file CNSFVPressureIC.h.

Referenced by value().

const VariableValue& CNSFVPressureIC::_rhou
protected

Definition at line 32 of file CNSFVPressureIC.h.

Referenced by value().

const VariableValue& CNSFVPressureIC::_rhov
protected

Definition at line 33 of file CNSFVPressureIC.h.

Referenced by value().

const VariableValue& CNSFVPressureIC::_rhow
protected

Definition at line 34 of file CNSFVPressureIC.h.

Referenced by value().


The documentation for this class was generated from the following files: