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 25 of file INSMomentumNoBCBCLaplaceForm.h.

Constructor & Destructor Documentation

◆ INSMomentumNoBCBCLaplaceForm()

INSMomentumNoBCBCLaplaceForm::INSMomentumNoBCBCLaplaceForm ( const InputParameters &  parameters)

Definition at line 26 of file INSMomentumNoBCBCLaplaceForm.C.

27  : INSMomentumNoBCBCBase(parameters)
28 {
29 }
INSMomentumNoBCBCBase(const InputParameters &parameters)

◆ ~INSMomentumNoBCBCLaplaceForm()

virtual INSMomentumNoBCBCLaplaceForm::~INSMomentumNoBCBCLaplaceForm ( )
inlinevirtual

Definition at line 30 of file INSMomentumNoBCBCLaplaceForm.h.

30 {}

Member Function Documentation

◆ computeQpJacobian()

Real INSMomentumNoBCBCLaplaceForm::computeQpJacobian ( )
protectedvirtual

Definition at line 46 of file INSMomentumNoBCBCLaplaceForm.C.

47 {
48  return -_mu[_qp] * (_grad_phi[_j][_qp] * _normals[_qp]) * _test[_i][_qp];
49 }
const MaterialProperty< Real > & _mu

◆ computeQpOffDiagJacobian()

Real INSMomentumNoBCBCLaplaceForm::computeQpOffDiagJacobian ( unsigned  jvar)
protectedvirtual

Definition at line 52 of file INSMomentumNoBCBCLaplaceForm.C.

53 {
54  if (jvar == _p_var_number && _integrate_p_by_parts)
55  return _phi[_j][_qp] * _normals[_qp](_component) * _test[_i][_qp];
56 
57  else
58  return 0.;
59 }

◆ computeQpResidual()

Real INSMomentumNoBCBCLaplaceForm::computeQpResidual ( )
protectedvirtual

Definition at line 32 of file INSMomentumNoBCBCLaplaceForm.C.

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

Member Data Documentation

◆ _component

unsigned INSMomentumNoBCBCBase::_component
protectedinherited

◆ _grad_u_vel

const VariableGradient& INSMomentumNoBCBCBase::_grad_u_vel
protectedinherited

◆ _grad_v_vel

const VariableGradient& INSMomentumNoBCBCBase::_grad_v_vel
protectedinherited

◆ _grad_w_vel

const VariableGradient& INSMomentumNoBCBCBase::_grad_w_vel
protectedinherited

◆ _gravity

RealVectorValue INSMomentumNoBCBCBase::_gravity
protectedinherited

Definition at line 56 of file INSMomentumNoBCBCBase.h.

◆ _integrate_p_by_parts

bool INSMomentumNoBCBCBase::_integrate_p_by_parts
protectedinherited

◆ _mu

const MaterialProperty<Real>& INSMomentumNoBCBCBase::_mu
protectedinherited

◆ _p

const VariableValue& INSMomentumNoBCBCBase::_p
protectedinherited

◆ _p_var_number

unsigned INSMomentumNoBCBCBase::_p_var_number
protectedinherited

◆ _rho

const MaterialProperty<Real>& INSMomentumNoBCBCBase::_rho
protectedinherited

Definition at line 61 of file INSMomentumNoBCBCBase.h.

◆ _u_vel

const VariableValue& INSMomentumNoBCBCBase::_u_vel
protectedinherited

Definition at line 40 of file INSMomentumNoBCBCBase.h.

◆ _u_vel_var_number

unsigned INSMomentumNoBCBCBase::_u_vel_var_number
protectedinherited

◆ _v_vel

const VariableValue& INSMomentumNoBCBCBase::_v_vel
protectedinherited

Definition at line 41 of file INSMomentumNoBCBCBase.h.

◆ _v_vel_var_number

unsigned INSMomentumNoBCBCBase::_v_vel_var_number
protectedinherited

◆ _w_vel

const VariableValue& INSMomentumNoBCBCBase::_w_vel
protectedinherited

Definition at line 42 of file INSMomentumNoBCBCBase.h.

◆ _w_vel_var_number

unsigned INSMomentumNoBCBCBase::_w_vel_var_number
protectedinherited

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