|
[Sponsors] |
Add .C source file to an existing application in OpenFOAM |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 18, 2010, 10:21 |
Add .C source file to an existing application in OpenFOAM
|
#1 |
Member
Mohammad Zakerzadeh
Join Date: Dec 2009
Location: Aachen, Germany
Posts: 40
Rep Power: 16 |
Hello guys
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. Regards Mohammad |
|
July 18, 2010, 20:49 |
|
#2 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25 |
hi mohammad
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 make/ file after the name of solver source file name then compile it with wmake for more information look at userGuide |
|
Tags |
compile, openfoam |
|
|
Similar Threads | ||||
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 21:51 |
error while compiling the USER Sub routine | CFD user | CFX | 3 | November 25, 2002 16:16 |