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

Constructor & Destructor Documentation

◆ INSCourant()

INSCourant::INSCourant ( const InputParameters &  parameters)

Definition at line 30 of file INSCourant.C.

31  : AuxKernel(parameters),
32  _u_vel(coupledValue("u")),
33  _v_vel(_mesh.dimension() >= 2 ? coupledValue("v") : _zero),
34  _w_vel(_mesh.dimension() == 3 ? coupledValue("w") : _zero)
35 {
36 }
const VariableValue & _w_vel
Definition: INSCourant.h:35
const VariableValue & _u_vel
Definition: INSCourant.h:33
const VariableValue & _v_vel
Definition: INSCourant.h:34

Member Function Documentation

◆ computeValue()

Real INSCourant::computeValue ( )
protectedvirtual

Definition at line 39 of file INSCourant.C.

40 {
41  const RealVectorValue U(_u_vel[_qp], _v_vel[_qp], _w_vel[_qp]);
42  Real vel_mag = U.norm();
43 
44  // Don't divide by zero...
45  vel_mag = std::max(vel_mag, std::numeric_limits<Real>::epsilon());
46 
47  return _current_elem->hmin() / vel_mag;
48 }
const VariableValue & _w_vel
Definition: INSCourant.h:35
const VariableValue & _u_vel
Definition: INSCourant.h:33
const VariableValue & _v_vel
Definition: INSCourant.h:34

Member Data Documentation

◆ _u_vel

const VariableValue& INSCourant::_u_vel
protected

Definition at line 33 of file INSCourant.h.

Referenced by computeValue().

◆ _v_vel

const VariableValue& INSCourant::_v_vel
protected

Definition at line 34 of file INSCourant.h.

Referenced by computeValue().

◆ _w_vel

const VariableValue& INSCourant::_w_vel
protected

Definition at line 35 of file INSCourant.h.

Referenced by computeValue().


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