[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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@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

 

subscribe to our newsletter

Twitter l Facebook l Youtube l LinkedIn

 

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.