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

Computes h_min / |u|. More...

#include <INSCourant.h>

Inheritance diagram for INSCourant:
[legend]

Public Member Functions

 INSCourant (const InputParameters &parameters)
 

Protected Member Functions

virtual Real computeValue ()
 

Protected Attributes

const VariableValue & _u_vel
 
const VariableValue & _v_vel
 
const VariableValue & _w_vel
 

Detailed Description

Computes h_min / |u|.

Definition at line 21 of file INSCourant.h.

Constructor & Destructor Documentation

INSCourant::INSCourant ( const InputParameters &  parameters)

Definition at line 25 of file INSCourant.C.

26  : AuxKernel(parameters),
27  _u_vel(coupledValue("u")),
28  _v_vel(_mesh.dimension() >= 2 ? coupledValue("v") : _zero),
29  _w_vel(_mesh.dimension() == 3 ? coupledValue("w") : _zero)
30 {
31 }
const VariableValue & _w_vel
Definition: INSCourant.h:32
const VariableValue & _u_vel
Definition: INSCourant.h:30
const VariableValue & _v_vel
Definition: INSCourant.h:31

Member Function Documentation

Real INSCourant::computeValue ( )
protectedvirtual

Definition at line 34 of file INSCourant.C.

35 {
36  const RealVectorValue U(_u_vel[_qp], _v_vel[_qp], _w_vel[_qp]);
37  Real vel_mag = U.norm();
38 
39  // Don't divide by zero...
40  vel_mag = std::max(vel_mag, std::numeric_limits<Real>::epsilon());
41 
42  return _current_elem->hmin() / vel_mag;
43 }
const VariableValue & _w_vel
Definition: INSCourant.h:32
const VariableValue & _u_vel
Definition: INSCourant.h:30
const VariableValue & _v_vel
Definition: INSCourant.h:31

Member Data Documentation

const VariableValue& INSCourant::_u_vel
protected

Definition at line 30 of file INSCourant.h.

Referenced by computeValue().

const VariableValue& INSCourant::_v_vel
protected

Definition at line 31 of file INSCourant.h.

Referenced by computeValue().

const VariableValue& INSCourant::_w_vel
protected

Definition at line 32 of file INSCourant.h.

Referenced by computeValue().


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