CFD Online Logo CFD Online URL
Home > Forums > FLUENT

Fluent from command line not in background please!

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   March 14, 2005, 12:14
Default Fluent from command line not in background please!
Chris Bailey
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?
  Reply With Quote

Old   March 14, 2005, 12:27
Default Re: Fluent from command line not in background ple
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
  Reply With Quote

Old   March 14, 2005, 13:13
Default Re: Fluent from command line not in background ple
Chris Bailey
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.
  Reply With Quote

Old   March 15, 2005, 04:05
Default Re: Fluent from command line not in background ple
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
  Reply With Quote

Old   March 16, 2005, 22:52
Default Re: Fluent from command line not in background ple
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)



start /wait fluent 3ddp -i somejournal.jou

rem END

good luck,

  Reply With Quote

Old   July 28, 2012, 07:26
New Member
Join Date: Jul 2012
Posts: 1
Rep Power: 0
bass8 is on a distinguished road
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.

bass8 is offline   Reply With Quote


Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem of running parallel Fluent on linux cluster ivanbuz FLUENT 15 September 23, 2017 19:12
Abaqus - Fluent Coupling WITHOUT MPCCI s.mishra FLUENT 1 April 5, 2016 06:47
What the differences flow equation of Fluent 6.3 and Fluent 12.1 opehterinar81 FLUENT 0 August 19, 2011 11:55
How to change Fluent post background colour go FLUENT 3 September 15, 2005 10:00
Runing the parallel version of Fluent in the background Carolin Kosiol FLUENT 0 June 26, 2000 06:09

All times are GMT -4. The time now is 09:12.