Welcome to Adams/Solver Subroutines - Kxcad.net
Welcome to Adams/Solver Subroutines - Kxcad.net
Welcome to Adams/Solver Subroutines - Kxcad.net
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
62<br />
<strong>Adams</strong>/<strong>Solver</strong><br />
Calling Sequence<br />
CALL GTUNTS (exist, scales, units)<br />
Output Arguments<br />
exist A logical variable that, if true, indicates units were set for the model.<br />
scales A double-precision array containing conversion fac<strong>to</strong>rs <strong>to</strong> go from model<br />
units <strong>to</strong> SI for time, length, force, and mass.<br />
units A character*2 array containing two-letter abbreviations for the model units<br />
for time, length, force, and mass.<br />
Example For example, if you have an Aero_Force defined in New<strong>to</strong>ns, and you want <strong>to</strong> convert <strong>to</strong> model<br />
units, you must divide your force by scales(3).<br />
DOUBLE PRECISION SCALES(4)<br />
LOGICAL EXIST<br />
CHARACTER*2 UNITS(4)<br />
INTEGER TIME, LENGTH, FORCE, MASS PARAMETER<br />
(TIME=1,LENGTH=2,FORCE=3, MASS=4)<br />
CALL GTUNTS(EXIST, SCALES, UNITS)<br />
Model_Force = Aero_Force/SCALES(FORCE)<br />
To compute a spring in MKS units, give disp, flen, and K in model units:<br />
MKS_F = ((flen - disp)*K)*SCALES(FORCE) VSIN<br />
Caution: GTUNTS uses the UNITS statement in your dataset <strong>to</strong> determine the units being used in<br />
your model. When a UNITS statement is missing, or if you use a unit consistency fac<strong>to</strong>r<br />
(UCF), GTUNTS is not able <strong>to</strong> determine time, length, mass, or force units. In that case,<br />
GTUNTS returns:<br />
The HAVSIN general subroutine evaluates a haversine function.<br />
Use<br />
Called By<br />
• exist = FALSE<br />
Any user-written subroutine<br />
• scales = 1.0, 1.0, 1.0, 1.0<br />
• units = US