[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [TRNSYS-users] HOW TO AVOID DIVISION BY ZERO?
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@tess-inc.com
----- Original Message -----
From: "Ricardo Gallegos" <ricardogallegoso@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@cae.wisc.edu
https://www-old.cae.wisc.edu/mailman/listinfo/trnsys-users
----- End of original message -----