"IF(sv_noseup_nosedown.value.lin:(IN_S.p_fw_wcp.z+(IN_S.p_2w_laden.x-IN_S.p_fw_wcp.x)*sin(sv_noseup_nosedown.value.lin)+(IN_S.p_2w_laden.z-IN_S.p_fw_wcp.z)*cos(sv_noseup_nosedown.value.lin)),0,0)" Can someone help me with this its showing error evalu

Maverick
Maverick New Altair Community Member
edited July 2023 in Community Q&A

"IF(sv_noseup_nosedown.value.lin:(IN_S.p_fw_wcp.z+(IN_S.p_2w_laden.x-IN_S.p_fw_wcp.x)*sin(sv_noseup_nosedown.value.lin)+(IN_S.p_2w_laden.z-IN_S.p_fw_wcp.z)*cos(sv_noseup_nosedown.value.lin)),0,0)" Can someone help me with this its showing error evaluating?

Answers

  • Praful
    Praful
    Altair Employee
    edited July 2023

    Hello Maverick

    When an expression gives "Error Evaluating", it means either

    a) one or more parameter in the expression is not valid or not evaluated correctly

    b) expression is not formatted correctly(brackets, commas etc..)

    c) function itself is not valid.

    Since I do not have the file, it is hard to comment, but I am guessing here, you are using a solver IF function within a MotionView "Linear" field. So, MotionView does not recognize this function.

    I recommend you to change the expression as follows and see if it works and that's what you are intending.

    (sv_noseup_nosedown.value.lin<0)?(IN_S.p_fw_wcp.z+(IN_S.p_2w_laden.x-IN_S.p_fw_wcp.x)*sin(sv_noseup_nosedown.value.lin)+(IN_S.p_2w_laden.z-IN_S.p_fw_wcp.z)*cos(sv_noseup_nosedown.value.lin)):0

     

    In the above, if the condition (sv_noseup_nosedown.value.lin<0) is true, then the value of the field is (IN_S.p_fw_wcp.z+(IN_S.p_2w_laden.x-IN_S.p_fw_wcp.x)*sin(sv_noseup_nosedown.value.lin)+(IN_S.p_2w_laden.z-IN_S.p_fw_wcp.z)*cos(sv_noseup_nosedown.value.lin))

    else, it is 0.

     

    Hope this helps.

    Regards

    Praful