CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > ANSYS Meshing & Geometry

[ICEM] Replay control - save picture

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 16, 2010, 10:18
Default Replay control - save picture
  #1
Member
 
prout
Join Date: May 2009
Posts: 32
Rep Power: 8
zboud is on a distinguished road
Hi,

Is there a command to save a picture using ICEM's replay control? Recording the "save picture" process does not add any line to the script, and I found no topic with "picture" in it in the programmer's guide...

Thanks.
zboud is offline   Reply With Quote

Old   March 16, 2010, 12:30
Default ic_print args
  #2
Member
 
Join Date: Mar 2009
Posts: 52
Rep Power: 8
Anorky is on a distinguished road
Hello,

there is an option, use:

f.e to print a jpeg file:

ic_print format "jpeg" jpeg_quality "100" test.jpeg

or look for print or ic_print in the programmer manual for more options, it's under the "Miscellaneous Mesh Editor Functions" heading.

Good luck
Anorky is offline   Reply With Quote

Old   March 16, 2010, 14:05
Default
  #3
Member
 
prout
Join Date: May 2009
Posts: 32
Rep Power: 8
zboud is on a distinguished road
Thanks. Now I just need to find the commands to set the parametric fitted view
zboud is offline   Reply With Quote

Old   March 17, 2010, 14:35
Default
  #4
Member
 
Join Date: Mar 2009
Posts: 52
Rep Power: 8
Anorky is on a distinguished road
You mean to get the same image everytime?

I think you can find that under the arguments of the ic_print command in the manual.
Anorky is offline   Reply With Quote

Old   March 17, 2010, 16:41
Default
  #5
Member
 
prout
Join Date: May 2009
Posts: 32
Rep Power: 8
zboud is on a distinguished road
I was meaning isometric view...sorry about that.

Quote:
ic_print args
Write hardcopy or image file output. The arguments are:
format form: one of: ps ppmx tiffgif jpegrgb win
generate_new generate a new filename based on the outfile argument
invert on : swap black and white
jpeg_qualityqual : the quality factor for JPEG, between 0 and 100
landscape on: if 1 then swap the X and Y axes
outfile filename: the file to create (without the suffix which is automatically added)
ps_color opt: either color, gray, or mono
ps_direct on: if 1 then write a vector-based ps output, otherwise do raster
ps_frame on: if 1 draw a frame around the ps output
ps_label text: the label to put at the bottom right of the postscript output
ps_title text: the title to put at the top of the postscript output
scale val: scale factor
send_to_printeron: if 1 then the postscript file will be printed using lp
Seems like it's not in the function's arguments. And I found no replay function to tell Icem "view the mesh from there" or "set the isometric view and fit it"...
zboud is offline   Reply With Quote

Old   March 18, 2010, 03:36
Default
  #6
Member
 
Join Date: Mar 2009
Posts: 52
Rep Power: 8
Anorky is on a distinguished road
Hi,

I have been thinking on this and I actually haven't found yet how to do this...
May be ic_view is the solution, although I only managed to set it to one view.

ic_view home

If you figure out how to define the home view you're problem is solved I think...

good luck
Anorky is offline   Reply With Quote

Old   March 18, 2010, 08:21
Default
  #7
Member
 
prout
Join Date: May 2009
Posts: 32
Rep Power: 8
zboud is on a distinguished road
Yeah, I did not find anything either, besides this function. I think the "home" view could be modified but I don't know where.

Right now I use CFX-Pre to get a picture of my mesh, but the result is not so good.

Thanks for your help!
zboud is offline   Reply With Quote

Old   March 18, 2010, 09:16
Default
  #8
Member
 
Join Date: Mar 2009
Posts: 52
Rep Power: 8
Anorky is on a distinguished road
you're welcome, if I find a solution I will let you know
Anorky is offline   Reply With Quote

Old   March 20, 2010, 22:04
Default tdv_trans_update
  #9
Senior Member
 
PSYMN's Avatar
 
Simon Pereira
Join Date: Mar 2009
Location: Ann Arbor, MI
Posts: 2,662
Blog Entries: 1
Rep Power: 35
PSYMN has a spectacular aura aboutPSYMN has a spectacular aura about
There may be a way, but I don't know what it is either.

How about just rotate it to the right direction... SO fit to home and then rotate to 1 1 1 right?

Here is a sample script of something else, that might help give you some ideas...

global tdv_current_viewer
set rotate_angleX 1
set rotate_angleY 2
set turns 5

set angleX [expr ($rotate_angleX * 3.14159) / 180]
set angleY [expr ($rotate_angleY * 3.14159) / 180]

for {set cur_angle 0} {$cur_angle < [expr 360 * $turns]} {set cur_angle [expr $cur_angle + $rotate_angleX]} {
tdv_rotate_axis $tdv_current_viewer 0 1 0 $angleY
#tdv_rotate_axis $tdv_current_viewer 1 0 0 $angleX
tdv_trans_update $tdv_current_viewer
update
}
PSYMN is offline   Reply With Quote

Old   August 20, 2010, 03:37
Default
  #10
Member
 
W.N. Anderson
Join Date: Jul 2010
Location: Zürich, Switzerland
Posts: 46
Rep Power: 7
Will Anderson is on a distinguished road
The command
ic_print
doesn't work when ICEM is run in batch mode (no GUI).

Does anybody have a work around? How to generate hardcopies in postscript from ICEM sessions which are run in batch mode?

Last edited by Will Anderson; August 21, 2010 at 06:12. Reason: clarified
Will Anderson is offline   Reply With Quote

Old   October 5, 2010, 18:35
Default Needs the image to be displayed before it can be captured...
  #11
Senior Member
 
PSYMN's Avatar
 
Simon Pereira
Join Date: Mar 2009
Location: Ann Arbor, MI
Posts: 2,662
Blog Entries: 1
Rep Power: 35
PSYMN has a spectacular aura aboutPSYMN has a spectacular aura about
Hello Will, I see you found this post... Long ago.

Yes, the image capture requires the image to be displayed and therefore can not be done in batch without the GUI...

however, if you run your script with -script instead of -batch, it will launch the GUI and can take images...
PSYMN is offline   Reply With Quote

Old   June 28, 2011, 00:44
Default Replay File query
  #12
New Member
 
A-Vdia
Join Date: Jun 2011
Posts: 5
Rep Power: 6
ayush is on a distinguished road
Is there a way to save a replay file from within a replay file ?
ayush is offline   Reply With Quote

Old   November 16, 2014, 17:29
Default
  #13
New Member
 
Join Date: Nov 2014
Posts: 1
Rep Power: 0
alicefer is on a distinguished road
Hi

How can I take a photo of a project using tetra mesh in icemcfd?
alicefer is offline   Reply With Quote

Reply

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
Tgrid control surface for diagnostic purposes josp OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 0 November 20, 2008 06:36
Xwindows crash with paraview save srinath OpenFOAM Paraview & paraFoam 1 October 15, 2008 09:37
element size control in ICEM (line & face spacing) Sam CFX 0 January 28, 2008 14:28
Solid Timescale Control Parthipan CFX 2 August 24, 2007 10:07
maintaining a logarithmic velocity distribution Morten Andersen CFX 1 January 8, 2007 12:37


All times are GMT -4. The time now is 22:45.