CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

how to launch fluent from C code

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 12, 2007, 13:42
Default how to launch fluent from C code
  #1
Hugo
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.
  Reply With Quote

Old   May 12, 2007, 20:31
Default Re: how to launch fluent from C code
  #2
zyno
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.
  Reply With Quote

Old   May 23, 2007, 18:11
Default Re: how to launch fluent from C code
  #3
Sachin Goel
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.
  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
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


All times are GMT -4. The time now is 18:16.