I need script for unit conversion to pressure valve

RAJA
RAJA Altair Community Member

I have pressure value in pascal it is from CFD flow analysis so I want change that unit to megapascal

Best Answer

  • Vladimir_Gantovnik
    Vladimir_Gantovnik Altair Community Member
    Answer ✓

    Script in tcl?

    set pressure_in_Pa 5.0e+6

    set pressure_in_MPa [expr $pressure_in_Pa*1.0e-6]

    puts $pressure_in_MPa

    Output:

    5.0

Answers