[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TRNSYS-users] Error: division by zero



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@energyae.com

608 Harris St Sydney NSW 2007 Australia | http://www.energyae.com

 

Online TRNSYS tutorials

https://learn.trnsys.guru/  

 

From: TRNSYS-users [mailto:trnsys-users-bounces@lists.onebuilding.org] On Behalf Of Hsein Moussawi
Sent: Wednesday, 4 May 2016 9:43 PM
To: trnsys-users@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.