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

Base class for the "No BC" boundary condition. More...

#include <INSMomentumNoBCBCBase.h>

Inheritance diagram for INSMomentumNoBCBCBase:
[legend]

Public Member Functions

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

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

Base class for the "No BC" boundary condition.

Subclasses will implement the computeQpXYZ() functions differently based on whether the "traction" or "Laplacian" form of the viscous stress tensor is used. The idea behind this is discussed by Griffiths, Papanastiou, and others. Note that this BC, unlike the natural BC, is insufficient to set the value of the pressure in outflow problems, and therefore you will need to implement a pressure pin or similar approach for constraining the null space of constant pressures.

Definition at line 30 of file INSMomentumNoBCBCBase.h.

Constructor & Destructor Documentation

◆ INSMomentumNoBCBCBase()

INSMomentumNoBCBCBase::INSMomentumNoBCBCBase ( const InputParameters &  parameters)

Definition at line 42 of file INSMomentumNoBCBCBase.C.

43  : IntegratedBC(parameters),
44 
45  // Coupled variables
46  _u_vel(coupledValue("u")),
47  _v_vel(_mesh.dimension() >= 2 ? coupledValue("v") : _zero),
48  _w_vel(_mesh.dimension() == 3 ? coupledValue("w") : _zero),
49  _p(coupledValue("p")),
50 
51  // Gradients
52  _grad_u_vel(coupledGradient("u")),
53  _grad_v_vel(_mesh.dimension() >= 2 ? coupledGradient("v") : _grad_zero),
54  _grad_w_vel(_mesh.dimension() == 3 ? coupledGradient("w") : _grad_zero),
55 
56  // Variable numberings
57  _u_vel_var_number(coupled("u")),
58  _v_vel_var_number(_mesh.dimension() >= 2 ? coupled("v") : libMesh::invalid_uint),
59  _w_vel_var_number(_mesh.dimension() == 3 ? coupled("w") : libMesh::invalid_uint),
60  _p_var_number(coupled("p")),
61 
62  // Required parameters
63  _gravity(getParam<RealVectorValue>("gravity")),
64  _component(getParam<unsigned>("component")),
65  _integrate_p_by_parts(getParam<bool>("integrate_p_by_parts")),
66 
67  // Material properties
68  _mu(getMaterialProperty<Real>("mu_name")),
69  _rho(getMaterialProperty<Real>("rho_name"))
70 {
71 }

◆ ~INSMomentumNoBCBCBase()

virtual INSMomentumNoBCBCBase::~INSMomentumNoBCBCBase ( )
inlinevirtual

Definition at line 35 of file INSMomentumNoBCBCBase.h.

35 {}

Member Data Documentation

◆ _component

unsigned INSMomentumNoBCBCBase::_component
protected

◆ _grad_u_vel

const VariableGradient& INSMomentumNoBCBCBase::_grad_u_vel
protected

◆ _grad_v_vel

const VariableGradient& INSMomentumNoBCBCBase::_grad_v_vel
protected

◆ _grad_w_vel

const VariableGradient& INSMomentumNoBCBCBase::_grad_w_vel
protected

◆ _gravity

RealVectorValue INSMomentumNoBCBCBase::_gravity
protected

Definition at line 55 of file INSMomentumNoBCBCBase.h.

◆ _integrate_p_by_parts

bool INSMomentumNoBCBCBase::_integrate_p_by_parts
protected

◆ _mu

const MaterialProperty<Real>& INSMomentumNoBCBCBase::_mu
protected

◆ _p

const VariableValue& INSMomentumNoBCBCBase::_p
protected

◆ _p_var_number

unsigned INSMomentumNoBCBCBase::_p_var_number
protected

◆ _rho

const MaterialProperty<Real>& INSMomentumNoBCBCBase::_rho
protected

Definition at line 60 of file INSMomentumNoBCBCBase.h.

◆ _u_vel

const VariableValue& INSMomentumNoBCBCBase::_u_vel
protected

Definition at line 39 of file INSMomentumNoBCBCBase.h.

◆ _u_vel_var_number

unsigned INSMomentumNoBCBCBase::_u_vel_var_number
protected

◆ _v_vel

const VariableValue& INSMomentumNoBCBCBase::_v_vel
protected

Definition at line 40 of file INSMomentumNoBCBCBase.h.

◆ _v_vel_var_number

unsigned INSMomentumNoBCBCBase::_v_vel_var_number
protected

◆ _w_vel

const VariableValue& INSMomentumNoBCBCBase::_w_vel
protected

Definition at line 41 of file INSMomentumNoBCBCBase.h.

◆ _w_vel_var_number

unsigned INSMomentumNoBCBCBase::_w_vel_var_number
protected

The documentation for this class was generated from the following files:
libMesh
Definition: RANFSNormalMechanicalContact.h:24
INSMomentumNoBCBCBase::_grad_w_vel
const VariableGradient & _grad_w_vel
Definition: INSMomentumNoBCBCBase.h:47
INSMomentumNoBCBCBase::_p_var_number
unsigned _p_var_number
Definition: INSMomentumNoBCBCBase.h:53
INSMomentumNoBCBCBase::_p
const VariableValue & _p
Definition: INSMomentumNoBCBCBase.h:42
INSMomentumNoBCBCBase::_integrate_p_by_parts
bool _integrate_p_by_parts
Definition: INSMomentumNoBCBCBase.h:57
INSMomentumNoBCBCBase::_component
unsigned _component
Definition: INSMomentumNoBCBCBase.h:56
INSMomentumNoBCBCBase::_w_vel
const VariableValue & _w_vel
Definition: INSMomentumNoBCBCBase.h:41
INSMomentumNoBCBCBase::_w_vel_var_number
unsigned _w_vel_var_number
Definition: INSMomentumNoBCBCBase.h:52
INSMomentumNoBCBCBase::_u_vel
const VariableValue & _u_vel
Definition: INSMomentumNoBCBCBase.h:39
INSMomentumNoBCBCBase::_gravity
RealVectorValue _gravity
Definition: INSMomentumNoBCBCBase.h:55
INSMomentumNoBCBCBase::_mu
const MaterialProperty< Real > & _mu
Definition: INSMomentumNoBCBCBase.h:59
INSMomentumNoBCBCBase::_v_vel_var_number
unsigned _v_vel_var_number
Definition: INSMomentumNoBCBCBase.h:51
INSMomentumNoBCBCBase::_v_vel
const VariableValue & _v_vel
Definition: INSMomentumNoBCBCBase.h:40
INSMomentumNoBCBCBase::_grad_u_vel
const VariableGradient & _grad_u_vel
Definition: INSMomentumNoBCBCBase.h:45
INSMomentumNoBCBCBase::_rho
const MaterialProperty< Real > & _rho
Definition: INSMomentumNoBCBCBase.h:60
INSMomentumNoBCBCBase::_u_vel_var_number
unsigned _u_vel_var_number
Definition: INSMomentumNoBCBCBase.h:50
INSMomentumNoBCBCBase::_grad_v_vel
const VariableGradient & _grad_v_vel
Definition: INSMomentumNoBCBCBase.h:46