Interpolation of result in Hyperview

Altair Forum User
Altair Forum User
Altair Employee
edited June 2022 in Community Q&A

Hello Everyone,

 

In most cases for sheet metal weld location we wont maintain weld splits in shell meshing. Most of the time we need stress at weld toe. We obtain toe stress by interpolating result between two nodes.

 

So I am trying to create a script in which just by selecting the 2 nodes and inputting the distance of interpolation it should show the result at distance.

 

I have already prepared script for linear interpolation between two values.

 

1. So I want user to select two nodes on screen then in background script should save node contour value and zero distance for first node (x1,y1).

2.then when second node is selected it should save the nodal contour value for second node and distance from first node (x2,y2).

3. then user will input distance of interpolation (x3)

4.linear interpolation is done and (y3) will be calculated 

 

4th step  is ready with me.

How to get 1 , 2 and 3rd step to be done in hyperview?

 

Tagged:

Answers

  • tinh
    tinh Altair Community Member
    edited September 2017

    It seems that hv does not provide a proc to select nodes on screen. I can write a similar one but instead., you can use hwtk inputbox to input node id for calculation

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited September 2017

    Hello Tinh,

    Create mark or query nodal contour values, options not available in Hyperview?

     

    Because inputting nodal id will not save much of time as user as to query nodal id each time. Is there any other way around?

    Thank you

  • tinh
    tinh Altair Community Member
    edited September 2017

    I mean proc to help you with picking nodes on screen

    I think it is possible but i did not see it yet and because we rarely use it

  • srinivas rallabandi_21059
    srinivas rallabandi_21059 Altair Community Member
    edited June 2022

    I am looking for the similar one where I am trying to get the stress/Life numbers at a particular distance from the node1 at a distance of X location

    Assumed Node 1 and Node 2  stress numbers are already known 

    image

  • Nagahashi Kouta
    Nagahashi Kouta Altair Community Member
    edited June 2022

    Hi

    I think the file in the attachment can help you. The file had been compiled. So you should "source" the script file in your script and invoke the command and function like below:

    set eList [::post::panelselect::getuserselection Elements]
    set cList [::post::panelselect::getuserselection Components]
    set nList [::post::panelselect::getuserselection Nodes]

    Just for your reference