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

An initial condition object for computing Mach number from conserved variables. More...

#include <CNSFVMachIC.h>

Inheritance diagram for CNSFVMachIC:
[legend]

Public Member Functions

 CNSFVMachIC (const InputParameters &parameters)
 
virtual ~CNSFVMachIC ()
 
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 Mach number from conserved variables.

Definition at line 22 of file CNSFVMachIC.h.

Constructor & Destructor Documentation

CNSFVMachIC::CNSFVMachIC ( const InputParameters &  parameters)

Definition at line 34 of file CNSFVMachIC.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 VariableValue & _rhoe
Definition: CNSFVMachIC.h:35
const VariableValue & _rhow
Definition: CNSFVMachIC.h:34
const SinglePhaseFluidProperties & _fp
Definition: CNSFVMachIC.h:37
const VariableValue & _rho
Definition: CNSFVMachIC.h:31
const VariableValue & _rhov
Definition: CNSFVMachIC.h:33
const VariableValue & _rhou
Definition: CNSFVMachIC.h:32
CNSFVMachIC::~CNSFVMachIC ( )
virtual

Definition at line 45 of file CNSFVMachIC.C.

45 {}

Member Function Documentation

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

Definition at line 48 of file CNSFVMachIC.C.

49 {
50  Real v = 1. / _rho[_qp];
51 
52  Real vdov = v * v * (_rhou[_qp] * _rhou[_qp] + _rhov[_qp] * _rhov[_qp] + _rhow[_qp] * _rhow[_qp]);
53 
54  Real e = _rhoe[_qp] * v - 0.5 * vdov;
55 
56  return std::sqrt(vdov) / _fp.c(v, e);
57 }
virtual Real c(Real v, Real u) const =0
Sound speed.
const VariableValue & _rhoe
Definition: CNSFVMachIC.h:35
const VariableValue & _rhow
Definition: CNSFVMachIC.h:34
const SinglePhaseFluidProperties & _fp
Definition: CNSFVMachIC.h:37
const VariableValue & _rho
Definition: CNSFVMachIC.h:31
const VariableValue & _rhov
Definition: CNSFVMachIC.h:33
const VariableValue & _rhou
Definition: CNSFVMachIC.h:32

Member Data Documentation

const SinglePhaseFluidProperties& CNSFVMachIC::_fp
protected

Definition at line 37 of file CNSFVMachIC.h.

Referenced by value().

const VariableValue& CNSFVMachIC::_rho
protected

Definition at line 31 of file CNSFVMachIC.h.

Referenced by value().

const VariableValue& CNSFVMachIC::_rhoe
protected

Definition at line 35 of file CNSFVMachIC.h.

Referenced by value().

const VariableValue& CNSFVMachIC::_rhou
protected

Definition at line 32 of file CNSFVMachIC.h.

Referenced by value().

const VariableValue& CNSFVMachIC::_rhov
protected

Definition at line 33 of file CNSFVMachIC.h.

Referenced by value().

const VariableValue& CNSFVMachIC::_rhow
protected

Definition at line 34 of file CNSFVMachIC.h.

Referenced by value().


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