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

[ICEM] Automatic mesh generation script surface intersection problem

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 13, 2011, 02:10
Default Automatic mesh generation script surface intersection problem
  #1
Senior Member
 
Stuart Buckingham
Join Date: May 2010
Location: United Kingdom
Posts: 267
Rep Power: 26
stuart23 will become famous soon enoughstuart23 will become famous soon enough
Hi guys

I hope someone can help me with a problem I'm having trying to write an automatic mesh gen script, I have a script that loads separate files together and extracts the fluid domain, but it runs into trouble when trying to intersect a 1" tube with the symmetry plane. The following is part of the geometry cleanup out of my script:

#split geometry at curvature > 45 degrees
set split_surf [ic_geo_objects_in_family surface $partlist]
ic_geo_trm_srfs_by_curvature $split_surf 45

#get surface names from fluid domain walls
set inner_ground_surf [ic_geo_objects_in_family surface INNER_GROUND]
set inner_sym_surf [ic_geo_objects_in_family surface INNER_SYM]

#rebuild geometry
set famnames [ic_geo_non_empty_families]
ic_geo_delete_unattached $famnames 0 1
ic_build_topo 1 -angle 30 -create_interior BODY FRONT_WHEEL FRONT_WING INNER_INT INNER_GROUND INNER_SYM MAT_POINT REAR_WHEEL REAR_WING
ic_geo_delete_unattached $famnames

#create intersect curves
set asurfsa [list [ic_geo_get_objects surface FRONT_WING] [ic_geo_get_objects surface REAR_WING] [ic_geo_get_objects surface FRONT_WHEEL] [ic_geo_get_objects surface REAR_WHEEL] [ic_geo_get_objects surface BODY] [ic_geo_get_objects surface INNER_SYM] [ic_geo_get_objects surface INNER_GROUND]]
ic_geo_intersect_surfs_by_groups $asurfsa GEOM use_bsp multi_crv

#rebuild geometry
set famnames [ic_geo_non_empty_families]
ic_geo_delete_unattached $famnames 0 1
ic_build_topo 1 -angle 30 -create_interior BODY FRONT_WHEEL FRONT_WING INNER_INT INNER_GROUND INNER_SYM MAT_POINT REAR_WHEEL REAR_WING GEOM
ic_geo_delete_unattached $famnames

#load bounding box
ic_load_tetin geo/bounding_box.tin

#trim off all excess geom
set surfnames [ic_geo_objects_in_family surface {BODY FRONT_WING REAR_WING FRONT_WHEEL REAR_WHEEL}]
foreach asurf $surfnames {if {[ic_geo_srf_in_srf_fam_set $asurf BOUNDING_BOX] == 0} {ic_delete_geometry surface names $asurf} }

#unload bounding box
ic_delete_geometry all families BOUNDING_BOX
ic_geo_delete_family BOUNDING_BOX

#rebuild geometry
ic_geo_delete_unattached $famnames 0 1
ic_build_topo 1 -angle 30 -create_interior BODY FRONT_WHEEL FRONT_WING INNER_INT INNER_GROUND INNER_SYM MAT_POINT REAR_WHEEL REAR_WING GEOM
ic_geo_delete_unattached $famnames

#trim interior bounds from walls
set surfnames [ic_geo_objects_in_family surface INNER_SYM]
foreach asurf $surfnames {if {$asurf != $inner_sym_surf} {ic_delete_geometry surface names $asurf} }
set surfnames [ic_geo_objects_in_family surface INNER_GROUND]
foreach asurf $surfnames {if {$asurf != $inner_ground_surf} {ic_delete_geometry surface names $asurf} }


ICEM correctly creates the required curves between the intersecting faces using "ic_geo_intersect_surfs_by_groups", however not all of these curves are associating to the surfaces when i build the topology. I have attached some pictures to illustrate. Even if I increase the build topology tolerances, I still cannot get these yellow curves to turn red. Is there something I am missing or doing incorrectly?

Thanks
Stuart
Attached Images
File Type: png Capture.PNG (14.6 KB, 17 views)
File Type: png Capture3.PNG (11.9 KB, 14 views)
File Type: png Capture2.PNG (30.4 KB, 12 views)
stuart23 is offline   Reply With Quote

Reply

Tags
.rpl, icem, intersect, replay, replay script


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
[snappyHexMesh] Problem with snappyHex: no body lovecraft22 OpenFOAM Meshing & Mesh Conversion 5 June 23, 2010 12:05
Mesh generation from surface model wei Siemens 2 April 24, 2009 03:33
Mesh generation problem Lam FLUENT 2 December 25, 2003 13:37
surface mesh generation Jongtae Kim Main CFD Forum 0 April 11, 1999 21:56
unstructured vs. structured grids Frank Muldoon Main CFD Forum 1 January 5, 1999 11:09


All times are GMT -4. The time now is 11:09.