Note that the following setup is for Windows OS
The following are the overall requirements. Those topics will be discussed in depth in this document
- A professional SimScale Account with Pedestrian Wind Comfort (PWC) simulation capability
- API access, with a valid API Key
- A SimScale project with PWC results
- Administration privileges on your local PC for installation
- Python > v3.6
- SimScale External Building Aerodynamics module (https://github.com/SimScaleGmbH/external-building-aerodynamics)
- Rhino > 6.0 + Grasshopper Plugin for Rhino (comes default with Rhino > 6.0)
- Ladybug > v1.2.0
- You need to be logged in as administrator of your computer during the following installation. Some of these write a path file which will be directly called from the command line, and this is possible only when you are logged in as the administrator.
- Get latest Python3 release and install.
- Go back to the installer, and start the application
- Once loaded, choose to modify the installation
- On the Optional Features panel leave as is and select next
- On the Advanced Options panel, check Add Python to environment variables
SimScale API - Reference
To allow grasshopper to 'talk' to SimScale we need to give it permission. Much like you are expected to log in using a user name and password in SimScale, the SimScale API asks for a URL and a Key. We can set this in two ways, via a yaml file in your home directory (easiest) or by setting environment variables on your PC (recommended).
- In the CMD window, type the command:
echo %HOME%
The reply will probably be something likec:\Users\<your user name>
- Copy the file from here and place it in the directory echoed in the above step.
- Open the file in a text editor and replace the key so it is your key, that was sent to you.
prod_api_keys:
SIMSCALE_API_URL: "https://api.simscale.com"
SIMSCALE_API_KEY: "Your API Key"
- Save and close the file
-
Set the environment variables: Search for Advanced System Settings from your Windows menu > Environmental Variables > Add new User Variables as follows. Note: You will receive the API key in a separate mail
Variable Name Variable Value SIMSCALE_API_KEY Your API Key SIMSCALE_API_URL https://api.simscale.com -
you can test you variable by typing the following command into a new command line terminal, it should return your api key.
echo %SIMSCALE_API_KEY%
If it instead returns%SIMSCALE_API_KEY%
you should revisit this step.
SimScale External Building Aerodynamics module - GitHub reference
- Install some git client, e.g. https://desktop.github.com/
- To install the main module, type the following commands in the CMD window.
pip install GitPython wheel
pip install git+https://github.com/SimScaleGmbH/external-building-aerodynamics.git
- You can test the installation by typing
simscale-eba --help
into the CMD window, you should see a response similar to the following:
Usage: simscale-eba [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
Commands:
cast-ordinate
cast-speed
download-pwc-results
get-direction
set-api-variables
- Here are some example files, try the simple_result_vis.gh to begin with, this will simply visualise wind speed in rhino.
- You can open the buildings.3dm model in rhino
- Open the simple_result_vis.gh in grasshopper
- Copy this project into your dashboard
- In the Download component:
- Change the project name to what you renamed the project with
- Change the Simulation name if needed, UK for example.
- Change the Run name if required, 16 direction for example
- Put a path to somewhere in your computer you can download results to, we recommend making a new directory for each project.
- Toggle the Boolean toggles to true
- Open Rhino
- In the Command line (above the toolbar) type Grasshopper (GH) to open the plugin.
- Open the GH file that was prepared by Darren (SimScale) simple_humantosky_utci.gh. You can find this file in the repo Here
- The Panels marked in yellow are the ones where modification is required. For instance the first panel is the one where the weather file needs to be imported. You can select the file directly from the website like here. Simply right click on the desired zip file and select 'copy link address'. Note : In the beginning, make sure to Toggle all booleans to be _ False. _ Once you complete the steps (for instance, wind information), then toggle the booleans one-by-one.
- The next Panels are to define the wind data. As you see below, the first panel is to enter the project name. Make sure to key in the exact name as in your SimScale project. The second panel is the simulation name exactly as in the project (for instance 'Pedestrian Wind Comfort')'. The third panel is the run name ('for example 'Run 1'). The last panel is the location in your local machine where intermediate results will be stored.
- The next manual entry is the resolution. For the first trial, have a very coarse resolution like 50 (equivalent of 50 m). Once we have the initial trial, then for the final version it is advisable to have resolution like 5m.
- The last manual entry is to obtain the geometry. In order to do this, select the main Rhino window and open the CAD file. You can now go back to the GH environment, right click on the Geo field and select one or multiple files.
- Once all of the computation is done, you can navigate to the last field "Heatmap". Right click on the Heatmap and select Preview. This will display the UTCI plot along with the file inside Rhino.