www.mooseframework.org
CNSFVFreeOutflowBCUserObject.C
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 
9 
10 template <>
11 InputParameters
13 {
14  InputParameters params = validParams<BCUserObject>();
15 
16  params.addClassDescription("A user object that computes the ghost cell values based on the free "
17  "outflow boundary condition.");
18 
19  params.addRequiredParam<UserObjectName>("fluid_properties",
20  "Name for fluid properties user object");
21 
22  return params;
23 }
24 
26  : BCUserObject(parameters), _fp(getUserObject<SinglePhaseFluidProperties>("fluid_properties"))
27 {
28 }
29 
30 std::vector<Real>
32  dof_id_type /*ielem*/,
33  const std::vector<Real> & uvec1,
34  const RealVectorValue & /*dwave*/) const
35 {
36  return uvec1;
37 }
CNSFVFreeOutflowBCUserObject(const InputParameters &parameters)
InputParameters validParams< CNSFVFreeOutflowBCUserObject >()
InputParameters validParams< BCUserObject >()
Definition: BCUserObject.C:12
Common class for single phase fluid properties.
A base class of user object for calculating the variable values in ghost element according to specifi...
Definition: BCUserObject.h:42
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