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

A user object that computes the ghost cell values based on the slip wall boundary condition. More...

#include <CNSFVSlipBCUserObject.h>

Inheritance diagram for CNSFVSlipBCUserObject:
[legend]

Public Member Functions

 CNSFVSlipBCUserObject (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
 

Detailed Description

A user object that computes the ghost cell values based on the slip wall boundary condition.

Definition at line 22 of file CNSFVSlipBCUserObject.h.

Constructor & Destructor Documentation

CNSFVSlipBCUserObject::CNSFVSlipBCUserObject ( const InputParameters &  parameters)

Definition at line 25 of file CNSFVSlipBCUserObject.C.

26  : BCUserObject(parameters), _fp(getUserObject<SinglePhaseFluidProperties>("fluid_properties"))
27 {
28 }
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 > CNSFVSlipBCUserObject::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

pass the inputs to local

Implements BCUserObject.

Definition at line 31 of file CNSFVSlipBCUserObject.C.

35 {
37 
38  Real rho1 = uvec1[0];
39  Real rhou1 = uvec1[1];
40  Real rhov1 = uvec1[2];
41  Real rhow1 = uvec1[3];
42  Real rhoe1 = uvec1[4];
43 
44  Real nx = dwave(0);
45  Real ny = dwave(1);
46  Real nz = dwave(2);
47 
48  std::vector<Real> urigh(5, 0.);
49 
50  Real mdotn = rhou1 * nx + rhov1 * ny + rhow1 * nz;
51 
52  urigh[0] = rho1;
53  urigh[1] = rhou1 - 2. * mdotn * nx;
54  urigh[2] = rhov1 - 2. * mdotn * ny;
55  urigh[3] = rhow1 - 2. * mdotn * nz;
56  urigh[4] = rhoe1;
57 
58  return urigh;
59 }
void BCUserObject::initialize ( )
virtualinherited

Definition at line 21 of file BCUserObject.C.

22 {
23 }

Member Data Documentation

const SinglePhaseFluidProperties& CNSFVSlipBCUserObject::_fp
protected

Definition at line 33 of file CNSFVSlipBCUserObject.h.


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