Welcome to the TRNSYS Users Forum.

The forum is a place where people can interact and have discussions about different topics involving the use of the TRNSYS software package. Here you can post topics for discussion or questions on using TRNSYS and get advice from other users or TRNSYS experts. This forum is not intended for detailed technical support. Users should contact their distributor’s hotline for such assistance.

Some tips for success on using the forum:

  • Follow the Forum Rules posted in Forum Administration.
  • There are categories for different types of topics and questions. Post your topic or question into the proper category.
  • Before posting a topic or question search the existing topics  (and the TRNSYS Users listserv archive or Post archive) to see if a similar topic or question has already been answered.
  • Use a descriptive topic name. Don’t use attention getting subjects, they don’t get attention and only annoy people.
  • State the version of TRNSYS and which add-ons your are using.
  • Include enough specific details for your topic of question to be answered. Just posting “Why am I getting an error?” without describing the specific error and what you are trying to do when you get the error will not receive a response that fixes your issue.
  • Remember when people help you, they are doing you a favor. Be patient, help people out by posting good descriptions of what you need help with, and be polite even if a response does not solve your issue.
  • Moderators may edit your post for clarity or move your topic to a more appropriate category.

Notifications
Clear all

parallel simulation with python

1 Posts
2 Users
1 Reactions
342 Views
1
Topic starter

Dear TRNSYS Support Team,

I hope this message finds you well.

I am currently working on a project that requires running more than 300,000 simulations using TRNSYS. In order to optimize the total computation time, I was wondering if TRNSYS supports running simulations in parallel.

My computer has sufficient resources, so hardware limitations are not an issue. My main concern is whether TRNSYS can handle multiple simulations simultaneously, and if so, are there any specific settings or best practices I should follow to implement this efficiently?

Thank you very much for your support, and I look forward to your guidance.

1 Answer
0

@am_hassan

I will preface the following by saying that I am not an expert in this subject at all! However, there are a number of cases in which TRNSYS already gets run in parallel so it is certainly possible.

Typically the way this is done is to create a management tool that will generate a TRNSYS input file specific to the next run(s) that will be launched and then which will call the TRNSYS executable (.\Trnsys18\Exe\TRNExe64.exe) with the name of the next input file to be run.

I think there are basically two issues that need to be sorted out; one on the TRNSYS side and the other on the simulation management tool side. My experience comes from using TRNSYS with GenOpt. A number of the GenOpt algorithms cause the TRNSYS engine to be called a whole lot of times in parallel and it is on the GenOpt side that resource management gets done (or else it simply gets left to the operating system to worry about allocating resources). The normal TRNSYS interface (Simulation Studio) is not involved except to develop the structure of the system being modeled.

On the TRNSYS side of a GenOpt run, there is a template TRNSYS input file (usually originally created by Simulation Studio) that gets copied and modified by the simulation run management tool. The modifications typically come down to changing whatever parameters or variable values are appropriate for the next run(s) that will be started. If your simulation generates output files then you can use the "" syntax when referring to file names so that the files don't get overwritten from one run to the next. In case you are not familiar if a filename starts with (as in .out or (results).xls) then the name of the TRNSYS input file will be appended on to the name of the output file. So if your input file is called mySimulation.dck and you have two output files that are referred to as _energyResults.out and .whatever then your simulation will produce two output files called mySimulation_energyResults.out and mySimulation.whatever. 

kind regards,

 David 

Share: