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 28 of file INSMomentumNoBCBCBase.h.

Constructor & Destructor Documentation

INSMomentumNoBCBCBase::INSMomentumNoBCBCBase ( const InputParameters &  parameters)

Definition at line 40 of file INSMomentumNoBCBCBase.C.

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

Definition at line 33 of file INSMomentumNoBCBCBase.h.

33 {}

Member Data Documentation

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

Definition at line 53 of file INSMomentumNoBCBCBase.h.

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

Definition at line 58 of file INSMomentumNoBCBCBase.h.

const VariableValue& INSMomentumNoBCBCBase::_u_vel
protected

Definition at line 37 of file INSMomentumNoBCBCBase.h.

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

Definition at line 38 of file INSMomentumNoBCBCBase.h.

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

Definition at line 39 of file INSMomentumNoBCBCBase.h.

unsigned INSMomentumNoBCBCBase::_w_vel_var_number
protected

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