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

This class implements the "No BC" boundary condition based on the "Laplace" form of the viscous stress tensor. More...

#include <INSMomentumNoBCBCLaplaceForm.h>

Inheritance diagram for INSMomentumNoBCBCLaplaceForm:
[legend]

Public Member Functions

 INSMomentumNoBCBCLaplaceForm (const InputParameters &parameters)
 
virtual ~INSMomentumNoBCBCLaplaceForm ()
 

Protected Member Functions

virtual Real computeQpResidual ()
 
virtual Real computeQpJacobian ()
 
virtual Real computeQpOffDiagJacobian (unsigned jvar)
 

Protected Attributes

const VariableValue & _u_vel
 
const VariableValue & _v_vel
 
const VariableValue & _w_vel
 
const VariableValue & _p
 
const VariableGradient & _grad_u_vel
 
const VariableGradient & _grad_v_vel
 
const VariableGradient & _grad_w_vel
 
unsigned _u_vel_var_number
 
unsigned _v_vel_var_number
 
unsigned _w_vel_var_number
 
unsigned _p_var_number
 
RealVectorValue _gravity
 
unsigned _component
 
bool _integrate_p_by_parts
 
const MaterialProperty< Real > & _mu
 
const MaterialProperty< Real > & _rho
 

Detailed Description

This class implements the "No BC" boundary condition based on the "Laplace" form of the viscous stress tensor.

Definition at line 22 of file INSMomentumNoBCBCLaplaceForm.h.

Constructor & Destructor Documentation

INSMomentumNoBCBCLaplaceForm::INSMomentumNoBCBCLaplaceForm ( const InputParameters &  parameters)

Definition at line 22 of file INSMomentumNoBCBCLaplaceForm.C.

23  : INSMomentumNoBCBCBase(parameters)
24 {
25 }
INSMomentumNoBCBCBase(const InputParameters &parameters)
virtual INSMomentumNoBCBCLaplaceForm::~INSMomentumNoBCBCLaplaceForm ( )
inlinevirtual

Definition at line 27 of file INSMomentumNoBCBCLaplaceForm.h.

27 {}

Member Function Documentation

Real INSMomentumNoBCBCLaplaceForm::computeQpJacobian ( )
protectedvirtual

Definition at line 42 of file INSMomentumNoBCBCLaplaceForm.C.

Referenced by ~INSMomentumNoBCBCLaplaceForm().

43 {
44  return -_mu[_qp] * (_grad_phi[_j][_qp] * _normals[_qp]) * _test[_i][_qp];
45 }
const MaterialProperty< Real > & _mu
Real INSMomentumNoBCBCLaplaceForm::computeQpOffDiagJacobian ( unsigned  jvar)
protectedvirtual

Definition at line 48 of file INSMomentumNoBCBCLaplaceForm.C.

Referenced by ~INSMomentumNoBCBCLaplaceForm().

49 {
50  if (jvar == _p_var_number && _integrate_p_by_parts)
51  return _phi[_j][_qp] * _normals[_qp](_component) * _test[_i][_qp];
52 
53  else
54  return 0.;
55 }
Real INSMomentumNoBCBCLaplaceForm::computeQpResidual ( )
protectedvirtual

Definition at line 28 of file INSMomentumNoBCBCLaplaceForm.C.

Referenced by ~INSMomentumNoBCBCLaplaceForm().

29 {
30  // -mu * (grad(u).n) * test
31  Real viscous_part = -_mu[_qp] * (_grad_u[_qp] * _normals[_qp]) * _test[_i][_qp];
32 
33  // pIn * test
34  Real pressure_part = 0.;
36  pressure_part = _p[_qp] * _normals[_qp](_component) * _test[_i][_qp];
37 
38  return viscous_part + pressure_part;
39 }
const MaterialProperty< Real > & _mu
const VariableValue & _p

Member Data Documentation

unsigned INSMomentumNoBCBCBase::_component
protectedinherited
const VariableGradient& INSMomentumNoBCBCBase::_grad_u_vel
protectedinherited
const VariableGradient& INSMomentumNoBCBCBase::_grad_v_vel
protectedinherited
const VariableGradient& INSMomentumNoBCBCBase::_grad_w_vel
protectedinherited
RealVectorValue INSMomentumNoBCBCBase::_gravity
protectedinherited

Definition at line 53 of file INSMomentumNoBCBCBase.h.

bool INSMomentumNoBCBCBase::_integrate_p_by_parts
protectedinherited
const MaterialProperty<Real>& INSMomentumNoBCBCBase::_mu
protectedinherited
const VariableValue& INSMomentumNoBCBCBase::_p
protectedinherited
unsigned INSMomentumNoBCBCBase::_p_var_number
protectedinherited
const MaterialProperty<Real>& INSMomentumNoBCBCBase::_rho
protectedinherited

Definition at line 58 of file INSMomentumNoBCBCBase.h.

const VariableValue& INSMomentumNoBCBCBase::_u_vel
protectedinherited

Definition at line 37 of file INSMomentumNoBCBCBase.h.

unsigned INSMomentumNoBCBCBase::_u_vel_var_number
protectedinherited
const VariableValue& INSMomentumNoBCBCBase::_v_vel
protectedinherited

Definition at line 38 of file INSMomentumNoBCBCBase.h.

unsigned INSMomentumNoBCBCBase::_v_vel_var_number
protectedinherited
const VariableValue& INSMomentumNoBCBCBase::_w_vel
protectedinherited

Definition at line 39 of file INSMomentumNoBCBCBase.h.

unsigned INSMomentumNoBCBCBase::_w_vel_var_number
protectedinherited

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