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

#include <NSImposedVelocityBC.h>

Inheritance diagram for NSImposedVelocityBC:
[legend]

Public Member Functions

 NSImposedVelocityBC (const InputParameters &parameters)
 

Protected Member Functions

virtual Real computeQpResidual ()
 

Protected Attributes

const VariableValue & _rho
 
Real _desired_velocity
 

Detailed Description

Definition at line 20 of file NSImposedVelocityBC.h.

Constructor & Destructor Documentation

NSImposedVelocityBC::NSImposedVelocityBC ( const InputParameters &  parameters)

Definition at line 23 of file NSImposedVelocityBC.C.

24  : NodalBC(parameters),
25  _rho(coupledValue(NS::density)),
26  _desired_velocity(getParam<Real>("desired_velocity"))
27 {
28 }
const VariableValue & _rho
const std::string density
Definition: NS.h:15

Member Function Documentation

Real NSImposedVelocityBC::computeQpResidual ( )
protectedvirtual

Definition at line 31 of file NSImposedVelocityBC.C.

32 {
33  // Return the difference between the current momentum and the desired value
34  // (rho*u) - rho*desired_velocity
35  return _u[_qp] - (_rho[_qp] * _desired_velocity);
36 }
const VariableValue & _rho

Member Data Documentation

Real NSImposedVelocityBC::_desired_velocity
protected

Definition at line 36 of file NSImposedVelocityBC.h.

Referenced by computeQpResidual().

const VariableValue& NSImposedVelocityBC::_rho
protected

Definition at line 33 of file NSImposedVelocityBC.h.

Referenced by computeQpResidual().


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