|
[Sponsors] |
Save images using Fluent in batch processing mode |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 7, 2012, 13:18 |
Save images using Fluent in batch processing mode
|
#1 |
New Member
Kedar
Join Date: Aug 2012
Posts: 3
Rep Power: 14 |
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 ? |
|
September 7, 2012, 14:58 |
|
#2 |
Member
NormalVector
Join Date: Oct 2010
Posts: 71
Rep Power: 16 |
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. |
|
September 9, 2012, 22:16 |
|
#3 |
New Member
Kedar
Join Date: Aug 2012
Posts: 3
Rep Power: 14 |
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 ? |
|
September 9, 2012, 22:31 |
|
#4 |
Member
NormalVector
Join Date: Oct 2010
Posts: 71
Rep Power: 16 |
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. |
|
September 10, 2012, 00:05 |
|
#5 |
New Member
Kedar
Join Date: Aug 2012
Posts: 3
Rep Power: 14 |
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 |
|
September 10, 2012, 12:47 |
|
#6 |
Member
NormalVector
Join Date: Oct 2010
Posts: 71
Rep Power: 16 |
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. |
|
June 1, 2015, 09:42 |
|
#7 |
New Member
Join Date: Aug 2013
Location: Vietnam
Posts: 11
Rep Power: 13 |
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 |
|
March 27, 2019, 12:27 |
|
#8 |
Senior Member
Lukas Fischer
Join Date: May 2018
Location: Germany, Munich
Posts: 117
Rep Power: 8 |
-driver null does the job!
|
|
August 29, 2019, 13:25 |
Need Help
|
#9 | |
New Member
N/A
Join Date: Mar 2013
Posts: 17
Rep Power: 13 |
Quote:
Can you please share the complete example thanks alot |
||
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 |