[TRNSYS-users] Using real-Time Weather data

David Sengl david.sengl at technikum-wien.at
Fri Feb 25 01:48:31 PST 2022


Dear David,

 

thank you for your quick response!

I was hoping to find a solution without writing my own type or collecting data, but already thought that it would be complicated.

The only problem is, that the data we collect is also depending on the output of the simulation, so it‘s a loop of data and therefore the collection time can not be too long.

But I will try and write my own type or modify Type9 in order to create the inputs i need.

 

Thank you for your help!

 

Best Regards,

David

 

 

Von: David BRADLEY <d.bradley at tess-inc.com> 
Gesendet: Donnerstag, 24. Februar 2022 16:26
An: TRNSYS users mailing list at OneBuilding.org <trnsys-users at lists.onebuilding.org>
Cc: David Sengl <david.sengl at technikum-wien.at>
Betreff: Re: [TRNSYS-users] Using real-Time Weather data

 

David,

  What you are proposing is quite feasible. Trnsys certainly does not require that weather data be provided hourly. If you had a file containing minute data then you could read it in using Type9. Your case is a bit different of course and I think you'd need to write a component to collect the incoming data and then just put it into a data structure that would be passed as outputs of your Type. You might also need to add some code to your Type so that when called it sits and waits until it gets more data from its incoming source. Last fall I had to do something similar. In my case some data was coming in from another software tool. I had to wait until that data was completely written into a file before I could read it all in and set it as outputs. Transferring data by files is slow and clumsy; there are far more efficient ways of doing it. In our case we opted for "easy to understand" over "efficient" because it was just a proof of concept.

kind regards,

 David

 

On 02/23/2022 07:42, David Sengl via TRNSYS-users wrote:

Dear TRNSys-Users,

 

for my project i receive data via a MQTT-connection in order to simulate a building. This data-connection also includes real-time weather data from a sensor which should be used to compare the simulation with the real building. Is it possible to read the real-time data directly into a weather-data without creating a file? Type 15 and 99 require a file. As the data is collected every Minute it would be great to also simulate each timestep and not to wait for 60 minutes, create a file and then simulate with the given file.

 

Thanks in advance!

 

Best regards,

David





_______________________________________________
TRNSYS-users mailing list
TRNSYS-users at lists.onebuilding.org <mailto:TRNSYS-users at lists.onebuilding.org> 
http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org

-- 
***************************
David BRADLEY
Principal
Thermal Energy System Specialists, LLC
3 North Pinckney Street - suite 202
Madison, WI  53703 USA
 
P:+1.608.274.2577
d.bradley at tess-inc.com <mailto:d.bradley at tess-inc.com> 
 
http://www.tess-inc.com
http://www.trnsys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20220225/d221d081/attachment.htm>


More information about the TRNSYS-users mailing list