Dr. Bina,
There are two kinds of division by zero errors. If you're getting one that is being reported by TRNSYS in the error/warning log then make sure that any equations you have in your input file are written like:
myEquation = 1/MAX(myVariable,0.)
The other kind of division by zero error is an ugly unhandled one that comes up in a popup window over top of your online plotter. If that is the kind that you are getting then please send the project and any additional files needed to run it to your distributor. They'll need to get into the code to find the cause of the error.
kind regards,
David
Dear Dr. David;Thank you so much for your reply. I finally found a way but still does not work for the cooling condition. I made seasonally and hourly forcing files and connected them as an input file to my building (as you mentions in this email also). But unfortunately for cooling give the error of division by zero...Another way is using an excel file but again in the cooling does not work and I think it is because of the zeros in the days, weekends, and no airconditioning seasons.
Best RegardsSaeid Mohammadzadeh Bina, Dr. (Eng.)-------------------------------------------------Akita University
Graduate school of International Resource Sciences.
1-1 Tegata gakuen-machi, Akita 010-8502, JapanTel: +815068665026 (Japan)+989141011757 (Iran)E-mail: d9515254@s.akita-u.ac.jp-------------------------------------------------
On Thu, Aug 13, 2020 at 11:32 PM David BRADLEY <d.bradley@tess-inc.com> wrote:
Dr Bina,
If you have access to the TESS Applications Library, you can define such schedules using the Types in that library. In TRNBuild you will need to select that the schedule values will come from INPUTS instead of from SCHEDULES that are defined inside TRNBuild.
best,
David
On 08/12/2020 23:12, saeid mohammadzadeh via TRNSYS-users wrote:
Hello dear TRNSYS users;
I have a question regarding the schedule for heating and cooling:Firstly, I want to calculate the heating and cooling loads using the energy balance method (just on the heating the cooling buttons) based on the following time table:For weekdays from 8 to 18 (either cooling or heating);For the weekends off (either cooling or heating);From Nov. to April "Heating";From Jul. to Sep. "Cooling".Secondly, I would like to use this schedule and also thermostat (either schedule or zone temperature is 1 for heating or cooling) to command the airconditioning system that I will add later.
And another issue, which is not important now, on weekdays later I want to use complex timing (8 to 18 full occupancy and other hours ratio of office workers).
Best Regards
Saeid Mohammadzadeh Bina, Dr. (Eng.)-------------------------------------------------Akita University
Graduate school of International Resource Sciences.
1-1 Tegata gakuen-machi, Akita 010-8502, JapanTel: +815068665026 (Japan)+989141011757 (Iran)E-mail: d9515254@s.akita-u.ac.jp-------------------------------------------------
_______________________________________________ TRNSYS-users mailing list TRNSYS-users@lists.onebuilding.org http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org-- *************************** David BRADLEY Principal Thermal Energy Systems Specialists, LLC 3 North Pinckney Street - suite 202 Madison, WI 53703 USA P:+1.608.274.2577 F:+1.608.278.1475 d.bradley@tess-inc.com http://www.tess-inc.com http://www.trnsys.com
-- *************************** David BRADLEY Principal Thermal Energy Systems Specialists, LLC 3 North Pinckney Street - suite 202 Madison, WI 53703 USA P:+1.608.274.2577 F:+1.608.278.1475 d.bradley@tess-inc.com http://www.tess-inc.com http://www.trnsys.com