CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

saving grafics in batch-mode

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 26, 2010, 05:29
Default saving grafics in batch-mode
  #1
Member
 
Robert
Join Date: Feb 2010
Location: Germany
Posts: 32
Rep Power: 16
Robert@cfd is on a distinguished road
Hello forum

I already read some other threads here and elsewhere how to save e.g. velocity-plots while making a simulation without gui.
So I tried:

"-g" => errors, because of disabled grafics
"-gu -driver null" => no errors but no saved grafics
"-gu -driver x11" => no errors, grafical windows were shown for every timestep/iteration but again no pictures are saved
"-gu -driver opengl" => same like with x11

in my .scm-file including the scheme-commands I defined the executing commands for opening a window, setting the right view and taking a hardcopy after each timestep

Im doing parallel job on a linux workstation
Robert@cfd is offline   Reply With Quote

Old   April 5, 2010, 19:22
Default
  #2
Member
 
Robert
Join Date: Feb 2010
Location: Germany
Posts: 32
Rep Power: 16
Robert@cfd is on a distinguished road
I guess its not possible to save grafics while working in batch-mode.

Any Ideas would be highly appreciated!

Greetings
Robert@cfd is offline   Reply With Quote

Old   April 6, 2010, 04:11
Default
  #3
Senior Member
 
Max
Join Date: Mar 2009
Posts: 133
Rep Power: 17
coglione is on a distinguished road
Hi Robert,

all I can say is that running fluent in the background using -gu -driver null and taking hardcopies at several timesteps works for me on a linux-cluster. I had to play around a little bit with my journal file to get all scheme commands working properly, maybe you should post your scheme-file and i will have a look at it.

cheers
coglione is offline   Reply With Quote

Old   April 6, 2010, 08:14
Default
  #4
Member
 
Robert
Join Date: Feb 2010
Location: Germany
Posts: 32
Rep Power: 16
Robert@cfd is on a distinguished road
Hi coglione, thx for your help.

Code:
/display/set/picture/color-mode color
/display/set/picture/driver png
/display/set/picture/x-resolution 1600
/display/set/picture/y-resolution 1200

/solve/execute-commands/add-edit com1 1 "time-step" "/display/open 9"
/solve/execute-commands/add-edit com2 1 "time-step" "/display/contour mixture velocity-magnitude"
/solve/execute-commands/add-edit com3 1 "time-step" "/display/views/camera/position 0 0 0"
/solve/execute-commands/add-edit com3 1 "time-step" "/display/views/default-view"
/solve/execute-commands/add-edit com4 1 "time-step" "/display/views/camera/zoom 5"
/solve/execute-commands/add-edit com5 1 "time-step" "/display/views/camera/target 24 5 -2.5"
/solve/execute-commands/add-edit com6 1 "time-step" "/display/hardcopy  vel_%t.png"
Im running following command in the console:

./fluent 3ddp -g -t6 < /home/.../batch.scm > /home/.../out.dat 2> /home/.../out.error -ssh
# or the "-gu -driver null"

An excerpt of the batch-file is postet above, but I dont think there are faults in the commands, because I tried all of them in the text user interface in FLUENT

# edit: im working on a linux-cluster, too
# http://www.cfd-online.com/Wiki/Fluen...of_a_window.3F

greetings
Robert@cfd is offline   Reply With Quote

Old   April 7, 2010, 02:51
Default
  #5
Senior Member
 
Max
Join Date: Mar 2009
Posts: 133
Rep Power: 17
coglione is on a distinguished road
Hi Robert,
i see you already work with Ansys12. I'm still on 6.3 and therefor not sure if there have been some changes regarding your topic. However, it is actually not a good idea to open an window with /display/open if you are in background mode and graphics driver is explicitly set to null. display/set is what i use, maybe you should give it a try.
cheers
coglione is offline   Reply With Quote

Old   April 9, 2010, 13:03
Default
  #6
Member
 
Robert
Join Date: Feb 2010
Location: Germany
Posts: 32
Rep Power: 16
Robert@cfd is on a distinguished road
Hi

So you mean "/display/set-window 9" ?
Its not working as well.

I just made the most simple case-file I can imagine, the elbow-file from the first tutorial

Code:
rc /home/.../elbow1.cas
/display/set/picture/driver png
/solve/initialize/initialize-flow
it 5
/display/set-window 9
/display/contour velocity-magnitude
0
2
/display/hardcopy vel.png
exit
yes
The error is following:

================================================== ============================
Stack backtrace generated for process id 9140 on signal 11 :
Please include this information with any bug report you file on this issue!
================================================== ============================


Error: Cortex received a fatal signal (SEGMENTATION VIOLATION).
Error Object: ()



thx for ur help
Robert@cfd is offline   Reply With Quote

Reply


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
saving figures in batch mode R.D.Prabhu FLUENT 6 June 12, 2014 11:33
Saving of monitor points in batch mode. Martijn CFX 3 December 10, 2008 10:36
Running Job in Batch mode (EFD) Nick Sessions FloEFD, FloWorks & FloTHERM 0 April 16, 2008 16:44
Prosurf in batch mode Dhruv Siemens 1 September 19, 2005 18:02
Batch mode swapnil CFX 5 November 23, 2002 09:38


All times are GMT -4. The time now is 19:54.