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

adding a turbulence model without recompiling the core

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 17, 2011, 11:50
Default adding a turbulence model without recompiling the core
  #1
New Member
 
Sebastian Weiper
Join Date: Sep 2009
Posts: 5
Rep Power: 17
sebastianweiper is on a distinguished road
Hi Foamers,

I want to add a new turbulence model to Openfoam without recompiling the core.
The Compilation works fine but when i want to start the calculation this turbulence model is not known.

I compiled it to this location:

LIB = $(FOAM_USER_LIBBIN)/mylibincompressibleLESModels

I also make the right entry in the controldict.

Is it possible to add some turbulencemodels without recompiling the core of openfoam?
__________________
Software: OpenFOAM 1.5-dev
sebastianweiper is offline   Reply With Quote

Old   February 18, 2011, 04:17
Default
  #2
Senior Member
 
Christian Lucas
Join Date: Aug 2009
Location: Braunschweig, Germany
Posts: 202
Rep Power: 18
Chris Lucas is on a distinguished road
Hi,

this should work. Maybe you have to recompile the solver.

One question, why are you compiling the new model in a new dynamic library? Is the new model specially designed for one solver? If not, why not include the new model to the existing turbulence library (dynamic library).

Regards,
Christian
Chris Lucas is offline   Reply With Quote

Old   February 19, 2011, 15:04
Default
  #3
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings to both of you!

@sebastianweiper:
Quote:
Originally Posted by sebastianweiper View Post
The Compilation works fine but when i want to start the calculation this turbulence model is not known.

I compiled it to this location:

LIB = $(FOAM_USER_LIBBIN)/mylibincompressibleLESModels

I also make the right entry in the controldict.
The location the library is perfect How can we be sure you made the right entry in controlDict, if you didn't post here the relevant entry?

Quote:
Originally Posted by sebastianweiper View Post
Is it possible to add some turbulencemodels without recompiling the core of openfoam?
Like Christian said, yes it should be possible. But there are a few details that need to be taken into account:
  • Your new model doesn't have the same name as some other model, does it?
  • In the modified code, did you rename all of the references to the old model?
  • Have you modified all of the necessary files in your case (files in constant and system) to use the new model?
  • Are you 100% certain that the name you defined in the code is perfectly identical to the name you use in the case files? One letter is enough for it to not respond! For example, "myIcLES" will not be recognized as "myICLES"!

@Chris Lucas:
Quote:
Originally Posted by Chris Lucas View Post
If not, why not include the new model to the existing turbulence library (dynamic library).
One thing is working on our own computer, where we have access to every part of the file system and have superuser powers if we want (the almighty root user ); another thing is having to use a shared computer or cluster, where OpenFOAM is installed in "/opt" and making changes to it is not an option

Best regards,
Bruno
__________________
wyldckat 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
Use of k-epsilon and k-omega Models Jade M Main CFD Forum 40 January 27, 2023 08:18
Adding a Turbulence Model doug OpenFOAM Running, Solving & CFD 11 May 21, 2018 14:54
question about turbulence model selection and sensitivity karananand Main CFD Forum 1 February 26, 2010 05:41
Centrifugal Pump and Turbulence Model Michiel CFX 12 January 25, 2010 04:20
SSG Reynolds Turbulence Model Georges CFX 1 February 28, 2007 17:15


All times are GMT -4. The time now is 15:49.