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

#include <MomentumFreeBC.h>

Inheritance diagram for MomentumFreeBC:
[legend]

Public Member Functions

 MomentumFreeBC (const InputParameters &parameters)
 

Protected Member Functions

virtual Real computeQpResidual ()
 

Protected Attributes

unsigned int _component
 
const VariableValue & _pressure
 
const VariableValue & _vel_x
 
const VariableValue & _vel_y
 
const VariableValue & _vel_z
 

Detailed Description

Definition at line 23 of file MomentumFreeBC.h.

Constructor & Destructor Documentation

◆ MomentumFreeBC()

MomentumFreeBC::MomentumFreeBC ( const InputParameters &  parameters)

Definition at line 29 of file MomentumFreeBC.C.

30  : IntegratedBC(parameters),
31  _component(getParam<unsigned int>("component")),
32  _pressure(coupledValue("pressure")),
33  _vel_x(coupledValue("vel_x")),
34  _vel_y(_mesh.dimension() >= 2 ? coupledValue("vel_y") : _zero),
35  _vel_z(_mesh.dimension() >= 3 ? coupledValue("vel_z") : _zero)
36 {
37 }
const VariableValue & _vel_z
const VariableValue & _vel_y
const VariableValue & _pressure
const VariableValue & _vel_x
unsigned int _component

Member Function Documentation

◆ computeQpResidual()

Real MomentumFreeBC::computeQpResidual ( )
protectedvirtual

Definition at line 40 of file MomentumFreeBC.C.

41 {
42  RealVectorValue vel_vec(_vel_x[_qp], _vel_y[_qp], _vel_z[_qp]);
43  return (_u[_qp] * vel_vec * _normals[_qp] + _pressure[_qp] * _normals[_qp](_component)) *
44  _test[_i][_qp];
45 }
const VariableValue & _vel_z
const VariableValue & _vel_y
const VariableValue & _pressure
const VariableValue & _vel_x
unsigned int _component

Member Data Documentation

◆ _component

unsigned int MomentumFreeBC::_component
protected

Definition at line 31 of file MomentumFreeBC.h.

Referenced by computeQpResidual().

◆ _pressure

const VariableValue& MomentumFreeBC::_pressure
protected

Definition at line 33 of file MomentumFreeBC.h.

Referenced by computeQpResidual().

◆ _vel_x

const VariableValue& MomentumFreeBC::_vel_x
protected

Definition at line 34 of file MomentumFreeBC.h.

Referenced by computeQpResidual().

◆ _vel_y

const VariableValue& MomentumFreeBC::_vel_y
protected

Definition at line 35 of file MomentumFreeBC.h.

Referenced by computeQpResidual().

◆ _vel_z

const VariableValue& MomentumFreeBC::_vel_z
protected

Definition at line 36 of file MomentumFreeBC.h.

Referenced by computeQpResidual().


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