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

[ICEM] Load views in ICEMCFD script

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

Like Tree1Likes
  • 1 Post By bluebase

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 7, 2014, 11:32
Default Load views in ICEMCFD script
  #1
Senior Member
 
Join Date: Mar 2010
Location: Auckland, NZ
Posts: 168
Rep Power: 15
Jonathan is on a distinguished road
hi guys,

just wondering if any of the ICEM guys know whether it is possible / how to load previously saved 'views' in ICEM??

I need / want to post process a whole lot of meshes automatically and when i tried to record the replay file including loading a previously saved view, nothing was recorded ... so just wondering if its indeed possible???

thanks very much and best regards
cheers
jonathan
Jonathan is offline   Reply With Quote

Old   August 8, 2014, 07:55
Default
  #2
Senior Member
 
Sebastian Engel
Join Date: Jun 2011
Location: Germany
Posts: 566
Rep Power: 19
bluebase will become famous soon enough
Hi Jonathan,

there is a tcl command hidden in the icem source which is not fully documented...

Code:
ic_current_view           # returns current view settigns
ic_current_view -pos $pos -rot $rot -center $center -scale $scale    # sets a new view, all arguments are optional
Check ic_current_view first to have an idea what format the $variables have.

With regards,
Sebastian
Jonathan likes this.
bluebase is offline   Reply With Quote

Old   August 8, 2014, 12:16
Default
  #3
Senior Member
 
Join Date: Mar 2010
Location: Auckland, NZ
Posts: 168
Rep Power: 15
Jonathan is on a distinguished road
Hi Sebastian,

thank you very much for this answer and your help. i am not an expert in TCL so this really helps me - i have only done beginner-to-intermediate scripting in ICEM, and i am not sure if the 'scripting language' which is recorded when you record replay files is actually TCL or even another 'language'. Anyway, thanks very much.

i'll give it a go when i get time tonight (i need to post-process 120 auto generated meshes for a study i am doing), so if this works it will be a huge help.

thanks very much,
best regards
Jonathan

Quote:
Originally Posted by bluebase View Post
Hi Jonathan,

there is a tcl command hidden in the icem source which is not fully documented...

Code:
ic_current_view           # returns current view settigns
ic_current_view -pos $pos -rot $rot -center $center -scale $scale    # sets a new view, all arguments are optional
Check ic_current_view first to have an idea what format the $variables have.

With regards,
Sebastian
Jonathan is offline   Reply With Quote

Old   August 9, 2014, 11:28
Default
  #4
Senior Member
 
Sebastian Engel
Join Date: Jun 2011
Location: Germany
Posts: 566
Rep Power: 19
bluebase will become famous soon enough
Yes, the recorded replay file is in tcl language. The difference between the replay file and a tcl file is the numbering added in the replay file. I think there are some more minor differences but not important ones.

That means you could add this command in your replay file.

with regards,
Sebastian
bluebase is offline   Reply With Quote

Reply

Tags
batch, icem, load view, script

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
[ICEM] I need help for ICEMCFD script ringtail ANSYS Meshing & Geometry 2 September 20, 2010 11:46
Load unstructured hex-mesh as blocking in icemcfd korni ANSYS Meshing & Geometry 4 July 21, 2010 18:40
aerofoil geomety in ICEMCFD using script files said CFX 0 December 21, 2007 15:38
ICEMCFD script files question hadj Main CFD Forum 0 December 5, 2007 10:06
creating geometry using "Script files" in ICEMCFD jaber Main CFD Forum 1 November 11, 2007 10:28


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