Nominal: Difference between revisions

From ASCEND
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 12: Line 12:
</source>
</source>


See also [[Scaling]].
See also [[Scaling]], [[lower_bound]], [[upper_bound]], [[default]].


[[Category:Syntax]]
[[Category:Syntax]]

Latest revision as of 07:21, 5 July 2011

The nominal attribute of a real variable in an ASCEND model is used to set the variable's scaling.

Usage:

d_sun IS_A distance; (* distance from Earth to Sun *)
METHODS
METHOD default_self;
   (* set the nominal value of x to 8 light-seconds *)
   x.nominal := 1{LIGHT_C} * 8{s};
END;

See also Scaling, lower_bound, upper_bound, default.