Invalid ResultMath expression at Hyperview

Iban
Iban Altair Community Member

I have one problem when creating a new expression throught expression builder at HyperView.

I have a component that is heated and bent at the same time. I have successfully created an expression that returns a stress value based on the temperature of a component. This is the working expression:

7.00140E-12R1.S29^5-2.33338E-08R1.S29^4+3.01977E-05R1.S29^3-1.86514E-02R1.S29^2+5.27671E+00*R1.S29^1-4.79263E+02

Now when I try to subtract the vonMises stress from the above expression, Hyperview gives me an error. This is the expression that doesn't work:

(7.00140E-12R1.S29^5-2.33338E-08R1.S29^4+3.01977E-05R1.S29^3-1.86514E-02R1.S29^2+5.27671E+00*R1.S29^1-4.79263E+02)-(R2.T2.C11.L3)

And this is the warning:

Invalid ResultMath expression (Binding mismatch: lhs binding is not mismatched with rhs binding for Substract

Welcome!

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

Best Answer

  • Michael Herve
    Michael Herve
    Altair Employee
    Answer ✓

    Hello again @Iban ,

    is temperature a nodal, or an elemental result? The error message you received (binding mismatch) would make me think it is a nodal results (so a result binded to nodes), whereas the stress is binded to elements.

    If I'm correct, you neeed first to load your results with ResultMath template = Advanced, the to change binding mode from one of the contours, so either use BCNodeToElem with temperature, or to use BCElemToNode with Stress

    Here's an example of how to use such operators tin HyperView:

    Regards,

    Michael

Answers

  • Michael Herve
    Michael Herve
    Altair Employee

    Hello @Iban ,

    your expression is curious to me:

    7.00140E-12R1.S29

    Shouldn't there be something (a multiplication, …) between 7.00140E-12 and R1.S29 (same for the other terms)?

    What does your expression look like if you uncheck the option "Display Alias":

    Regards,

    Michael

  • Iban
    Iban Altair Community Member
    edited January 20

    Hello Michael,

    You are right, this is the correct expression:

    7.00140E-12*R1.S29^5-2.33338E-08*R1.S29^4+3.01977E-05*R1.S29^3-1.86514E-02*R1.S29^2+5.27671*R1.S29-479.263

    And when I uncheck "Display alias":

    (((((("0.000000000007"*("model.Temperature"^"5"))-("0.000000023334"*("model.Temperature"^"4")))+("0.0000301977"*("model.Temperature"^"3")))-("0.0186514"*("model.Temperature"^"2")))+("5.27671"*"model.Temperature"))-"479.263")

    And when I try to substract th von Mises stress it look like this

    (((((((("0.000000000007"*("model.Temperature"^"5"))-("0.000000023334"*("model.Temperature"^"4")))+("0.0000301977"*("model.Temperature"^"3")))-("0.0186514"*("model.Temperature"^"2")))+("5.27671"*"model.Temperature"))-"479.263")-"result.Stress.vonMises")

    Thanks in advance

  • Michael Herve
    Michael Herve
    Altair Employee
    Answer ✓

    Hello again @Iban ,

    is temperature a nodal, or an elemental result? The error message you received (binding mismatch) would make me think it is a nodal results (so a result binded to nodes), whereas the stress is binded to elements.

    If I'm correct, you neeed first to load your results with ResultMath template = Advanced, the to change binding mode from one of the contours, so either use BCNodeToElem with temperature, or to use BCElemToNode with Stress

    Here's an example of how to use such operators tin HyperView:

    Regards,

    Michael

  • Iban
    Iban Altair Community Member
    edited January 20

    Hi Michael,

    The temperature is nodal result, that was the binding mistmatch.

    Now, using BCElemToNode with the stress at the expression it works correctly.

    Thank you very much

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.