🎉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

MIN\MAX nodes in a defines range

User: "Ajinkya Gaikwad"
Altair Community Member
Updated by Ajinkya Gaikwad

Dear team,

I am interested in finding out the MIN\MAX node number(in my case nodes are randomly numbered and i want to find min\max from a defined range of node number). For that I have used 

 

 

::hwat::utils::CreateMark 'nodes'  1 all;

set h [hm_getmark nodes 1]

set maxall [::tcl::mathfunc::max {*}$h]

 

This works fine for small geometries. but it takes high time for large one's. While the Min\Max button does it very fast. So can you please suggest any code\script do it in faster way..or command for min\max (blue color) button.. 

 

Find more posts tagged with

Sort by:
1 - 3 of 31
    User: "tinh"
    Altair Community Member
    Updated by tinh

    Use hm_entityminid and hm_entitymaxid

    User: "Ajinkya Gaikwad"
    Altair Community Member
    OP
    Updated by Ajinkya Gaikwad

    thanks for your reply.

     

    hm_entitymaxid is giving the max for *all* the nodes.

    i was looking for the max for nodes only in a certain range of nodes.

     

    this would be similar to choosing nodes by id and then using the 'min/max' blue button.

     

    User: "tinh"
    Altair Community Member
    Updated by tinh

    Use lsort to sort the ID list then extract 1st and end items