|
[Sponsors] |
SMALL, GREAT and ROOTVSMALL - what is that? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 18, 2013, 17:18 |
SMALL, GREAT and ROOTVSMALL - what is that?
|
#1 |
New Member
Thomas F.
Join Date: Jun 2013
Location: Graz, Austria
Posts: 14
Rep Power: 12 |
Dear Foamers!
I'm working on Euler/Lagrange validation cases at the moment. While looking into Disoersion Models I discoverd something in the Code - SMALL, GREAT and ROOTVSMALL. Some examples (from /openfoam211/src/lagrangian/intermediate/submodels/Kinematic/DispersionModel/GradientDispersionRAS/GradientDispersionRAS.C) Code:
scalar sigma = sqrt(2.0*k/3.0); vector dir = -gradk/(mag(gradk) + SMALL); Code:
else { tTurb = GREAT; UTurb = vector::zero; } Code:
const scalar epsilon = this->epsilonPtr_->internalField()[cellI] + ROOTVSMALL; const vector& gradk = this->gradkPtr_->internalField()[cellI]; Best, Thomas |
|
|
|