Model Element |
||||||||||||||||||||||||||||||||||
Class NameUnits Description |
||||||||||||||||||||||||||||||||||
Units defines the units for the model being defined. It allows you to specify four types of units: Mass, Length, Time, and Force. The last is obviously a function of the first three and can be automatically calculated for a consistent set of units. However, many unit systems are not "consistent", so it may be necessary to specify a force unit also. |
||||||||||||||||||||||||||||||||||
Attribute Summary
*Force=["CENTINEWTON", "DYNE", "KILOGRAM_FORCE", "KNEWTON", "KPOUND_FORCE", "MEGANEWTON", "MICRONEWTON", "MILLINEWTON", "NANONEWTON", "NEWTON", "OUNCE_FORCE", "POUND_FORCE", "POUNDAL"]
*Length=["ANGSTROM", "CENTIMETER", "FOOT", "KILOMETER", "INCH", "METER", "MICROINCH", "MICROMETER", "MILE", "MILLIMETER", "MILLS", "NANOMETER","YARD"]
*Mass=["GRAM", "KILOGRAM", "KPOUND_MASS", "MILLIGRAM", "MICROGRAM", "NANOGRAM", "OUNCE_MASS", "POUND_MASS", "SLINCH", "SLUG","TONNE", "US_TON"]
*Time=["DAY", "HOUR", "MICROSECOND", "MILLISECOND", "MINUTE", "NANOSECOND", "SECOND"]
UsageUnits may be defined in 3 different ways. |
||||||||||||||||||||||||||||||||||
#1: Explicit specification of mass, length, time and force units Units (force=string, length=string, mass=string, time=string)
#2: Selecting a predefined set of units Units (system=string)
#3: With a units consistency factor only Units (UCF=double) |
||||||||||||||||||||||||||||||||||
Attribute Description |
||||||||||||||||||||||||||||||||||
Explicit specification of mass, length, time and force units |
||||||||||||||||||||||||||||||||||
force_unit |
String Defines the units for force. Select one from:
The force_unit attribute is mandatory. |
|||||||||||||||||||||||||||||||||
mass_unit |
String Defines the units for mass. Select one from:
The mass_unit attribute is mandatory. |
|||||||||||||||||||||||||||||||||
length_unit |
String Defines the units for length. Select one from:
The mass_unit attribute is mandatory |
|||||||||||||||||||||||||||||||||
time_unit |
String Defines the time units. Select one from:
The time_unit attribute is mandatory |
|||||||||||||||||||||||||||||||||
Selecting a predefined set of units |
||||||||||||||||||||||||||||||||||
system |
String MotionSolve knows about the following sets of units. You can select from one of the following
When "NONE" is specified, MotionSolve uses the "MKS" system. The system attribute is mandatory when you want to use a predefined set of Units. |
|||||||||||||||||||||||||||||||||
Specify a units consistency factor |
||||||||||||||||||||||||||||||||||
ucf
|
In lieu of specifying the mass, length, and time units, you can alternatively specify a Units Consistency Factor, UCF. This factor should ensure that for the set that's chosen, Newton’s second law, F=MA, can still be used. UCF has a default value of 1.0, so that when neither the units nor the mass multiplication factor are defined, the software assumes that the model has been defined in some (unknown) set of consistent units. |
|||||||||||||||||||||||||||||||||
Comments
F = m * a * UCF Therefore, UCF = F / (m*a). Let’s see how this works for the example below.
|
||||||||||||||||||||||||||||||||||
We see that UCF does not have any units. It is just a factor.
Example
si = Units (force="Newton", mass="Kilogram", length="Meter", time="Second")
myunits = Units (ucf=1000)
|
||||||||||||||||||||||||||||||||||
weirdUnits = Units (force="Newton", mass="Kilogram", length="Yard", time="Day")
>>> weirdUnits.time ‘Day’ |
||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||
BritishUnits = Units (system="FPS") |