|
[Sponsors] |
April 8, 2003, 00:08 |
How to activate Fluent from my code
|
#1 |
Guest
Posts: n/a
|
hi, everyone
Here is my question, can I activate Fluent from my c++ code? I remembered someone told about this before. He/She used GA as master program and Fluent as a slave program to get optimial results, or something like that. I was wondering how to do that. Your help will be highly appreciated. Cindy |
|
April 8, 2003, 01:24 |
Re: How to activate Fluent from my code
|
#2 |
Guest
Posts: n/a
|
I am not familiar with C++ to control Fluent. In my case, I made two files, which are C++ (my final version was Visual Basic) and Fluent Macro.
External program has following function 1) Run Fluent by Dos prompt command * 2d, 2ddp, 3d, 3ddp as well as version are selected in this program. * Activate Macro file. 2) Calculation logic Final value of "Out" file by Macro is compared with given target value in this program, and calculate new input of Macro file to make same (or within given range) target and out value. Update Macro file for input parameter with calculation. 3) Delete cas/dat file if converging was not completed. Macro file has following function 1) Read Cas/dat file 2) Boundary condition, especially input parameter that should be changed for convergence. This parameter is updated by external C++ or VB program based on claculation logic. Macro itself does not have any function to use comparison and update based on comparison. 3) Total iteration # 4) Initialize 5) Monitor & make "out" file for specific point or line during iteration. 6) Iteration 7) Write cas/dat file with different name, after converging or # of iteration. 1~3 of repeating calculation with different input parameter by calculation logic makes final converging. Thanks, J.W.Ryu |
|
April 9, 2003, 00:22 |
Re: How to activate Fluent from my code
|
#3 |
Guest
Posts: n/a
|
That is very helpful. Thanks a lot
Cindy |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How can I find source code of fluent tutorial??? | CFD_LES | FLUENT | 0 | October 5, 2011 06:30 |
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 |
Urgent: Plz help in 3D extension of Fluent code... | Farooq | FLUENT | 0 | November 27, 2003 23:28 |
Open source CFD code development, possible? | Dr. Yazid Bindar | Main CFD Forum | 27 | July 18, 2000 01:18 |