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

A user object that computes the ghost cell values based on the free inflow boundary condition. More...

#include <CNSFVFreeInflowBCUserObject.h>

Inheritance diagram for CNSFVFreeInflowBCUserObject:
[legend]

Public Member Functions

 CNSFVFreeInflowBCUserObject (const InputParameters &parameters)
 
virtual std::vector< Real > getGhostCellValue (unsigned int iside, dof_id_type ielem, const std::vector< Real > &uvec1, const RealVectorValue &dwave) const
 compute the ghost cell variable values More...
 
virtual void initialize ()
 
virtual void execute ()
 
virtual void finalize ()
 

Protected Attributes

const SinglePhaseFluidProperties_fp
 
Real _inf_rho
 
Real _inf_uadv
 
Real _inf_vadv
 
Real _inf_wadv
 
Real _inf_pres
 

Detailed Description

A user object that computes the ghost cell values based on the free inflow boundary condition.

Definition at line 22 of file CNSFVFreeInflowBCUserObject.h.

Constructor & Destructor Documentation

CNSFVFreeInflowBCUserObject::CNSFVFreeInflowBCUserObject ( const InputParameters &  parameters)

Definition at line 36 of file CNSFVFreeInflowBCUserObject.C.

37  : BCUserObject(parameters),
38  _fp(getUserObject<SinglePhaseFluidProperties>("fluid_properties")),
39  _inf_rho(getParam<Real>("infinity_density")),
40  _inf_uadv(getParam<Real>("infinity_x_velocity")),
41  _inf_vadv(getParam<Real>("infinity_y_velocity")),
42  _inf_wadv(getParam<Real>("infinity_z_velocity")),
43  _inf_pres(getParam<Real>("infinity_pressure"))
44 {
45 }
BCUserObject(const InputParameters &parameters)
Definition: BCUserObject.C:18
const SinglePhaseFluidProperties & _fp

Member Function Documentation

void BCUserObject::execute ( )
virtualinherited

Definition at line 26 of file BCUserObject.C.

27 {
28 }
void BCUserObject::finalize ( )
virtualinherited

Definition at line 31 of file BCUserObject.C.

32 {
33 }
std::vector< Real > CNSFVFreeInflowBCUserObject::getGhostCellValue ( unsigned int  iside,
dof_id_type  ielem,
const std::vector< Real > &  uvec1,
const RealVectorValue &  dwave 
) const
virtual

compute the ghost cell variable values

Parameters
[in]isidelocal index of current side
[in]ielemglobal index of the current element
[in]uvec1vector of variables on the host side
[in]dwavevector of unit normal

Implements BCUserObject.

Definition at line 48 of file CNSFVFreeInflowBCUserObject.C.

52 {
53  std::vector<Real> urigh(5, 0.);
54 
55  urigh[0] = _inf_rho;
56  urigh[1] = _inf_rho * _inf_uadv;
57  urigh[2] = _inf_rho * _inf_vadv;
58  urigh[3] = _inf_rho * _inf_wadv;
59  urigh[4] =
61  0.5 * (_inf_uadv * _inf_uadv + _inf_vadv * _inf_vadv + _inf_wadv * _inf_wadv));
62 
63  return urigh;
64 }
const SinglePhaseFluidProperties & _fp
virtual Real e(Real pressure, Real rho) const =0
Computes internal energy from pressure and density.
void BCUserObject::initialize ( )
virtualinherited

Definition at line 21 of file BCUserObject.C.

22 {
23 }

Member Data Documentation

const SinglePhaseFluidProperties& CNSFVFreeInflowBCUserObject::_fp
protected

Definition at line 33 of file CNSFVFreeInflowBCUserObject.h.

Referenced by getGhostCellValue().

Real CNSFVFreeInflowBCUserObject::_inf_pres
protected

Definition at line 39 of file CNSFVFreeInflowBCUserObject.h.

Referenced by getGhostCellValue().

Real CNSFVFreeInflowBCUserObject::_inf_rho
protected

Definition at line 35 of file CNSFVFreeInflowBCUserObject.h.

Referenced by getGhostCellValue().

Real CNSFVFreeInflowBCUserObject::_inf_uadv
protected

Definition at line 36 of file CNSFVFreeInflowBCUserObject.h.

Referenced by getGhostCellValue().

Real CNSFVFreeInflowBCUserObject::_inf_vadv
protected

Definition at line 37 of file CNSFVFreeInflowBCUserObject.h.

Referenced by getGhostCellValue().

Real CNSFVFreeInflowBCUserObject::_inf_wadv
protected

Definition at line 38 of file CNSFVFreeInflowBCUserObject.h.

Referenced by getGhostCellValue().


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