Results 1 to 2 of 2

Thread: Abaqus Python - how to export external triangles of a 3d mesh

  1. #1

    Abaqus Python - how to export external triangles of a 3d mesh

    Hi,

    I'm struggling to obtain the external triangles of a tetrahedral mesh...

    I did meshing operation with a Python script:

    ##### CREATE MODEL ######
    myModel = mdb.Model(name=modelName)

    ##### IMPORT IGES MODEL ######
    mdb.openIges('model.igs'
    , msbo=True, scaleFromFile=OFF, trimCurve=DEFAULT)
    myModel.PartFromGeometryFile(combine=False, convertToAnalytical=1
    , dimensionality=THREE_D, geometryFile=mdb.acis, name='model',
    stitchAfterCombine=False, stitchEdges=1, stitchTolerance=1.0, type=
    DEFORMABLE_BODY)

    [..assign materials, assembly, section, loads., etc etc....]


    ##### CREATE TETRAHEDRAL MESH #######
    myModel.parts['part'].seedPart(size=8.0)
    pickedRegions = model.parts[part'].cells
    myModel.parts['part'].setMeshControls(elemShape=TET, regions=pickedRegions,
    sizeGrowth=MAXIMUM, technique=FREE)
    elemType = mesh.ElemType(elemCode=C3D4, elemLibrary=STANDARD,
    distortionControl=DEFAULT)
    pickedRegions = (myModel.parts['part'].cells,)
    myModel.parts['part'].setElementType(regions=pickedRegions, elemTypes=(elemType,))
    myModel.parts['part'].generateMesh()
    myModel.rootAssembly.regenerate()
    #########################################
    I need to export the 3d faces that compose the external surface. I tried with:

    for ef1 in myModel.parts['part'].elementFaces:
    print ef1

    #RESULT:
    ({'face': FACE1, 'label': 1})
    ({'face': FACE2, 'label': 1})
    ({'face': FACE3, 'label': 1})
    ({'face': FACE4, 'label': 1})
    ({'face': FACE1, 'label': 2})
    ({'face': FACE2, 'label': 2})
    .... etc etc ......

    ###########################################

    for face in myModel.parts['part'].faces:
    print face

    #RESULT:
    ({'index': 0, 'instanceName': None, 'pointOn': ((16.626792, 29.168272, -50.806711),)})
    ({'index': 1, 'instanceName': None, 'pointOn': ((15.252681, -118.266439, -14.106842),)})
    ({'index': 2, 'instanceName': None, 'pointOn': ((-8.57784, -116.351098, -12.873274),)})
    ({'index': 3, 'instanceName': None, 'pointOn': ((-27.789027, -117.360474, 8.417591),)})
    ({'index': 4, 'instanceName': None, 'pointOn': ((-5.268457, -119.022915, -34.536412),)})
    ({'index': 5, 'instanceName': None, 'pointOn': ((-8.440513, -115.967772, -39.54762),)})
    .... etc etc .....

    ############################################
    but these results are not useful for my purposes.. I'm very beginning with Abaqus scripting, and I didn't find useful info in the documentation

    please can you provide any suggestions?

    thank you in advance, best regards

  2. #2
    Join Date
    2000-02
    Location
    Boston, USA
    Posts
    3,280
    I am not sure I quite understand your question. You can determine the nodes on the exterior surface by creating a surface and then extracting the nodes on the surface.

    -Jorgen
    Jorgen Bergstrom, Ph.D.
    PolymerFEM Administrator

Similar Threads

  1. Rotating a shaft due to external forces in ABAQUS/Standard
    By hmpws in forum Finite Element Modeling
    Replies: 0
    Last Post: 2011-01-24, 14:01
  2. Mesh to Mesh method
    By moslempayandeh in forum Finite Element Modeling
    Replies: 0
    Last Post: 2010-11-21, 10:15
  3. I-deas to ABAQUS export
    By jac in forum Finite Element Modeling
    Replies: 3
    Last Post: 2010-07-28, 12:20
  4. Merged Orphan Mesh and Original Mesh
    By Fma10 in forum Finite Element Modeling
    Replies: 1
    Last Post: 2009-12-09, 21:06
  5. Export of deformed mesh geometry from ABAQUS
    By hegge in forum Finite Element Modeling
    Replies: 3
    Last Post: 2006-08-02, 21:51

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •