Freq round off in Notes

N_Pat
N_Pat Altair Community Member
edited October 2024 in Community Q&A

Hello All,

While doing modal analysis post processing, i wanted round off value of freq. in "Model Info-Notes". I tried "Notes" option, but it didn't work.

imageimage

Is there any way to do it?

Regards,

Pat

 

 

Answers

  • Fred_Juras
    Fred_Juras
    Altair Employee
    edited October 2024

    Hello Pat,

    Please insert the following code in the note:

    {convert(mid(window.simulationstep,strrchr(window.simulationstep, chr(61))+1,strlen(window.simulationstep))),%.2f}

    It should give you the freq value with 2 digits. If you need more digits, please adapt the last argument. For instance %.3f to get a float number with 3 digits...

    Regards,
    Fred.

  • N_Pat
    N_Pat Altair Community Member
    edited October 2024

    Thank you Frederic for your input. It works

    Regards,

    Pat

     

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.