Hypermesh

Manoj Yandra
Manoj Yandra Altair Community Member
edited October 2020 in Community Q&A

I have few nodes (lets say 12 nodes) in circular fashion numbered with known ids (say 1,2,3,.....,12). How to generate mesh from the above nodes in a drag fashion in hypermesh tcl

Tagged:

Answers

  • Q.Nguyen-Dai
    Q.Nguyen-Dai Altair Community Member
    edited August 2020

    Some pictures?

  • Adriano A. Koga
    Adriano A. Koga
    Altair Employee
    edited August 2020

    Just perform this action in HM and check the command.tcl file. This is the simplest way of getting the commands.

    But in this case you need to take care, as the mesh won't be enclosed.

     

    *createlist nodes 1 15 14 13 12 11 10 9 8 7 6 5 4 3 2 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
    *createvector 1 0 0 1
    *dragnodestoformsurface 1 1 77.777
    *set_meshfaceparams 0 1 2 0 0 1 0.5 1 1
    *set_meshedgeparams 0 30 0 0 0 0 0 0 0
    *set_meshedgeparams 1 8 0 0 0 0 0 0 0
    *set_meshedgeparams 2 30 0 0 0 0 0 0 0
    *set_meshedgeparams 3 8 0 0 0 0 0 0 0
    *automesh 0 1 2

  • Manoj Yandra
    Manoj Yandra Altair Community Member
    edited August 2020

    I have used similar script which you suggested, but the script stops running at '*set_meshfaceparams' line. can you please run the script which i provide and tell me if there is any mistake

     

    *startnotehistorystate {Drag and mesh}
    *createlist nodes 1 1 2 3 4 5 6 7 8 9 10 11 12
    *createvector 1 5.48432114e-06 2.64328133 4.50066159e-06
    *dragnodestoformsurface 1 1 2.64328133
    *set_meshfaceparams 0 1 2 0 0 1 0.5 1 1
    *set_meshedgeparams 0 11 0 0 0 0 0 0 0
    *set_meshedgeparams 1 1 0 0 0 0 0 0 0
    *set_meshedgeparams 2 11 0 0 0 0 0 0 0
    *set_meshedgeparams 3 1 0 0 0 0 0 0 0
    *automesh 0 1 2
    *storemeshtodatabase 0
    *ameshclearsurface 
    *endnotehistorystate {Drag and mesh}

     

    I developed this script from tcl file after performing the drag option manually

     

    The dialog box appears as 'Error 0 0' after run. When i searched in google, it is said to be a return value which means TCL OK. But I couldn't understand why the script stopped.

  • Manoj Yandra
    Manoj Yandra Altair Community Member
    edited August 2020

    Some pictures?

    Sorry, company policy issues. can't share. The nodes are in X-Z plane in circular fashion which need to be dragged along Y axis