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

Create a loop to open .cas and save images

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

Like Tree1Likes
  • 1 Post By macfly

Reply
 
LinkBack Thread Tools Display Modes
Old   July 25, 2013, 07:15
Question Create a loop to open .cas and save images
  #1
Member
 
Lauren Dransfield
Join Date: Jan 2012
Posts: 35
Rep Power: 5
ld1305 is on a distinguished road
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!

Last edited by ld1305; July 25, 2013 at 07:17. Reason: extra information
ld1305 is offline   Reply With Quote

Old   July 25, 2013, 11:45
Default
  #2
Senior Member
 
François Grégoire
Join Date: Jan 2010
Location: Laval University, Canada
Posts: 366
Rep Power: 8
macfly is on a distinguished road
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 likes this.
macfly is offline   Reply With Quote

Old   July 26, 2013, 02:38
Default
  #3
Member
 
Lauren Dransfield
Join Date: Jan 2012
Posts: 35
Rep Power: 5
ld1305 is on a distinguished road
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
ld1305 is offline   Reply With Quote

Reply

Tags
journal, loop

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
Save images using Fluent in batch processing mode dixitked FLUENT 6 June 1, 2015 08:42
how to set periodic boundary conditions Ganesh FLUENT 13 January 22, 2014 05:11
[ICEM] Why the mesh changes after I save and open the project again lnk ANSYS Meshing & Geometry 4 October 29, 2012 03:29
How to save images of contour plots during parallel job Neil11 FLUENT 5 September 23, 2010 19:06
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55


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