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

Computes h_min / |u|. More...

#include <INSDivergenceAux.h>

Inheritance diagram for INSDivergenceAux:
[legend]

Public Member Functions

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

Protected Member Functions

virtual Real computeValue ()
 

Protected Attributes

const VariableGradient & _grad_u_vel
 
const VariableGradient & _grad_v_vel
 
const VariableGradient & _grad_w_vel
 

Detailed Description

Computes h_min / |u|.

Definition at line 21 of file INSDivergenceAux.h.

Constructor & Destructor Documentation

INSDivergenceAux::INSDivergenceAux ( const InputParameters &  parameters)

Definition at line 26 of file INSDivergenceAux.C.

27  : AuxKernel(parameters),
28  _grad_u_vel(coupledGradient("u")),
29  _grad_v_vel(_mesh.dimension() >= 2 ? coupledGradient("v") : _grad_zero),
30  _grad_w_vel(_mesh.dimension() == 3 ? coupledGradient("w") : _grad_zero)
31 {
32 }
const VariableGradient & _grad_u_vel
const VariableGradient & _grad_w_vel
const VariableGradient & _grad_v_vel
virtual INSDivergenceAux::~INSDivergenceAux ( )
inlinevirtual

Definition at line 26 of file INSDivergenceAux.h.

26 {}

Member Function Documentation

Real INSDivergenceAux::computeValue ( )
protectedvirtual

Definition at line 35 of file INSDivergenceAux.C.

Referenced by ~INSDivergenceAux().

36 {
37  // div U = du/dx + dv/dy + dw/dz
38  return _grad_u_vel[_qp](0) + _grad_v_vel[_qp](1) + _grad_w_vel[_qp](2);
39 }
const VariableGradient & _grad_u_vel
const VariableGradient & _grad_w_vel
const VariableGradient & _grad_v_vel

Member Data Documentation

const VariableGradient& INSDivergenceAux::_grad_u_vel
protected

Definition at line 32 of file INSDivergenceAux.h.

Referenced by computeValue().

const VariableGradient& INSDivergenceAux::_grad_v_vel
protected

Definition at line 33 of file INSDivergenceAux.h.

Referenced by computeValue().

const VariableGradient& INSDivergenceAux::_grad_w_vel
protected

Definition at line 34 of file INSDivergenceAux.h.

Referenced by computeValue().


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