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

[ICEM] Viewer update from replay script

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By Sune
  • 1 Post By Sune

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   May 21, 2014, 02:46
Default Viewer update from replay script
  #1
New Member
 
Sune Niemann
Join Date: Aug 2011
Posts: 18
Rep Power: 14
Sune is on a distinguished road
Hello,

I started during what I supposed would be a very simple task, I still believe it is, but I ran into some problems. I want to create a small check mesh script where some of the output are pictures of different parts of the surface mesh.

In my first attempt I used the tdv library commands to set an appropriate view and then take a picture of that. This method worked without flaw. But since my geometry is very large and varies somewhat in shape from case to case, it is not allways straight forward figuring out where the surface that I want to take a picture of is located.

So I came up with another method of doing it. I simply blank out all the parts except those which contains the surface of interest, then i zoom to fit, orient the view and take a picture. Should be straight forward.

The problem is, when I execute the replay script, the blanking out part is not reflected in the viewer.

I can enter the commands manually one by one and it will work.

So, I'm sure that all my commands work, I'm just missing the bit where I force the viewer to update. Can anyone here help me out with this problem?



Example of the commands I use:
Code:
# Hide every type except surfaces
set family_list [ic_geo_list_families] 
ic_geo_update_visibility point $family_list 0
ic_geo_update_visibility curve $family_list 0
ic_geo_update_visibility surface $family_list 1
ic_geo_update_visibility density $family_list 0
ic_geo_update_visibility body $family_list 0
 
# Show all surfaces as solid with wire frams
ic_geo_configure_objects surface 1 solid 0 0 0 0 0 0 0 {} 0 0 0 0 {} 0 0 0 0 0 0 0 0
 
# Alternatively use
#ic_uns_subset_configure All -shade flat_wire
#ic_uns_subset_configure Selected -shade flat_wire
 
# Hide all parts
ic_uns_update_family_type visible {} {!NODE LINE_2 QUAD4 !HEXA_8} update 0
 
# Show the parts I want to take a picture off
ic_uns_update_family_type visible {_SRF_1 _SRF_2 _SRF_3} {!NODE LINE_2 QUAD4 !HEXA_8} update 0
Sune is offline   Reply With Quote

 


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] Remeshing script using ICEM CFD replay mateusdias89 ANSYS Meshing & Geometry 2 February 15, 2015 14:18
[ICEM] [Workbench] Access WB-parameter from ICEM replay script. AdamAL ANSYS Meshing & Geometry 5 October 14, 2014 14:29
[ICEM] Save Message Log automatic with Replay Script survADe ANSYS Meshing & Geometry 3 July 11, 2013 05:49
[ICEM] ICEM Replay Script Automatization Mesh Generation polokus ANSYS Meshing & Geometry 0 April 19, 2013 05:15
CentFOAM Python Script Installation: Error socon009 OpenFOAM Installation 2 May 26, 2012 09:36


All times are GMT -4. The time now is 16:18.