[TRNSYS-users] How to accelerate running .dck files from the command line

David BRADLEY d.bradley at tess-inc.com
Fri Oct 28 07:05:36 PDT 2022


Joe,

  There isn't really a way to avoid all that initialization. It is the 
kernel reading and checking the input file and then getting all of the 
internal data structures set up so that they can be accessed by the Types.

kind regards,

  David


On 10/27/2022 14:26, Roberts Joseph Alexander via TRNSYS-users wrote:
>
> Hello all,
>
> As part of a master + slave simulation, I’m trying to run .dck files 
> from the command line as a python script as follows:
>
> /import subprocess/
>
> /subprocess.run([r"C:\Trnsys17\Exe\TRNExe.exe",r"C:\zGithub\ExampleTRNSYSmodel.dck","/h"])/
>
> The simulations are quite short (just a week or so), but I’ve noticed 
> the majority of the computational time is dedicated to some sort of 
> initialization, i.e. a 1 week simulation takes about 4 s, and a 2 week 
> simulation under 5 s. Is there any way I can shave down this time 
> (since making the simulations shorter has diminishing returns)?
>
> Many thanks,
>
> Joe
>
> *Joseph Roberts*
>
> *Eurac Research*
>
> **
>
> Institute for Renewable Energy
>
> *Tel* +39 0471 055 841
>
> _joroberts at eurac.edu_
>
> A. Volta Straße/Via A. Volta 13/A
>
> 39100 Bozen/Bolzano
>
> **
>
> Legal Seat
>
> Drususallee/Viale Druso 1
>
> I-39100 Bozen/Bolzano
>
> *www.eurac.edu <http://www.eurac.edu/>*__
>
> *subscribe to our newsletter 
> <https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsubscribe.newsletter2go.com%2F%3Fn2g%3D3kdnp69j-qh67lolj-9bg&data=05%7C01%7CJosephAlexander.Roberts%40eurac.edu%7C5636051dca7445218cf008da7c331f0e%7C9251326703e3401a80d4c58ed6674e3b%7C0%7C0%7C637958856248291146%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=2KFEYgYYr3CE7W967yJZyon4B8tgK1gACcMA8KrfsVw%3D&reserved=0>*__
>
> *Twitter 
> <https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.com%2Feurac&data=05%7C01%7CJosephAlexander.Roberts%40eurac.edu%7C5636051dca7445218cf008da7c331f0e%7C9251326703e3401a80d4c58ed6674e3b%7C0%7C0%7C637958856248447364%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=lAJLDz7yL4Gq3boV9d%2BRYPx4bMkaaWjjfNx%2BH44bPcc%3D&reserved=0> l 
> Facebook 
> <https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebook.com%2Feurac.research&data=05%7C01%7CJosephAlexander.Roberts%40eurac.edu%7C5636051dca7445218cf008da7c331f0e%7C9251326703e3401a80d4c58ed6674e3b%7C0%7C0%7C637958856248447364%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Vm1UP5O8G152r9AA4VIIJDNQdOudbkJUyhwv6j1wc8I%3D&reserved=0> l 
> Youtube 
> <https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.youtube.com%2Fuser%2FEURACtv&data=05%7C01%7CJosephAlexander.Roberts%40eurac.edu%7C5636051dca7445218cf008da7c331f0e%7C9251326703e3401a80d4c58ed6674e3b%7C0%7C0%7C637958856248447364%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=xEFeVAAvzZZqhDq%2B4miv3%2FaqSB3CV%2BCwN%2Bdep3A%2FB3U%3D&reserved=0> l 
> LinkedIn 
> <https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fcompany%2Feuracresearch&data=05%7C01%7CJosephAlexander.Roberts%40eurac.edu%7C5636051dca7445218cf008da7c331f0e%7C9251326703e3401a80d4c58ed6674e3b%7C0%7C0%7C637958856248447364%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=OYxfS90U1k1%2BsWDjFOVkDOsJ9JZONawtyF9fmiYf3mo%3D&reserved=0>*
>
> According to regulation (EU) 2016/679 this transmission is intended 
> only for the use of the addressee and may contain confidential 
> information. If you receive this transmission in error, please notify 
> the sender immediately by email and delete all copies of this message 
> and any attachments.
>
> Diese Nachricht ist im Sinne der Verordnung (EU) 2016/679 
> ausschließlich für den Adressaten bestimmt und kann vertrauliche 
> Informationen enthalten. Sollten Sie diese Nachricht irrtümlich 
> erhalten haben, bitten wir Sie, den Absender darüber unverzüglich per 
> E-Mail in Kenntnis zu setzen sowie die Nachricht und etwaige Kopien 
> und Anlagen zu vernichten.
>
> Ai sensi del Regolamento UE 679/2016 questo messaggio è ad uso 
> esclusivo del destinatario e può contenere informazioni riservate. 
> Qualora Le fosse pervenuto per errore, Le chiediamo gentilmente di 
> comunicarcelo immediatamente via e-mail ed eliminare qualsiasi copia e 
> allegato.
>
>
> _______________________________________________
> TRNSYS-users mailing list
> 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

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/20221028/2290334b/attachment-0001.htm>


More information about the TRNSYS-users mailing list