|
[Sponsors] |
Fluent from command line not in background please! |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 14, 2005, 12:14 |
Fluent from command line not in background please!
|
#1 |
Guest
Posts: n/a
|
I'm using a Win2000 computer and want to run Fluent from the command line to process a journal file. I want it to run in the foreground; that is, I don't want it to return control to another program that called it until it has finished.
Based on the User Guide section 1.5.4 I am sending this command to Windows from the other program: fluent 2d -i p:\a\fluent\20050303-\fluent_analyze_brief.jou However, this appears to run in the background, if I understand the result. In any case, Windows returns control to the other program before Fluent has finished. In my application this won't work, because the other program needs results Fluent has to write. Here's a quote from the User Guide that sounds like it implies using the -gu switch moves the job from foreground to background. However, this switch doesn't seem to change this issue. Note I am not using the -gu switch and expect foreground operation, hence am disappointed. "On Windows systems, fluent -gu will run FLUENT keeping it in a minimized window; if you maximize the window, the GUI will be available. This option can be used in conjunction with the -i journal option to run a job in 'background' mode" Just to show that this sort of thing ought to be able to work, I am doing the same with Gambit, and it works fine. My other program sends this to Windows: gambit -inp p:\a\fluent\20050303-\gambit_mesh.jou And, just as I want, the other program doesn't consider the command executed until Gambit has finished and closed. Note, there is actually a bug in Gambit that affects this, but they know about that bug and have a patch already available on the web site. Does anybody recognize something I am doing wrong, or know a way to fix this? |
|
March 14, 2005, 12:27 |
Re: Fluent from command line not in background ple
|
#2 |
Guest
Posts: n/a
|
you can let your primary process wait in a while cycle until Fluent in the last iteration creates a file... When your primary process finds that file, the while -cycle ends. This is a possible solution in case you canno launch fluent not in backgroud...Luca
|
|
March 14, 2005, 13:13 |
Re: Fluent from command line not in background ple
|
#3 |
Guest
Posts: n/a
|
Luca, Hah! You're good. You're a bulldog who never gives up. We think alike. Your suggestion is what I was working on while I was waiting for the elegant way if it ever comes.
|
|
March 15, 2005, 04:05 |
Re: Fluent from command line not in background ple
|
#4 |
Guest
Posts: n/a
|
Thank you Chris...Sooner or later I'll ask you for some suggestiong about Scheme, because at the moment I'm busy on programming Fluent with Scheme language. See you Chris. Have a nice day. Luca
|
|
March 16, 2005, 22:52 |
Re: Fluent from command line not in background ple
|
#5 |
Guest
Posts: n/a
|
if you are running from a batch file you can set the enviromnet variable FLUENT_WAIT, which will force fluent to wait until it has finished and start fluent with the command start /wait fluent ...
ie, (in a batch file) rem START set FLUENT_WAIT=yes start /wait fluent 3ddp -i somejournal.jou rem END good luck, andrew |
|
July 28, 2012, 08:26 |
|
#6 |
New Member
Join Date: Jul 2012
Posts: 1
Rep Power: 0 |
i had a same question and the andrew's solution has solved the problem.
but i don't understand why the set environment variable will force fluent to wait until it has finished. thanks |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
problem of running parallel Fluent on linux cluster | ivanbuz | FLUENT | 15 | September 23, 2017 20:12 |
Abaqus - Fluent Coupling WITHOUT MPCCI | s.mishra | FLUENT | 1 | April 5, 2016 07:47 |
What the differences flow equation of Fluent 6.3 and Fluent 12.1 | opehterinar81 | FLUENT | 0 | August 19, 2011 12:55 |
How to change Fluent post background colour | go | FLUENT | 3 | September 15, 2005 11:00 |
Runing the parallel version of Fluent in the background | Carolin Kosiol | FLUENT | 0 | June 26, 2000 07:09 |