Create force on line

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

Hello, i just start to use Tcl script on hypermesh.

 

I've a script who create a simple geometry and mesh on hypermesh.

And i need to create boundary conditions.

 

with the commande file I've :

 

*startnotehistorystate {Created Force }
*createmark nodes 1 1-19 1920-1945 4553-4559
*loadcreateonentity_curve nodes 1 1 1 -0 -0 50 0 0 50 0 0 0 0 0
*endnotehistorystate {Created Force }

 

The problem is that the nodes are not always the ame (depend on my geometry).

Can I create boundary conditions without the number of the nodes ? Like with lines ?

Something like :

 

*startnotehistorystate {Created Force }
*createmark nodes 1 Line 3
*loadcreateonentity_curve nodes 1 1 1 -0 -0 50 0 0 50 0 0 0 0 0
*endnotehistorystate {Created Force }

 

Thanks

Sorry i'm really a beginner with TCL.

 

Tagged:

Answers

  • tinh
    tinh Altair Community Member
    edited November 2017

    yes you can. the correct syntax is:

    *createmark nodes 1 'by lines' 3

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited November 2017

    Hello,

    Perfect it works.

    Thanks for your help !