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

Save images using Fluent in batch processing mode

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

Like Tree5Likes
  • 1 Post By NormalVector
  • 4 Post By Vietazz

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 7, 2012, 13:18
Default Save images using Fluent in batch processing mode
  #1
New Member
 
Kedar
Join Date: Aug 2012
Posts: 3
Rep Power: 13
dixitked is on a distinguished road
Hi,
I want to run the Fluent in batch processing mode and save images at each iteration.
I have a script which works in TUI mode, but when I use it in batch mode it gives an error:
Error: No graphics functions are available.
Error Object: ()
/display/contour water vof 0 1

Does anybody know how to save images when the Fluent is used in batch mode ?
dixitked is offline   Reply With Quote

Old   September 7, 2012, 14:58
Default
  #2
Member
 
NormalVector's Avatar
 
NormalVector
Join Date: Oct 2010
Posts: 71
Rep Power: 15
NormalVector is on a distinguished road
Here's the way that I do it:

Create a journal file that includes everything you do in a normal interactive session of Fluent (including setting up the solution animation) up until the point of running the solution. Inside of the journal file, manually add a line that opens the case and data before the graphics manipulation part of the journal. Then add lines at the end of the journal to iterate, write the case and data, and exit Fluent.

Then, in your batch script, prompt to open up the graphical version and tell it to run the journal file you created. I can post an example journal and batch script if needed but the commands may be specific to the way I have batch setup.
mlalit1 likes this.
NormalVector is offline   Reply With Quote

Old   September 9, 2012, 22:16
Default
  #3
New Member
 
Kedar
Join Date: Aug 2012
Posts: 3
Rep Power: 13
dixitked is on a distinguished road
Thanks NormalVector, it worked.

Is it possible to solve the case in the batch job and save the data file and use the data file later to do post processing (saving screenshots) using the regular graphics interface ?
dixitked is offline   Reply With Quote

Old   September 9, 2012, 22:31
Default
  #4
Member
 
NormalVector's Avatar
 
NormalVector
Join Date: Oct 2010
Posts: 71
Rep Power: 15
NormalVector is on a distinguished road
Nice!

I'm not sure what you mean... you want, during a batch run, to save the case and data every N iterations? If so, you can set that up graphically before calculating in Calculation Activities>Autosave Every (...). Whether you run a batch job with the GUI enabled or not, Fluent should autosave. You can append flow time or iteration number to the data files.

It's worth mentioning that you can create animations (at least transient animations) with post processing software such as Tecplot on the fly. Is there any reason you want to use batch? I don't have Tecplot so I stick with batch animations.
NormalVector is offline   Reply With Quote

Old   September 10, 2012, 00:05
Default
  #5
New Member
 
Kedar
Join Date: Aug 2012
Posts: 3
Rep Power: 13
dixitked is on a distinguished road
I am running the project on Grid, so I have to use batch job to submit it.
I am trying to figure out if it is possible to do it in 2 steps:
1. To solve the case on grid using batch job. And then do:
2. Image generation as post processing on my machine.

Thanks
dixitked is offline   Reply With Quote

Old   September 10, 2012, 12:47
Default
  #6
Member
 
NormalVector's Avatar
 
NormalVector
Join Date: Oct 2010
Posts: 71
Rep Power: 15
NormalVector is on a distinguished road
Yes, you can output pictures every N timesteps/iterations and then string them together to make a movie. Look into "ffmpeg" as this is what I use on my computing cluster and it can handle the .ppm images Fluent outputs. I suppose you could also save data files and then write a script to read the case and each data file and output pictures without having to run the simulation again.

Otherwise you can save data every N timesteps/iterations and use a postprocessing software. I believe Tecplot can import the data files you saved and make animations of different field variables.
NormalVector is offline   Reply With Quote

Old   June 1, 2015, 09:42
Default
  #7
New Member
 
Join Date: Aug 2013
Location: Vietnam
Posts: 11
Rep Power: 12
Vietazz is on a distinguished road
Hi everyone.

I know that it's too late to help you with my answer. But I run into the same
problem, and I find a solution that may help someone struggling with the same problem. In fact the command you have to type to run a journal in a batch mode in Fluent is :
Fluent 2ddp -gu -driver null -i journ.jou >& listing &

Good luck
arsenis, lukasf, sanjivdg and 1 others like this.
Vietazz is offline   Reply With Quote

Old   March 27, 2019, 12:27
Default
  #8
Senior Member
 
Lukas Fischer
Join Date: May 2018
Location: Germany, Munich
Posts: 117
Rep Power: 7
lukasf is on a distinguished road
-driver null does the job!
lukasf is offline   Reply With Quote

Old   August 29, 2019, 13:25
Default Need Help
  #9
New Member
 
N/A
Join Date: Mar 2013
Posts: 17
Rep Power: 13
lgn_aero is on a distinguished road
Quote:
Originally Posted by NormalVector View Post
Here's the way that I do it:

Create a journal file that includes everything you do in a normal interactive session of Fluent (including setting up the solution animation) up until the point of running the solution. Inside of the journal file, manually add a line that opens the case and data before the graphics manipulation part of the journal. Then add lines at the end of the journal to iterate, write the case and data, and exit Fluent.

Then, in your batch script, prompt to open up the graphical version and tell it to run the journal file you created. I can post an example journal and batch script if needed but the commands may be specific to the way I have batch setup.

Can you please share the complete example
thanks alot
lgn_aero is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Stopping a Fluent batch job AND saving the data! Possible? Volker Pawlik FLUENT 13 December 28, 2020 05:16
fluent 12.1, batch mode in linux sakalido FLUENT 13 September 27, 2017 09:55
saving figures in batch mode R.D.Prabhu FLUENT 6 June 12, 2014 12:33
Sculptor: How to save design in batch mode Tim Main CFD Forum 1 September 11, 2007 05:00
Batch processing in Fluent?! Mazyar FLUENT 1 April 29, 2006 01:33


All times are GMT -4. The time now is 03:07.