<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Toni,</p>
<p> I am not aware of a component that will read ahead in a weather
data file. You could of course modify Type15 to do so (or write
your own component to do so). You might also be able to run a
simulation in which you read the weather data and write back out
the critical pieces of it that you want (ambient temperature and
solar). Then modify that file so that it is shifted by 24 hours.
From then on you can use a Type9 to read the shifted weather data
in parallel with whatever component you're using to read the
present weather data. There are components available that will
give you a running average over the past N hours. Because the data
is shifted, what it thinks of as the "past" N hours are in fact
the "next" N hours. <br>
</p>
<p> If you do this, be careful not to run the shifted solar data
through a radiation processor (such as Type16) but instead deal
only with the raw (uninterpolated) data. The reason is that Type16
uses the present simulation time to determine the sun's present
position. If you run the modified solar through a radiation
processor you'll be using tomorrow's data with today's sun
position. <br>
</p>
<p> Also a slight caution in that you're going to get a perfectly
accurate "forecast" of the next day's weather. Once or twice in my
experience I have seen days when the forecasted weather did not
turn out quite the way it was supposed to. You might want to add
some stochastic element to your forecast so that it is not always
100% accurate. There are some random number generator components
in the TESS Utility library that can help in this regard (though
not directly)</p>
<p>kind regards,</p>
<p> David</p>
<p><br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 06/30/2022 10:16, Toni Calabrese via
TRNSYS-users wrote:<br>
</div>
<blockquote type="cite"
cite="mid:GV0P278MB0734926F6A306D70E60DF519E9BA9@GV0P278MB0734.CHEP278.PROD.OUTLOOK.COM">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
<style>@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Arial",sans-serif;
mso-fareast-language:EN-US;}a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0065A3;
text-decoration:underline;}a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#6E1C50;
text-decoration:underline;}span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Arial",sans-serif;
color:windowtext;}.MsoChpDefault
{mso-style-type:export-only;
font-family:"Arial",sans-serif;
mso-fareast-language:EN-US;}div.WordSection1
{page:WordSection1;}</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:10.0pt" lang="EN-US">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt" lang="EN-US">for
a project we are interested on weather forecast analysis in
ordert o increase PV self consumption. I would like to
understand if there is the possibility (with a Type?) to
calculate in Trnsys average values of variables (ambient
temperature or solar irradiation) looking in the future
(24h+ for example). What I would need is in each timestep to
have the possibility to compare a variable with the average
of that variable considering the next N timesteps. Someone
could help me?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt" lang="EN-US"><o:p> </o:p></span></p>
<div class="MsoNormal" style="text-align:center" align="center"><span
style="font-size:10.0pt;color:#1F497D;mso-fareast-language:DE-CH">
<hr width="100%" size="2" align="center">
</span></div>
<p class="MsoNormal" style="margin-top:4.0pt"><b><span
style="font-size:10.0pt;color:#1F497D;mso-fareast-language:DE-CH">Toni
Calabrese</span></b><span
style="font-size:10.0pt;color:#1F497D;mso-fareast-language:DE-CH">,
MSc.</span><span
style="font-size:10.0pt;color:#1F497D;mso-fareast-language:DE-CH"><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;color:#1F497D;mso-fareast-language:DE-CH">Wissenschaftlicher
Projektleiter<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;color:#1F497D;mso-fareast-language:DE-CH"><a
href="mailto:toni.calabrese@spf.ch" moz-do-not-send="true"><span
style="color:#0065A3">toni.calabrese@spf.ch</span></a> |</span><span
style="font-size:10.0pt;color:#8C195F;mso-fareast-language:DE-CH">
</span><span
style="font-size:10.0pt;color:#1F497D;mso-fareast-language:DE-CH"><a
href="mailto:toni.calabrese@ost.ch" moz-do-not-send="true"><span
style="color:#0065A3">toni.calabrese@ost.ch</span></a></span><span
style="font-size:10.0pt;color:#8C195F;mso-fareast-language:DE-CH"><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family:"Calibri",sans-serif;color:#8C195F;mso-fareast-language:DE-CH"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;color:#1F497D;mso-fareast-language:DE-CH">T
+41 58 257 4827<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;color:#1F497D;mso-fareast-language:DE-CH"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;color:#002060;mso-fareast-language:DE-CH">SPF
Institut für Solartechnik<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;color:#002060;mso-fareast-language:DE-CH">OST
– Ostschweizer Fachhochschule<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;color:#002060;mso-fareast-language:DE-CH">Oberseestr.
10 | CH-8640 Rapperswil | Switzerland |
</span><span style="color:red;mso-fareast-language:DE-CH"><a
href="http://www.spf.ch/" moz-do-not-send="true"><span
style="font-size:10.0pt;color:red;text-decoration:none">www.spf.ch</span></a></span><span
style="font-size:10.0pt;color:#002060;mso-fareast-language:DE-CH"> |
</span><span style="color:red;mso-fareast-language:DE-CH"><a
href="http://www.ost.ch/" moz-do-not-send="true"><span
style="font-size:10.0pt;color:red;text-decoration:none">www.ost.ch</span></a></span><span
style="mso-fareast-language:DE-CH"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:DE-CH"><o:p> </o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
TRNSYS-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:TRNSYS-users@lists.onebuilding.org">TRNSYS-users@lists.onebuilding.org</a>
<a class="moz-txt-link-freetext" href="http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org">http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
***************************
David BRADLEY
Principal
Thermal Energy System Specialists, LLC
3 North Pinckney Street - suite 202
Madison, WI 53703 USA
P:+1.608.274.2577
<a class="moz-txt-link-abbreviated" href="mailto:d.bradley@tess-inc.com">d.bradley@tess-inc.com</a>
<a class="moz-txt-link-freetext" href="http://www.tess-inc.com">http://www.tess-inc.com</a>
<a class="moz-txt-link-freetext" href="http://www.trnsys.com">http://www.trnsys.com</a></pre>
</body>
</html>