CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Compiling turbulence models

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 26, 2007, 07:54
Default Hello, I have a small probl
  #1
Member
 
nicolas
Join Date: Mar 2009
Location: Glasgow
Posts: 42
Rep Power: 17
nico765 is on a distinguished road
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
nico765 is offline   Reply With Quote

Old   January 26, 2007, 19:32
Default you have to recompile the old
  #2
Senior Member
 
Daniele Panara
Join Date: Mar 2009
Posts: 101
Rep Power: 17
panara is on a distinguished road
you have to recompile the old turbulence models or use one of the option proposed in the other post..

Daniele
panara is offline   Reply With Quote

Old   January 27, 2007, 15:39
Default Yes, i think it's what i have
  #3
Member
 
nicolas
Join Date: Mar 2009
Location: Glasgow
Posts: 42
Rep Power: 17
nico765 is on a distinguished road
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
nico765 is offline   Reply With Quote

Old   January 27, 2007, 20:32
Default did you try first to wmake cle
  #4
Senior Member
 
Daniele Panara
Join Date: Mar 2009
Posts: 101
Rep Power: 17
panara is on a distinguished road
did you try first to wmake clean and than recompile?

Daniele
panara is offline   Reply With Quote

Old   January 29, 2007, 12:34
Default Yes i made sure of that. I
  #5
Member
 
nicolas
Join Date: Mar 2009
Location: Glasgow
Posts: 42
Rep Power: 17
nico765 is on a distinguished road
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
nico765 is offline   Reply With Quote

Old   January 30, 2007, 04:06
Default Hi Nicolas. Are you by any cha
  #6
Senior Member
 
Rasmus Hemph
Join Date: Mar 2009
Location: Sweden
Posts: 108
Rep Power: 17
hemph is on a distinguished road
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
hemph is offline   Reply With Quote

Old   January 31, 2007, 14:30
Default Ok, great. It works now. Thank
  #7
Member
 
nicolas
Join Date: Mar 2009
Location: Glasgow
Posts: 42
Rep Power: 17
nico765 is on a distinguished road
Ok, great. It works now. Thanks a lot, Rasmus.
nico765 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Turbulence models Galathea Fidelity CFD 12 August 6, 2010 09:19
Turbulence models Juan Catelén CFX 0 August 9, 2007 15:58
Turbulence Models cfd_novice Main CFD Forum 2 July 30, 2006 19:49
turbulence models? haider FLUENT 0 March 8, 2006 00:58
turbulence models rail cfd Main CFD Forum 7 August 25, 2004 01:20


All times are GMT -4. The time now is 23:53.