Dear users,<div><br></div><div>I am quite new here and I am trying to simulate a solar-hydrogen/battery system that comprise of photovoltaic (PV) panels, PEM fuel cell, PEM electrolyser and battery. I am currently having trouble to assign the appropriate controller to the system for example:</div><div><br></div><div>1. To charge the battery when there is excess energy from the solar.</div><div><br></div><div>2. To generate hydrogen when the battery's SOC is low.</div><div><br></div>3. To turn on the PEMFC when the battery's SOC is low and hydrogen level is high.<div><br></div>Based on the example exists in TRNSYS, the system is using a Master Controller (type 105a ) but apparently the system I am using does not have diesel generators or wind generators.<span></span><div><br></div><div>Also, if I need to use the 'Equation' in the simulation, how can I translate the if-else statement in TRNSYS (for instance, how do I use the MAX, MIN, AND, and etc. statement to reflect the conditions above?).</div><div><br></div><div>Apology for my questions as I have read the manual and searching for relevant papers/examples online about this but I still could not find reliable resources that can assist me on this matters.</div><div><br></div><div>Your kind response would be very much appreciated. Thank you in advance.</div><div><br></div><div>Regards,</div><div>Asma</div><div><br></div><div><br></div><br><br>-- <br><div dir="ltr"><div><div><font size="2" face="arial, helvetica, sans-serif">Regards,</font></div><div><font size="2" face="arial, helvetica, sans-serif">Asma</font></div><div><font face="times new roman, serif" size="2"><br></font></div><div><font face="times new roman, serif" size="2">-------------------------------</font></div><div dir="ltr"><b><i><font face="times new roman, serif" size="2">Asma Mohamad Aris</font></i></b><div><font face="times new roman, serif">PhD Student</font></div><div><font face="times new roman, serif">School of Aerospace, Mechanical and Manufacturing Engineering (SAMME),</font></div><div><font face="times new roman, serif">RMIT University, </font><span style="font-family:'times new roman',serif">Melbourne, Australia.</span></div></div></div></div><br>