|
[Sponsors] |
May 12, 2007, 13:42 |
how to launch fluent from C code
|
#1 |
Guest
Posts: n/a
|
Hi Users,
I want to launch fluent from a C program that I am writing, but teh C compiler does not understand fluent 2d -i journal.jou What headers do I need to include to let me do it? Have I missed anything else? Cheers, Hugo. |
|
May 12, 2007, 20:31 |
Re: how to launch fluent from C code
|
#2 |
Guest
Posts: n/a
|
the simplest idea would be to use system command from C code. but it might give you troubles, assuming that your code wants to wait till calculations finish. So if you are in unix, use expect from C code to launch fluent (this i have never done but i know this should be done). Explore the expect manuals and you will know more.
|
|
May 23, 2007, 18:11 |
Re: how to launch fluent from C code
|
#3 |
Guest
Posts: n/a
|
I don't think that it can be called like that. If you want to call fluent from c program you try to call it from system command after including stdlib.h header file. ex. system("fluent 2d -i journal.jou");
but before that make sure that fluent can be called from any directory by adding path of fluent bin directory in path environment variable. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
intializing data in fluent from an available solution( from an opensource code) | ayannath23 | FLUENT | 1 | December 21, 2010 13:54 |
gambit code fluent on water pipe | acai007 | FLUENT | 0 | August 29, 2010 22:53 |
search for a code to R/W fluent case/data file | zou jianfeng | FLUENT | 0 | November 11, 2008 09:16 |
how to couple my own code with fluent | chandu | FLUENT | 3 | March 23, 2006 08:48 |
Open source CFD code development, possible? | Dr. Yazid Bindar | Main CFD Forum | 27 | July 18, 2000 01:18 |