[TRNSYS-users] Error: division by zero
Jeremy Osborne
jeremy.osborne at energyae.com
Wed May 4 04:59:44 PDT 2016
HI Hsien,
Add an insignificant value in the denominator
[ Eff_energy = GT(m_H2,0)*(P_load+Q_heating+Q_DHW+Q_cooling)/(m_H2*LHV+0.000000001) ]
Cheers,
Jeremy
Jeremy Osborne
Director
Energy Analysis & Engineering - Enabling innovation for a sustainable future
T: +61 2 8003 4323 | M: +61 4 000 63327 | E: jeremy.osborne at energyae.com<mailto:jeremy.osborne at energyae.com>
608 Harris St Sydney NSW 2007 Australia | http://www.energyae.com<http://www.energyae.com/>
Online TRNSYS tutorials
https://learn.trnsys.guru/
From: TRNSYS-users [mailto:trnsys-users-bounces at lists.onebuilding.org] On Behalf Of Hsein Moussawi
Sent: Wednesday, 4 May 2016 9:43 PM
To: trnsys-users at lists.onebuilding.org
Subject: [TRNSYS-users] Error: division by zero
Hello there,
I am trying to compute certain equation, but I am constantly getting the following error:
[ TRNSYS Message 5 : The TRNSYS Program attempted to evaluate an EQUATION that has a division by zero. Please check the EQUATION formulation and re-run the simulation
Reported information : EFF_ENERGY ]
I made sure to calculate the equation only when the denominator is positive as follows:
[ Eff_energy = GT(m_H2,0)*(P_load+Q_heating+Q_DHW+Q_cooling)/(m_H2*LHV) ]
Any help would be appreciated...
Regards.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20160504/7c008e5f/attachment.htm>
More information about the TRNSYS-users
mailing list