fpt and WinFPT Reference Manual - Command-line Commands
| SimCon Home | Ref Manual Home |
UNITS
Syntax:
[:] <string> :: <symbol> {, <symbol>}
Function:
Specifies the physical units of the named symbols. The units name is written as a quoted string. The symbols must be real or complex, and may be scalar or array objects. The units are used to report the names of the units by the SHOW UNITS and CHECK UNITS commands.
The symbol may be specified:
All lives of the specified variables will have the units specified (Please see the SHOW LIVES command).
Note that the names of units are case-sensitive.
Where to Use this Command
| Operating system command line | Yes |
| Configuration file, config.fsp | Yes |
| Specification (fsp) files, *.fsp | Yes |
| Interactively, to FPT> prompt | Yes |
| Interactive command files | Yes |
| Embedded in the Fortran code | Yes |
Examples
! heli_units.fsp 23-Jun-07 BTF % units : "seconds" :: time, dt % units : "feet" :: blade_len, blade_el_len % units : "foot-slugs" :: blade_tq
See Also
Copyright ©1995 to 2025 Software Validation Ltd. All rights reserved.