CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Compiling turbulence models (http://www.cfd-online.com/Forums/openfoam-solving/59844-compiling-turbulence-models.html)

nico765 January 26, 2007 07:54

Hello, I have a small probl
 
Hello,

I have a small problem.
I compiled some of the komega turbulence models posted earlier on the forum. This worked fine.
I am now trying to switch back to the original models. So i compile OpenFOAM/OpenFOAM-1.3/src/turbulenceModels to get a new library OpenFOAM/OpenFOAM-1.3/lib/linuxAMD64Gcc4DPOpt/libincompressibleTurbulenceModels. so
But when i run a solver (turbFoam in my case), i get Valid turbulenceModel types are :

4
(
kOmega
laminar
kOmegaBSL
kOmegaSST
)

so something is still wrong. I must have missed a step somewhere.

Thanks

Nicolas

panara January 26, 2007 19:32

you have to recompile the old
 
you have to recompile the old turbulence models or use one of the option proposed in the other post..

Daniele

nico765 January 27, 2007 15:39

Yes, i think it's what i have
 
Yes, i think it's what i have done. As said above, i runned the allMake again in turbulenceModels, i got a new library (*.so). But i get the error. Does that mean that the library is still wrong, or is it something else?

Cheers,

Nicolas

panara January 27, 2007 20:32

did you try first to wmake cle
 
did you try first to wmake clean and than recompile?

Daniele

nico765 January 29, 2007 12:34

Yes i made sure of that. I
 
Yes i made sure of that.

I have deleted the OpenFOAM/OpenFOAM-1.3/src/turbulenceModels directory, copied again a clean one from the Gzip file. I still have the same problem.

If i understand well: a change in the turbulence models, will change the libincompressibleTurbulenceModels.so file, and therefore turbFoam. So i need to recompile both library and binary.

Do you know where this valid turbulence model check is done. I am sure that my libincompressibleTurbulenceModels.so file is correct.

Regards,

Nicolas

hemph January 30, 2007 04:06

Hi Nicolas. Are you by any cha
 
Hi Nicolas. Are you by any chance using the same name for your two different libraries? (incompressibleTurbulenceModels). If so, OpenFOAM will dynamically pick up the one under $(FOAM_USER_LIBBIN), as it is first in your $LD_LIBRARY_PATH. Have a look at the thread in http://www.cfd-online.com/cgi-bin/Op...cus/discus.cgi
where this issue is discussed.


//Rasmus

nico765 January 31, 2007 14:30

Ok, great. It works now. Thank
 
Ok, great. It works now. Thanks a lot, Rasmus.


All times are GMT -4. The time now is 21:03.