CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > 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 Search this Thread Display Modes
Old   July 25, 2013, 08:15
Question Create a loop to open .cas and save images
  #1
Member
 
Lauren Dransfield
Join Date: Jan 2012
Posts: 50
Rep Power: 14
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 08:17. Reason: extra information
ld1305 is offline   Reply With Quote

Old   July 25, 2013, 12:45
Default
  #2
Senior Member
 
François Grégoire
Join Date: Jan 2010
Location: Canada
Posts: 392
Rep Power: 17
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, 03:38
Default
  #3
Member
 
Lauren Dransfield
Join Date: Jan 2012
Posts: 50
Rep Power: 14
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 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
how to set periodic boundary conditions Ganesh FLUENT 15 November 18, 2020 07:09
Save images using Fluent in batch processing mode dixitked FLUENT 8 August 29, 2019 13:25
[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 20: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 02:38.