<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body>
<p>George,</p>
<p> I think that you are on the correct track with putting the
parameter values into an external file that gets read during the
start time manipulations section. Your Type could take a parameter
that is the logical unit number of the data file containing the
values then use pretty standard Fortran "open" and "read" commands
to take the data from the file and insert it into whatever data
structure you want inside your Type. I'd suggest looking at Type15
for some ideas on implementing the "open" and "read" commands.</p>
<p>kind regards,</p>
<p> David</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 07/12/2021 07:44, George
Kyriakarakos via TRNSYS-users wrote:<br>
</div>
<blockquote type="cite"
cite="mid:000001d7771b$9e1975d0$da4c6170$@aua.gr">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<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;}@font-face
{font-family:"PrimaSans BT\,Verdana\,sans-serif";}p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",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">Hi to all!<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am trying to develop a new type in
TRNSYS. I have done this multiple times in the past
successfully but this time I have 512 parameters to pass in
the type (essentially an array of 16 lines x 32 columns). This
data is calculated externally in MS Excel prior to running any
simulation in TRNSYS.<o:p></o:p></p>
<p class="MsoNormal">One approach I have thought about is to
make all data in two columns in excel, use that file as an
external file to the new type and during "Start Time"
Manipulations to read the data and store them in the array I
ultimately want to be accessible in the new type. If it gets
in there it is easy to manipulate the data / include new
arrays / etc. I would follow TYPE90 as a template in
accomplishing this. This is not optimal though since I will
have a very long list of data (512 lines) instead of having
much less lines with more columns (this makes it easier to
check as well).<o:p></o:p></p>
<p class="MsoNormal">Is there any way to read a multi-columned
external file? Is there a tutorial of some sort or a type I
could follow as a template to develop this?<o:p></o:p></p>
<p class="MsoNormal">Do you maybe have another suggestion on how
to implement this?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thank you in advance,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">George<o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"PrimaSans
BT\,Verdana\,sans-serif";color:black;background:white;mso-fareast-language:EL"
lang="EN-US">--<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"PrimaSans
BT\,Verdana\,sans-serif";color:black;background:white;mso-fareast-language:EL"
lang="EN-US">Dr. George Kyriakarakos, Agricultural Engineer</span><span
style="font-size:10.0pt;font-family:"PrimaSans
BT\,Verdana\,sans-serif";color:black;mso-fareast-language:EL"
lang="EN-US"><br>
<span style="background:white">PhD, MSc Energy Systems &
Renewable Energy Sources</span><br>
<span style="background:white">Agricultural University of
Athens,</span><br>
<span style="background:white">Dept. of Natural Resources
and Agricultural Engineering</span><br>
<span style="background:white">Iera odos street, 75, Athens
11855, Greece</span><br>
<span style="background:white">Tel. +30.210.5294046
(direct), Fax:+30.210.5294023</span><br>
<span style="background:white">Mobile +30.6942.046895</span><br>
<span style="background:white">e-mail: <a
href="mailto:gk@aua.gr" moz-do-not-send="true"><span
style="color:#0563C1">gk@aua.gr</span></a><o:p></o:p></span></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"PrimaSans
BT\,Verdana\,sans-serif";color:black;background:white;mso-fareast-language:EL"
lang="EN-US">Skype: georgekyriak</span><span
style="color:black;mso-fareast-language:EL" lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></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 Systems 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>