1

How to run openstudio model using CMD

I am using command prompt on a windows system to run openstudio model but it gives a error token Command > openstudio run -w "D:\Code_output\Conference_room_copy.osm" Error executing argv: ["run", "-w", "D:\Code_output\Conference_room_copy.osm"] Error: 783: unexpected token at 'OS:Version,

Rocker's avatar
41
Rocker
asked 2023-04-03 23:58:49 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

You need an OpenStudio Workflow (OSW) to run a model from command line. Using the OpenStudioApplication is the simplest to create one with measures etc (if your model is at /path/to/mymodel.osm, then at /path/to/mymodel/in.osw you have the workflow file).

The simplest one would look like this:

{
  "weather_file": "myweatherfile.epw",
  "seed_file": "mymodel.osm",
}
Julien Marrec's avatar
29.7k
Julien Marrec
answered 2023-04-04 08:02:29 -0500
edit flag offensive 0 remove flag delete link

Comments

1

I think the OSW file from the OS App gets named workflow.osw instead of in.osw. Totally agree with Julien on the rest.

Craig Simmons's avatar Craig Simmons (2023-04-05 08:19:45 -0500) edit

Thank you Julien and Craig!!

Rocker's avatar Rocker (2023-04-06 07:53:00 -0500) edit
add a comment see more comments