Modifying units in an existing model in Motionview without destroying the model

Linn Liao
Linn Liao New Altair Community Member
edited March 22 in Community Q&A

Hi,

I tried modifying the units with:

from hw import mview

mod = mview.getModel()

mod.units.length = 'METER'

but it seems like the entire model falls apart because of the change. Is there a quick fix to this problem?

 

Thank you,

Linn

 

Best Answer

  • Christopher_Fadanelli
    Christopher_Fadanelli
    Altair Employee
    edited March 22 Answer ✓

    Hi Linn,

     

    MotionView does not automatically update the units. For example if you have a motion set to a displacement of 100 mm. Then you change the units from MM to M. The motion value will not update to 0.1 meters. Instead it will be 100 m. 

    Unfortunately, you will need to go and update the values. A faster way would be to use Data Summary to export the values in excel, update the values and reimport the excel file.

     

    Best,

     

    Christopher Fadanelli  

Answers

  • Christopher_Fadanelli
    Christopher_Fadanelli
    Altair Employee
    edited March 22 Answer ✓

    Hi Linn,

     

    MotionView does not automatically update the units. For example if you have a motion set to a displacement of 100 mm. Then you change the units from MM to M. The motion value will not update to 0.1 meters. Instead it will be 100 m. 

    Unfortunately, you will need to go and update the values. A faster way would be to use Data Summary to export the values in excel, update the values and reimport the excel file.

     

    Best,

     

    Christopher Fadanelli  

  • GTT Adam
    GTT Adam
    Altair Employee
    edited March 20

    Hi Linn,

    The units for the model can be easily modified in the Solver Units DataSet (DS_Units). Here, the force, length, mass, and time units can be modified. 

    image

     

    Hope this helps!

    Adam Reid