Adding graviational acc. to turbulence model
Hi,
I am trying to modify the standard kEps model to attain the influence of the buoyancy related turbulence. I followed a few different methods however all seemed to fail. 1- Using readGravitationalAcceleration.H : --> FOAM FATAL ERROR: request for dictionary gravitationalProperties from objectRegistry region0 failed available objects of type dictionary are 4 ( RASProperties fvSchemes fvSolution transportProperties ) 2 - Reading from transportProperties: --> FOAM FATAL ERROR: LHS and RHS of + have different dimensions The solver works fine with the standard kEps so I don't think that I have to change the solver or B.C's. 3- Creating a file called "g" and reading via lookupObject<uniformDimensionedVectorField>("g") : Unknow type uniformDimensionedVectorField 4- Linking as a field by lookupObject<volVectorField>("g") : gives an error during the runTime since g is a uniformDimensionedVectorField I guess one other way would be to use a hard-coded vector but I don't want to do that. Any help is appreciated. OF version: 1.6.x OS: CentOS 5 Thanks a lot, Fatih. |
Facing the same problem. Did you find a solution?
I prefer to add Code:
#include "UniformDimensionedField.H" Code:
const uniformDimensionedVectorField& g_ = db().lookupObject<uniformDimensionedVectorField>("g"); |
Hi,
You should include another file Code:
#include "UniformDimensionedFields.H" Code:
UniformDimensionedField<vector> And if you are adding gravitation to turbulence model: http://www.cfd-online.com/Forums/ope...nce-model.html http://openfoamwiki.net/index.php/Co...EpsilonViollet |
Hi Alexey,
thanks for your quick response. I guess you meant Code:
#include "uniformDimensionedFields.H" Code:
const uniformDimensionedVectorField& g_ = db().lookupObject<uniformDimensionedVectorField>("g"); Code:
kEpsilonBuoyant/kEpsilonBuoyant.C: In Elementfunktion »virtual void Foam::compressible::RASModels::kEpsilonBuoyant::correct()«: |
Yes, you are right about header name.
Well, kEpsilonViollet was developed for 1.7, guess that time RASModel was a little bit simpler. Right now it is a child of turbulenceModel and IOobject. Each of parents has db method. So you can either create g_ property of your class and initialize it in constructor with something like: Code:
g_ Code:
const uniformDimensionedVectorField& g_ = mesh_.thisDb().lookupObject<uniformDimensionedVectorField>("g"); |
Model runs. Thank you a lot!
To sum it up: Inculding gravity acceleration in turbulence models by adding in the .H-file: Code:
#include "uniformDimensionedFields.H" Code:
const uniformDimensionedVectorField& g_ = mesh_.thisDb().lookupObject<uniformDimensionedVectorField>("g"); |
what is uniformdimensioned vector field and why is it used in terms of g?
|
All times are GMT -4. The time now is 06:27. |