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

Save images using Fluent in batch processing mode

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

Reply
 
LinkBack Thread Tools Display Modes
Old   September 7, 2012, 12:18
Default Save images using Fluent in batch processing mode
  #1
New Member
 
Kedar
Join Date: Aug 2012
Posts: 3
Rep Power: 4
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, 13:58
Default
  #2
Member
 
NormalVector's Avatar
 
NormalVector
Join Date: Oct 2010
Posts: 72
Rep Power: 6
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.
NormalVector is offline   Reply With Quote

Old   September 9, 2012, 21:16
Default
  #3
New Member
 
Kedar
Join Date: Aug 2012
Posts: 3
Rep Power: 4
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, 21:31
Default
  #4
Member
 
NormalVector's Avatar
 
NormalVector
Join Date: Oct 2010
Posts: 72
Rep Power: 6
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 9, 2012, 23:05
Default
  #5
New Member
 
Kedar
Join Date: Aug 2012
Posts: 3
Rep Power: 4
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, 11:47
Default
  #6
Member
 
NormalVector's Avatar
 
NormalVector
Join Date: Oct 2010
Posts: 72
Rep Power: 6
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, 08:42
Default
  #7
New Member
 
Join Date: Aug 2013
Posts: 9
Rep Power: 3
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
Vietazz is offline   Reply With Quote

Reply

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
saving figures in batch mode R.D.Prabhu FLUENT 6 June 12, 2014 11:33
Stopping a Fluent batch job AND saving the data! Possible? Volker Pawlik FLUENT 7 May 22, 2014 22:30
fluent 12.1, batch mode in linux sakalido FLUENT 11 January 9, 2012 13:39
Sculptor: How to save design in batch mode Tim Main CFD Forum 1 September 11, 2007 04:00
Batch processing in Fluent?! Mazyar FLUENT 1 April 29, 2006 00:33


All times are GMT -4. The time now is 15:37.