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 24 of file INSDivergenceAux.h.

Constructor & Destructor Documentation

◆ INSDivergenceAux()

INSDivergenceAux::INSDivergenceAux ( const InputParameters &  parameters)

Definition at line 30 of file INSDivergenceAux.C.

31  : AuxKernel(parameters),
32  _grad_u_vel(coupledGradient("u")),
33  _grad_v_vel(_mesh.dimension() >= 2 ? coupledGradient("v") : _grad_zero),
34  _grad_w_vel(_mesh.dimension() == 3 ? coupledGradient("w") : _grad_zero)
35 {
36 }
const VariableGradient & _grad_u_vel
const VariableGradient & _grad_w_vel
const VariableGradient & _grad_v_vel

◆ ~INSDivergenceAux()

virtual INSDivergenceAux::~INSDivergenceAux ( )
inlinevirtual

Definition at line 29 of file INSDivergenceAux.h.

29 {}

Member Function Documentation

◆ computeValue()

Real INSDivergenceAux::computeValue ( )
protectedvirtual

Definition at line 39 of file INSDivergenceAux.C.

40 {
41  // div U = du/dx + dv/dy + dw/dz
42  return _grad_u_vel[_qp](0) + _grad_v_vel[_qp](1) + _grad_w_vel[_qp](2);
43 }
const VariableGradient & _grad_u_vel
const VariableGradient & _grad_w_vel
const VariableGradient & _grad_v_vel

Member Data Documentation

◆ _grad_u_vel

const VariableGradient& INSDivergenceAux::_grad_u_vel
protected

Definition at line 35 of file INSDivergenceAux.h.

Referenced by computeValue().

◆ _grad_v_vel

const VariableGradient& INSDivergenceAux::_grad_v_vel
protected

Definition at line 36 of file INSDivergenceAux.h.

Referenced by computeValue().

◆ _grad_w_vel

const VariableGradient& INSDivergenceAux::_grad_w_vel
protected

Definition at line 37 of file INSDivergenceAux.h.

Referenced by computeValue().


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