|July 18, 2010, 09:21||
Add .C source file to an existing application in OpenFOAM
Join Date: Dec 2009
Location: Aachen, Germany
Posts: 40Rep Power: 7
In my case I need to correct my pressure field in each step. So I have written a .C file to calculate the additional term "dp".
But I don't know how should I insert it in the existing file to make it.
I appreciate any guidance from uou.
|July 18, 2010, 19:49||
Join Date: Sep 2009
Location: Tehran, Iran
Blog Entries: 1Rep Power: 14
you have many options :
1. instead of .C file write a .H file and then add that header file (.H) in ur present solver
2.add ur code to present solver body
3. if you insist to have a .C file you just need to add this source file name in
after the name of solver source file name
then compile it with wmake for more information look at userGuide
|Thread||Thread Starter||Forum||Replies||Last Post|
|Installation of OpenFOAM-1.6 on Ubuntu 9.10||marval||OpenFOAM Installation||2||March 17, 2010 09:33|
|OpenFOAM on MinGW crosscompiler hosted on Linux||allenzhao||OpenFOAM Installation||127||January 30, 2009 20:08|
|Problem with rhoSimpleFoam||matteo_gautero||OpenFOAM Running, Solving & CFD||0||February 28, 2008 07:51|
|Results saving in CFD||hawk||Main CFD Forum||16||July 21, 2005 20:51|
|error while compiling the USER Sub routine||CFD user||CFX||3||November 25, 2002 16:16|