How to build a lattice structure from a mesh file or some coordinate of beams?

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

Hello 

 

If there is a mesh file(like obj or stl files)or coordinates of beams,just like the pic below,how can i build a lattice structure(replace each edge of mesh with a cylindrical beam) in the OptiStruct quickly?

 

I thank you in advance for your help!

 

 

<?xml version="1.0" encoding="UTF-8"?>1.png

Answers

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited December 2017

    Hi,

     

    You can extract lines from the edges of mesh and use the same for meshing with beams. 

     

    I hope this helps. 

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited December 2017

    Hi,

     

    You can extract lines from the edges of mesh and use the same for meshing with beams. 

     

    I hope this helps. 

    Is there any codes or any tutorials can help me do this thing? Thank you very much! 

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited December 2017

    Goto Geom page>> Surface>> Extract surface from FE. This should extract surfaces.

     

    You can also use Lines option to extract lines using nodes. 

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited January 2018

    Goto Geom page>> Surface>> Extract surface from FE. This should extract surfaces.

     

    You can also use Lines option to extract lines using nodes. 

    Thanks for yours nice answer, and I have one more question 'How to do this things by tcl codes instead of interactive operation?'.Is there any examples or tutorials can help me do this thing? Thank you very much again! 

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited January 2018

    Moving to customization thread. 

  • tinh
    tinh Altair Community Member
    edited January 2018

    If you had coordinate of beams. I will give an example script

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited January 2018

    If you had coordinate of beams. I will give an example script

    Yes, I only have coordinates of beams.Could you please send me your script.Thank you very much!

  • tinh
    tinh Altair Community Member
    edited January 2018

    Try

    set ElemList {}

    *createnode $x1 $y1 $z1

    *createnode $x2 $y2 $z2

    *createlist nodes 1 -1 -2

    *createelement 2 1 1 1

    lappend ElemList [hm_latestentityid elems]

    #.... => repeat with other x, y, z coordinates

    eval *createmark elems 1 $ElemList

    *equivalence elems 1 0.1 1 0 0

    eval *createmark elems 1 $ElemList

    *configedit 1 bar2