Could anyone help me? when i try to change the RAS turbulence model to a different one, it asks me for this:
From what i can gather, it seems i dont have the omega as a residual? Sadly ive been trying to work around this issue yet so far every time come to the same error.
Can anyone help me with this? id appreciate it a lot
Hi @CatArk,
Unfortunately only the k-epsilon models are currently supported. We are eventually going to be implementing the k-omega ones. For now, Iโd suggest realizable or RNG k-epsilon models for your studies.
Kind regards,
Theodore.
Thanks for the fast answer! it really took a burden out of me as I thought i was really messing with the code. Id keep a watch for your updates
Best regards
1 Like
Hi Iโm also wondering if thereโs a way to turn k-omega and k-omega-SST on?
You can manually edit the turbulenceProperties
file in OpenFOAM using a text editor to modify the turbulence model. You can chat with chatGPT gpt-4o model for more details .
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1706+ |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
/* Butterfly 0.0.4 https://github.com/ladybug-tools/butterfly *\
\*---------------------------------------------------------------------------*/
FoamFile
{
version 4.0;
format ascii;
class dictionary;
location "constant";
object turbulenceProperties;
}
simulationType RAS;
RAS
{
RASModel RNGkEpsilon;
turbulence on;
printCoeffs on;
}
I truly appreciate your reply @minggangyin.
-
turbulenceProperties
Do you mean the one in butterfly file?


-
If thatโs the case, and also based on what was replied on GitHub, from your experience, is it necessary to add omega.py
to the folder as well? Or just add it into the case 0 folder once it is created?
-
Also, according to GitHub, thereโs a new release (v0.0.2). In your opinion, would that improve the overall performance?

@minggangyin I figured what you meant is the turbulenceProperties
under the constant folder of the case. Iโve already modified it as below:
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1706+ |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
/* Butterfly 0.0.4 https://github.com/ladybug-tools/butterfly *\
\*---------------------------------------------------------------------------*/
FoamFile
{
version 4.0;
format ascii;
class dictionary;
location "constant";
object turbulenceProperties;
}
simulationType RAS;
RAS
{
RASModel kOmegaSST;
turbulence on;
printCoeffs on;
}
Also add the omega to 0 folder:
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1706+ |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
/* Butterfly 0.0.4 https://github.com/ladybug-tools/butterfly *\
\*---------------------------------------------------------------------------*/
FoamFile
{
version 4.0;
format ascii;
class volScalarField;
location "0";
object omega;
}
dimensions [0 2 -2 0 0 0 0];
#include "initialConditions";
internalField uniform $turbulentOmega;
boundaryField
{
right_side
{
type slip;
}
outlet
{
type inletOutlet;
inletValue uniform $turbulentOmega;
value $internalField;
}
left_side
{
type slip;
}
top
{
type slip;
}
buildings
{
type omegaWallFunction;
value $internalField;
}
ground
{
type zeroGradient;
}
inlet
{
type atmBoundaryLayerInletOmega;
#include "ABLConditions";
}
}
But the result still seems to be a failure:
You need to use BlueCFD terminal running the modified case.