12.07.2015 Views

DOE-2 Reference Manual Version 2.1 - DOE2.com

DOE-2 Reference Manual Version 2.1 - DOE2.com

DOE-2 Reference Manual Version 2.1 - DOE2.com

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Whenever the U-name of a parametric keyword is encountered, as a valuefor a subsequent keyword, the value of that parametric keyword is substitutedas the value for the keyword. Note: Only keyword values can be changed withPARAMETER. U-names of commands-cannot be changed with PARA~lETER.Two types of values may be assigned to a parametric keyword, the first ofwhich is a numeric quantity. In addition to the direct substitution of theparametric value as the value for a keyword, a numeric parameter may also bemultiplied by a second numeric quantity when assigned to a keyword. This isaccomplished by entering the word TIMES immediately after the parametrickeyword U-name, followed by a number.Example:INPUT LOADSPARAMETERPI = 10WI = WINDOWWIDTH = PIW2= WINDOWWIDTH = PI TIMES 1.1ENDCOMPUTE LOADSSTOPThe above instructions would cause the width of windows WI and W210.0 feet and 11.0 feet, respectively.to beParametric keywords may also be assigned non-numeric values. Wheneverthe value being input for a non-numeric keyword, such as U-name, subcommand,or code-word type keywords, is detected to be a parametric keyword U-name, thevalue of that parameter is used as the value for the keyword.Example:PARAMETERP2 = COLDESTP3SYSTEM-CONTROLSIWSI ..HEAT-CONTROL = P2SCHEDULE THRU DEC 31, WEEK-SCHEDULE = P3 ..The above instructions would cause the value COLDEST to be assigned toHEAT-CONTROL and week-schedule WSI to be assigned to WEEK-SCHEDULE.Rules: 1. Although a parametric keyword U-name may be longer than 16characters, only the first 16 characters are significant to theprogram.2. A parametric keyword U-name must be unique from all otherparametric keyword U-names and non-parametric keyword U~names.II .21 (Revised 5/81)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!