CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Create a loop to open .cas and save images (https://www.cfd-online.com/Forums/fluent/121285-create-loop-open-cas-save-images.html)

ld1305 July 25, 2013 08:15

Create a loop to open .cas and save images
 
Hi there,

I have a fairly large transient simulation and was wondering how anyone might go about making a journal loop to open a .cas, save an image, then open the next etc etc

If this is my .jou:

Code:

/file/read-case-data "testcase-1-00010.cas.gz"
/display/contour mixture pressure
/display/views/restore-view left
/display/views/auto-scale
/display/save-picture "test_00010_P.png"
/display/contour vapour vof
/display/save-picture "test_00010_vof.png"

I'm fairly new to this, but it seems something that's likely to be easily possible once you know the syntax?

Thanks,
Lauren

P.S. Any way to stop it also showing the mesh outline would be great!

macfly July 25, 2013 12:45

Hi,

You can loop with a scheme file but it's not user-friendly...

It might be simpler to generate a .jou with the help of another program in which you will loop the command lines for all the cases that you saved. For example generating a text file with Matlab.

ld1305 July 26, 2013 03:38

That's actually what I've ended up doing.
Was a bit fiddly to wort out, but I should be able to use it for other journals as well.

Thanks very much


All times are GMT -4. The time now is 00:06.