🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Tcl script for summation of loads and moments at specific point

User: "Vladimir Gantovnik_21974"
Altair Community Member
Updated by Vladimir Gantovnik_21974

Hi Engineers! I have a question: how do you write a script that will give values of summation of forces and moments at the selected point. For example, I have a surface (wing) loaded by pressure (PLOAD4), and I want to know the resulting shear forces, bending moment, and torsion moment at the root of the wing.  In HyperMesh GUI, I see Bcs/Check/Loads Summation, but I want to have a tcl script.

Thank you!

 

Find more posts tagged with

Sort by:
1 - 1 of 11
    User: "Adriano_Koga"
    Altair Employee
    Accepted Answer
    Updated by Adriano_Koga

    Hi, Adriano! Thank you, but 1) if I need a tcl script, when I need a tcl script. The function will be part of a larger tcl code. Is it possible to use that FBD tool you suggested in tcl - probably not? 2) "some TCL scripting on your own, taking a look at some tutorials, etc." Common, I am a good tcl hypermesh programmer :) So, unfortunately, both of your suggestions are useless :) 

    Ok. So the question was, do we have a tcl function in API that will make a summation of PLOAD4 pressure loads and moments at the given node? 

    If there is no such function, how can I get the value of the PLOAD4 card at the given element? We know how to get the area of the given area, but what about the applied pressure?

    #get area of element 23 *createmark elements 1 23 set masscalc [hm_getmass elems 1] #calculate area of element set area [lindex $masscalc 2] puts $area

    Thank you!

    I'd say FBD tools would be your solution here, but i don't know if it is possible to call these in batch...

     

    Now, concerning your specific questions:

    you could use hm_getvalue to retrieve these values mcuh easily, and for many items at once.

     

    something like:

     

    hm_getvalue elems user_ids=${elems_list} dataname=area

     

    hm_getvalue loads user_ids=${loads_list} dataname=facearea

    hm_getvalue loads user_ids=${loads_list} dataname=magnitude

     

    image