New turbulence model in OF 3 and no proper make file?
Hi,
I was trying to add a new turbulence model of my own into OpenFOAM but I found out that the make files corresponding to turbulence models doesn't even contain .C files of the turbulence models. I am making an alternative turbulence model from kEpsilon. so I have copied kEpsilon from Code:
$SRC/TurbulenceModels/turbulenceModels/RAS/kEpsilon Code:
$SRC/TurbulenceModels/turbulenceModels/Make What am I doing wrong? Thanks all. |
Hi,
Assuming you need incompressible version of k-epsilon, there is Code:
$FOAM_SRC/TurbulenceModels/incompressible/Make Code:
#define makeRASModel(Type) \ |
Quote:
But I truly wonder why the previous straightforward structure is changed into this. |
Another question,
I copied and renamed the kEpsilon model in: Code:
$SRC/TurbulenceModels/turbulenceModels/RAS Code:
#include "kEpsilonTest.H" Code:
$SRC/TurbulenceModels/incompressible/turbulentTransportModels/turbulentTransportModels.C Code:
could not open file kEpsilonTest.H for source file turbulentTransportModels/turbulentTransportModels.C due to No such file or directory Thanks. |
I manually added links for .C and .H files into:
Code:
$SRC/TurbulenceModels/turbulenceModels/lnInclude |
1 Attachment(s)
I try to implement a new LaunderSharmeKE model for compressible spray application in Openfoam-plus
I think this form of implementation a little better for clarity compared to copying all Turbulence directory..... But I have a problem. You can see the files from the attached zip folder. My implementation seems working fine but when I run the case (using sprayFoam acheenBomb tutorial) I got the following "Dublicate entry" warning. But the case continue to run. do you have an idea? Code:
/*---------------------------------------------------------------------------*\ |
Hi wolfindark,
I am having a similar issue "Duplicate entry laminar in runtime selection table TurbulenceModel"..... Did you solve yours? Regards, Han |
1 Attachment(s)
Yes I solved.
Check the attached file |
Quote:
I am going to make a modification to the LRR model, and make it, but it does not work. I did make the LS model as you did, it work. I noticed that this two models include different shear stress '.H' files. Do you have any idea if I want to make LRR model in the original OpenFoam. regards, Xinguang |
Quote:
|
All times are GMT -4. The time now is 15:40. |