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

Modifying solverslibraries

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   January 31, 2005, 09:30
Default I am a new user of OPENFOAM.
  #1
Kaushik Balakrishnan (Balakrishnan)
Guest
 
Posts: n/a
I am a new user of OPENFOAM. I am trying to modify some of the inbuilt solvers/libraries to suit my application, but having some trouble. For example: I want to modify the K-Epsilon model under turbFoam (incompressible turbulent flow).

I copied "turbFoam" directory to "myturbFoam" directory and then moved the "turbFoam.cfg" file to "myturbFoam.cfg" file. Inside this file, I changed the following:

object myturbFoam.cfg;
executable myturbFoam;

After this, I was trying to locate the exact location of the kEpsilon model in the source code so that I can change it, but could only locate the kEpsilon coefficient files (Cmu, C1, etc.) in the source code. Could you please mail me where I need to look for the exact location of the kEpsilon model in the source code so that I can modify it. Also, do I need to make modification elsewhere to successfully run "myturbFoam?"

Thank you.
  Reply With Quote

Old   January 31, 2005, 09:52
Default First, what you want to do is
  #2
Niklas Nordin (Niklas)
Guest
 
Posts: n/a
First, what you want to do is take all of your modifications and throw them away.

If you just want to change the turbulence model you dont have to change anything in the code.... leave it as it is.

if you type 'src' you should get to the source directory and all of the turbulence models are located there, under turbulenceModels.

Once you have modified your turbulence model dont forget to update/compile the library,
This is easiest of you just run the Allwmake-script in the turbulenceModels directory.

Niklas
  Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Modifying writeInterval during execution kdarc OpenFOAM Running, Solving & CFD 0 February 17, 2009 12:39
Modifying an arc in GAMBIT? Jake FLUENT 0 April 1, 2008 16:23
Could anybody help the trouble of the modifying the U liugx212 OpenFOAM Running, Solving & CFD 2 February 27, 2006 10:23
Could anybody help the trouble of the modifying the U liugx212 OpenFOAM Running, Solving & CFD 0 February 26, 2006 16:48
modifying commercial codes Richard Carroni Main CFD Forum 1 October 15, 1998 06:38


All times are GMT -4. The time now is 10:56.