Thunderhead Engineering Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Forum moved to https://forum.thunderheadeng.com

Author Topic: BAT  (Read 211 times)

faker

  • New Member
  • *
  • Posts: 6
    • View Profile
BAT
« on: July 16, 2019, 04:52:25 am »

I have created many FDS models that I want to compute with pyrosim, but manual operations are not very convenient. I want to use "BAT" to write a program to execute them continuously. I don't know if you have any experience in this area. Thank you.
Logged

Bryan Klein

  • Thunderhead
  • *****
  • Posts: 111
    • View Profile
    • Thunderhead Eng. Site
Re: BAT
« Reply #1 on: July 19, 2019, 03:00:57 pm »

Many people write scripts to run a collection of FDS files from the command line.
Thunderhead does not provide support for this use case, but it's not uncommon to run simulations this way.

Here is a basic example from https://groups.google.com/d/msg/fds-smv/icWxJRIWZNA/ysnq9JC6yXAJ

Quote
if you are running on windows then create a file named runcases.bat (using the .bat extension is the key).

Put in this file:

fds case1.fds
fds case2.fds
....
fds casen.fds

To run this "batch" file type runcases at a command line.

You would need to add the path to fds.exe (bundled with PyroSim) into your system environment variables.
For the default installation, the path to fds.exe is "C:\Program Files\PyroSim 2019\fds".

Logged