[TRNSYS-users] HOW TO AVOID DIVISION BY ZERO?
Matt Duffy
duffy at tess-inc.com
Fri Mar 6 14:49:59 PST 2009
Dear Ricardo,
Yes, you do indeed have to get creative with the denominator in the
equation. I sometimes use the following to prevent that.
fraction=max(m_dot_OfficeCoil,0)/max(m_toCoilsNow,0.00001)
This example supplies the fraction to a diverter outlet.
Best regards,
Matt Duffy
Technical Support Team
Thermal Energy System Specialists
22 N Carroll, Suite 300
Madison, WI 53703
608.274.2577
duffy at tess-inc.com
----- Original Message -----
From: "Ricardo Gallegos" <ricardogallegoso at gmail.com>
Sent: Fri, March 6, 2009 13:04
Subject:[TRNSYS-users] HOW TO AVOID DIVISION BY ZERO?
Hi you all,
I know this is a very simple question, but I amm stuck on it , pleqase help.
I try to calculate the efficiency of a collector field simply by dividing
useful gain by the total irradiance on the collector's plane, but obviously
this should be made only when the denominator i snot zero. I tried some
logical operations in an equation but cannot get it.
Any help will be more tha welcome
Ricardo Gallegos
Universidad Autonoma de Baja California
_______________________________________________
TRNSYS-users mailing list
TRNSYS-users at cae.wisc.edu
https://www-old.cae.wisc.edu/mailman/listinfo/trnsys-users
----- End of original message -----
More information about the TRNSYS-users
mailing list