Trying to use a kOmega model to no avail

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?

Hi @minggangyin

I found this from github:
https://github.com/ladybug-tools/butterfly/issues/327
Did you manage to make it work?

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.

  1. turbulenceProperties Do you mean the one in butterfly file?
    ๅœ–็‰‡
    ๅœ–็‰‡

  2. 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?

  3. 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.