How to apply force on an actuator using tcl scripting language in hyperwork

Dennis Chiu
Dennis Chiu Altair Community Member
edited November 2022 in Community Q&A

Right now, I want to apply force on a given actuator in a given model using tcl scripting language?

How could apply force using tcl scripting language on it?

Answers

  • Adriano_Koga
    Adriano_Koga
    Altair Employee
    edited November 2022

    Hi,

     

    in order to accomplish that, you can perform the same operation manually, and then open the commandX.tcl (X=1,2,3...).

    It will show you the commands necessary, and then you can adapt them to your needs.

     

    To create a force in a particular node, you can use this:

    *createentity loadcols includeid=0 name="forces_loadcollector"; #creates a load collector with name 'forces_loadcollector'
    *createmark nodes 1 1863012 ;#select the node #1863012
    *loadcreateonentity_curve nodes 1 1 1 111 222 333 0 0 415.32397 0 0 0 0 0 ;# creates a force of components 111, 222, 333 (x,y,z) and total magnitude 415.3....

     

     

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.