get_unitfactor_propfile2mdl

 

The get_unitfactor_propfile2mdl function get units factor to convert from property file units to RecurDyn model units.

 

Langunage type

SubRoutine

C/C++

get_unitfactor_propfile2mdl(int idFileParam, double[] cv2mdl, int errflg)

 

Parameter information

 

Variable Name

Size

Description

idFileParam

Int

[in] file Property ID

cv2mdl

Double [5]

[out] units factor to change from property file units to SI units (size=5)

     cv2mdl [0] = Length conversion factor, ex) m à mm = 1000

     cv2mdl [1] = Force conversion factor, ex) mN à N = 0.001

     cv2mdl [2] = Angle conversion factor, ex) deg à rad = pi/180

     cv2mdl [3] = Mass conversion factor, ex) kg à g = 1000

     cv2mdl [4] = Time conversion factor, ex) s à ms = 1000

errflg

Int

[out] error status (0: No error, 1~6: error)

 

[Note] Available units in RD tire and road property files as below. (RD does not check the upper and lower character)

     force : n, kn, newton, knewton, newton

     mass : kg, g, gram, kilogram

     length : km, m, cm, mm, meter, millimeter, kilometer, centimeter, meter

     time : s, ms, sec, second, milisecond, msec

     angle: radians, degree, rad, deg