Access to ck or ce of the Smagorinsky in a new solver
Dear Foamer,
I am trying to set different values of ck or ce of Smagorinsky model in different regions of the domain. I am not sure whether it is possible to access to ck in the main code of a new solver. Does anyone have an idea? My best regards, Jian |
Greetings Jian,
Quick question: do you mean you want to access the values for the turbulence model in general or the one on a specific patch? I ask this because I honestly haven't checked which Smagorinsky model you're referring to... Best regards, Bruno |
Hi Bruno,
I mean the incompressible::turbulence::LES models::Smagorinsky. Just like using setFields for 'alpha'. I want to select a region (BoxtoCell) and specify a set value of ck/ce. The remaining region are set to another set of value. I am not sure whether it is possible. My best regards, Jian |
Hi Jian,
From what I can see in the source code:
You will have to create a variant of those two classes for them to use "ce" and/or "ck" as scalar fields. Only then will you be able to set values specific to certain locations of the mesh. Have a look into the code "src/turbulenceModels/compressible/LES/SpalartAllmaras": https://github.com/OpenFOAM/OpenFOAM...palartAllmaras - it uses scalar fields for these variables: Quote:
Bruno |
All times are GMT -4. The time now is 18:47. |