[TRNSYS-users] Defining a Global Variable in User Created Components
Jeff Thornton
thornton at tess-inc.com
Fri Aug 26 08:30:48 PDT 2011
Aaron,You could use a COMMON statement in FORTRAN to automatically pass this information to the other components but that does, in some ways, defeat one of the basic ideas of TRNSYS: the ability to remain completely flexible. You could then only use those components together and never separately. A better idea would be to define the specific heat parameter in every model, use an equation block to set the specific heat:Equations 1Cp_Fluid=4.182Then in every model that uses the specific heat, simply change the units of the specific heat variable to string and enter the "value" as Cp_Fluid. Every time you change fluids by updating the equation, the other components are automatically updated.Jeff Jeff Thornton President - TESS, LLC 22 North Carroll Street - Suite 370 Madison WI 53703 USA Phone: 608-274-2577 Fax: 608-278-1475 E-mail: thornton at tess-inc.com Web: www.tess-inc.com ----- Original Message -----From: "Aaron J. Danenberg" >;danenberg at h!
artford.edu
_______________________________________________
TRNSYS-users mailing list
TRNSYS-users at cae.wisc.edu
https://mailman.cae.wisc.edu/listinfo/trnsys-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20110826/3bb14752/attachment-0005.htm>
More information about the TRNSYS-users
mailing list