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

#include <MassFreeBC.h>

Inheritance diagram for MassFreeBC:
[legend]

Public Member Functions

 MassFreeBC (const InputParameters &parameters)
 

Protected Member Functions

virtual Real computeQpResidual ()
 

Protected Attributes

const VariableValue & _vel_x
 
const VariableValue & _vel_y
 
const VariableValue & _vel_z
 

Detailed Description

Definition at line 23 of file MassFreeBC.h.

Constructor & Destructor Documentation

◆ MassFreeBC()

MassFreeBC::MassFreeBC ( const InputParameters &  parameters)

Definition at line 26 of file MassFreeBC.C.

27  : IntegratedBC(parameters),
28  _vel_x(coupledValue("vel_x")),
29  _vel_y(_mesh.dimension() >= 2 ? coupledValue("vel_y") : _zero),
30  _vel_z(_mesh.dimension() >= 3 ? coupledValue("vel_z") : _zero)
31 {
32 }
const VariableValue & _vel_z
Definition: MassFreeBC.h:33
const VariableValue & _vel_y
Definition: MassFreeBC.h:32
const VariableValue & _vel_x
Definition: MassFreeBC.h:31

Member Function Documentation

◆ computeQpResidual()

Real MassFreeBC::computeQpResidual ( )
protectedvirtual

Definition at line 35 of file MassFreeBC.C.

36 {
37  RealVectorValue vel_vec(_vel_x[_qp], _vel_y[_qp], _vel_z[_qp]);
38  return _u[_qp] * vel_vec * _normals[_qp] * _test[_i][_qp];
39 }
const VariableValue & _vel_z
Definition: MassFreeBC.h:33
const VariableValue & _vel_y
Definition: MassFreeBC.h:32
const VariableValue & _vel_x
Definition: MassFreeBC.h:31

Member Data Documentation

◆ _vel_x

const VariableValue& MassFreeBC::_vel_x
protected

Definition at line 31 of file MassFreeBC.h.

Referenced by computeQpResidual().

◆ _vel_y

const VariableValue& MassFreeBC::_vel_y
protected

Definition at line 32 of file MassFreeBC.h.

Referenced by computeQpResidual().

◆ _vel_z

const VariableValue& MassFreeBC::_vel_z
protected

Definition at line 33 of file MassFreeBC.h.

Referenced by computeQpResidual().


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