units.sup

来自「proe5.0野火版下载(中文版免费下载)」· SUP 代码 · 共 108 行

SUP
108
字号
! 06-Sep-98 I-01-18 benda  $$1  Added comments and CGS ! 01-Oct-98 I-01-20 benda  $$2  Fixed slug's factor.! 13-Oct-98 I-01-22 benda  $$3  Fixed basic set - replaced lbf with cvt.! 29-Apr-02 J-03-24 benda  $$4  Fixed conversion numbers for kg, slug, N.! 19-Mar-03 K-01-04 AKam   $$5  Added "millimeter Kilogram Sec (mmKs)"! units.sup! This is a comment! Empty lines are legal! Definitions of basic set of unitsbasic_set_unit length      inBASIC_SET_UNIT mass        lbm! The following force unit completes the basic set but is not a known standard unit.basic_set_unit FORCE       cvtBaSiC_SeT_UnIt time        secbasic_set_unit temperature Fbasic_set_unit angle       rad! The first word is a 'command' - it is case insensitive.! For this command the second word is a type designator -! It must be one of length, mass, force, time, temperature, angle! and may be case insensitive.! The third word is a value which will be converted to a wide string.! There must be one and only one of each basic unit defined.! Definitions of standard unitsstandard_unit length m      39.370078740157481standard_unit length cm     0.01               mstandard_unit length mm     0.001              mstandard_unit length micron 0.001              mmstandard_unit length mil    0.001standard_unit length ft     12standard_unit mass kg      2.204622622standard_unit mass g       0.001        kgstandard_unit mass mg      0.001        gstandard_unit mass tonne   1000         kgstandard_unit mass ounce-m 0.0625standard_unit mass slug    32.174048556standard_unit mass ton-m   2000standard_unit force lbf     386.088582677165standard_unit force N       0.224808943 lbfstandard_unit force kN      1000      Nstandard_unit force dyne    0.00001   Nstandard_unit force kg-f    9.80665   Nstandard_unit force ounce-f 0.0625    lbfstandard_unit force kip     1000      lbfstandard_unit force ton     2000      lbfstandard_unit time msec      0.001standard_unit time micro-sec 0.001 msecstandard_unit time min       60standard_unit time hr        60    minstandard_unit time day       24    hrstandard_unit time week      7     daystandard_unit temperature C 1.8 F  32standard_unit temperature K 1   C -273.15standard_unit temperature R 1   F -459.67! Unit definitions begin with the command 'standard_unit' followed by four values!  - new unit name,!  - scaling float,!  - reference unit name, and!  - offset float.! The offset value is set to 0.0 if missing.! Type designator cannot be abbreviated (like temp instead of temperature).! If the reference unit name is missing the basic set unit of the same type is used.std_derived_unit stress Pa     N/m^2std_derived_unit stress kPa    1e3 Pastd_derived_unit stress MPa    1e6 Pastd_derived_unit stress GPa    1e9 Pastd_derived_unit stress psi    lbf/in^2std_derived_unit stress ksi    1000 psistd_derived_unit energy joule  N mstd_derived_unit energy kjoule 1000 joulestd_derived_unit energy erg    1e-7 joulestd_derived_unit power  W      joule/secstd_derived_unit power  kW     1000 Wstd_derived_unit power  MW     1000 kWstd_derived_unit power  mW     0.001 W! std_derived_unit expects 3 arguments, namely type, new name, and a numerical-! unit expression.! Definitions of standard systems of unitsstandard_unit_system MLT "Meter Kilogram Second (MKS)"     m  kg    N    sec K radstandard_unit_system MLT "Centimeter Gram Second (CGS)"    cm g     dyne sec C radstandard_unit_system FLT "millimeter Newton Second (mmNs)" mm tonne N    sec C radstandard_unit_system FLT "Foot Pound Second (FPS)"         ft slug  lbf  sec F radstandard_unit_system FLT "Inch Pound Second (IPS)"         in -     lbf  sec F radstandard_unit_system MLT "Inch lbm Second (Pro/E Default)" in lbm   -    sec F radstandard_unit_system MLT "millimeter Kilogram Sec (mmKs)"  mm kg    -    sec C rad! "-" means none.! Order of definition is unimportant as long as all reference units are! predefined. i.e. "MKS" system can be defined right after m, kg, N, sec,! K and rad are defined.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?