Automatic mesh generation script surface intersection problem
3 Attachment(s)
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 |
All times are GMT -4. The time now is 20:30. |