|
[Sponsors] |
[ICEM] Automatic mesh generation script surface intersection problem |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 13, 2011, 01:10 |
Automatic mesh generation script surface intersection problem
|
#1 |
Senior Member
Stuart Buckingham
Join Date: May 2010
Location: United Kingdom
Posts: 267
Rep Power: 26 |
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 |
|
Tags |
.rpl, icem, intersect, replay, replay script |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] Problem with snappyHex: no body | lovecraft22 | OpenFOAM Meshing & Mesh Conversion | 5 | June 23, 2010 11:05 |
Mesh generation from surface model | wei | Siemens | 2 | April 24, 2009 02:33 |
Mesh generation problem | Lam | FLUENT | 2 | December 25, 2003 12:37 |
surface mesh generation | Jongtae Kim | Main CFD Forum | 0 | April 11, 1999 20:56 |
unstructured vs. structured grids | Frank Muldoon | Main CFD Forum | 1 | January 5, 1999 10:09 |