Command file/node number

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

Hi all,

I am currently setting up a parameter optimization which combines Catia, Hypermesh, Bathmesher, and Ansys.

I am having the following problm right now:

When I generate a command file to set up the external loads I have to know the nodal forces, as I cannot type in the global force.

As my node numbers vary from design to design, I somehow have to divide the global force by the node number and use this value for the load. I came up with a TCL script, which can deal with this, but is there a possibility to do this with a command file?

*createmark nodes 1 'displayed'

set NoNodes2 [hm_count nodes displayed 0 0]

set ForcePerNode [expr {$Force / double($NoNodes1)}]

Hope someone can help.

Answers

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited August 2008

    Just puts the same tcl script in current dir and execute script from cmf file.

    There is no way to do this from cmf file.