SIMPLE - Simulating for People
[SIM]ulating
for peo[PLE]
Thanks for your interest in SIMPLE, a simulation tool aiming to
satisfy the present needs of Building Performance Simulation. Long story short,
SIMPLE aims to:
- Allow for a holistic building performance simulation using best-practice algorithms for each domain
- Make it easier to account for the complex interactions between Humans and Buildings
- Make it possible to implement complex algorithms, such as Model Predictive Control.
- Be deployable in multiple environments, including Windows, Linux and Mac, the cloud, the browser (i.e., WebAssembly)
- Use modern languages, toolset, and aim for clarity of source code (I do my best...)
You can read more about this in the
"Do we need SIMPLE? section"
What to expect from this book?
For now this book has two parts:
- User guide: This part is written manually, and it is meant to help you learn and understand
SIMPLE. This part is mainly focused on users. For example, (in the future) it might help you migrate from other tools—if you wanted to—, to understand best building-modelling practices, and so on. If you are looking for information regarding math and equations, then you'd better be looking at the developer documentation (e.g., this). The developer documentation is meant not only for people who want to code but also for people who want to understand the internals ofSIMPLE. - Input/Output Reference guide: This is an automatically generated guide, updated every time the source code of
SIMPLE's input model is updated. This section is meant to be a reference guide, helping you find every object and property you can use in a model, and every value you can read and write from a control script.
What is SIMPLE?
First and foremost, SIMPLE is a building performance simulation tool that aims to satisfy
the present needs of this industry.
Digging deeper, SIMPLE can be seen from two perspectives.
- Historical perspective, referring to the motivations and drivers that determined its design and motivated me to develop it.
- Pragmatic perspective, associated with those cool features and benefits of
SIMPLEthat I have been finding during its development.
Arguably, these pragmatic benefits might be present in any modern simulation tool... but considering the low number of these, I guess they are pretty unique to
SIMPLEanyway.
SIMPLE's origins — It's the people, stupid
The development of SIMPLE was motivated by the results of my PhD Research.
In these studies, I investigated what is it that people—not building scientists
or architects or engineers—mean by and expect from a comfortable home. In a single sentence, my findings
suggest that our understanding of building physics far outpaces our knowledge of how people
interact with buildings. This gap is only going to widen unless we invest resources in understanding
humans.
Let me put it this way:
- Materials have been/will be getting better which means that, for instance, closed doors and windows are really good at preventing air leakage and heat transfer. Therefore, building controls and human behaviour—which define whether a window or door is open or closed—greatly impact the building's performance, and the health and comfort of the people in it.
- Software have been/will be getting better, meaning that we can—for instance—predict and understand the effects of an open/closed window better than ever before
- Our understanding of people is not catching up, meaning that we are not certain of whether windows and doors are open or not.
Note that point 3 is not suggesting that nothing has been done about understanding people. However, I would argue that our current tools to study people are not the best. This should be more clear later in this section.
This is a problem because buildings are built for people. Therefore, not understanding people implies not understanding the performance of buildings. Understanding when and why people choose to open windows requires tools that will let us properly research and evaluate human comfort and behaviour.
Below are the three main elements of SIMPLE that make it better at simulating buildings
for real people.
1. It was designed to allow for holistic simulations
The motivation for performing holistic simulations is kind of obvious: when people get into a room, they just feel it. In other words, people do not separate—as software and building scientists do—the Thermal from the Daylight from the Acoustic domains. This means that, if we want to truly incorporate people's behaviour and comfort into our simulations, we need to account for multiple domains at the same time, at run time.
At run time means that it is not enough to run three simulations (one for thermal, one for acoustic, one for lighting) without considering the interaction between these domains.
So far, SIMPLE is actually quite good at Lighting and Thermal simulation, even though this feature has not been
fully utilised. For instance, the following figure is evidence of how good it can calculate lighting
and how well it compares to Energy Plus in terms of temperature estimations.
| Lighting simulation | Thermal simulation |
|---|---|
![]() | ![]() |
In order to allow for holistic simulations, we developed an architecture where different modules would connect to a single—domain agnostic—api. This API is the SIMPLE Model, and it allows any developer to say "Hey, give me the temperature of this room" without knowing how this value was calculated. In a similar manner, it allows these developers to make available values for other modules to use.

2. It was designed to give some room for people's lives
People are not simple. They do not just say "it is cold, I will turn the heater on" in a deterministic manner. They take into account things like budget, bills, whether they are alone, and whether they have kids. Modelling this kind of behaviour calls for a much more flexible way of modelling control algorithms (yes, I am treating human behaviour as a control algorithm).
This is actually addressed in the same way as point 1 (i.e., Holistic simulations), in the sense that a new module could be created to deal with "Budget" or "Safety" and then use the same API to read and write values.
3. It was designed to travel in time
SIMPLE was designed with the purpose of acknowledging that people are constantly aware of their future.
This is kind of obvious (e.g., you put a jacket before going out, not after) but our simulation tools tend
to make it hard to implement this feature.
Allowing the simulation to travel in time is not trivial, as it means that—at every time step of the simulation—we need to estimate what will happen in the future and then return to the present.
From a simulation perspective, this implies
- Gathering a bunch of potential actions to take
- Execute each action, simulating some time into the future, record the results, and undo the changes.
- From the results of all actions, identify the best decision to take, if any.

SIMPLE deals with this challenge by separating the Simulation State (i.e., the values that
describe the physical state of the building and therefore change during the simulation) from the model (i.e., which
is constant throughout the simulation). From a software perspective, the structure representing
the model is immutable while the state is mutable.
The whole point of this architecture is that the Simulation State happens to be
a relatively small and cheap-to-copy structure (it is an array of floating point numbers).
This implies that during a simulation, we can create copy, then simulate, and then
destroy this copy without much loss of performance.
Beyond people — benefits of a modern tool
Having a modern simulation tool offers several benefits. However, it is important to also acknowledge the general benefits that come built-in from designing a tool that helps design buildings for people:
- Holistic simulations let us optimize multi-domain control algorithms that might lead to more optimal performance of buildings.
- Traveling in time gives us the chance to implement Model Predictive Control, at runtime, in production, as part of a real EMS system.
And, of course, there are other benefits.
1. It allows easily defining complex control algorithms
SIMPLE can ingest control algorithms as scripts. This allows for a much richer and flexible
way of writing algorithms than through schedules or other common methods.
let kids_bedroom = space("Kids Bedroom");
let kids_heater = hvac("Kids heater");
let kids_window = fenestration("kids window");
let window_is_open = kids_window.open_fraction > 0.0;
let inside_temperature = kids_bedroom.dry_bulb_temperature;
let is_cold = inside_temperature < 19.0;
let is_hot = inside_temperature > 25.0;
let outside_temperature = kids_window.front_temperature;
if is_hot && outside_temperature < inside_temperature {
if random() < 0.7 {
// 70% chance of opening windows
kids_window.open_fraction = 1.0;
}
} else if is_cold && outside_temperature > inside_temperature {
if random() < 0.3 {
// 30% chance of ventilating
kids_window.open_fraction = 1.0;
}
} else {
if random() < 0.5{
// 50% of opening windows to balance temperatures
kids_window.open_fraction = 1.0;
}
}
// Do something else...
Check Controlling the building to learn how to write these scripts.
2. You can store and reuse the solar calculations
Optical calculations—like those required for estimating the amount of sun or light that reaches each surface—can be computationally expensive. Because of this, it is common to pre-calculate as much as possible before the simulation starts, and then reuse this data when advancing through time.
SIMPLE goes one step ahead and allows you to save this data, and then reuse it in succeeding
simulations. (This data is valid as long as the geometry and materials of the model remain the same.)
SolarOptions {
optical_data_path: "./path/to/solar/data.json",
// ... other options
}
Some applications of this are the following:
- We had
SIMPLEdeployed on the cloud, and used it to run simulations on-demand. Keeping the solar data on a database meant that we did not have to recalculate it, significantly reducing response time and computational expenses. - Optimising non-geometric elements (e.g., insulation thickness, size of heaters, luminaire placements, etc.) does not imply changes in geometry. This means that every step of the optimisation will be shorter.
Note: A very common example of this technique is the Daylight Coefficients, which is the method that
SIMPLEutilises to calculate the amount of solar radiation reaching each surface. The figure below shows howSIMPLE's results compare to those of EnergyPlus, which performs this calculation in a very different manner.
3. You can save the current state of the simulation
This is possible, but not yet implemented
Given that the Simulation State is a relatively small, independent object,
it can be conveniently stored in a database or text file. This enables the
pausing and restarting of simulations, offering flexibility for various applications.
This feature can potentially be particularly beneficial for integrating SIMPLE with
Energy Management Systems (EMS). By periodically running simulations,
EMS systems can update the building's current state and determine the most
optimal control strategy, such as Model Predictive Control.
4. Deploy it to modern infrastructure
SIMPLE is a modern tool, written in a modern language, and that can run in
multiple environments.
| Environment | Example |
|---|---|
| Run locally | Being a pure RUST program, can be compiled to run on Windows, Linux and MacOS (has been tested on Linux and Mac). |
| Web Assembly | Run it on a browser, without the need for servers. CHECK THIS EXAMPLE |
| On the cloud | Embed SIMPLE into a web server and release it into very small and secure containers |
| On location | (not tested) Compile SIMPLE in a Raspberry PI or similar machine, and put it to work as part of the EMS |
Can't we just improve other tools?
I have been working in Building Simulation Tool space for nearly a decade now. During this time, I have tried to combine simulation tools and methods, and also to make simulation more accessible to people. For example, my MSc research focused on the integration of Radiance and EnergyPlus. It was then when I started developing Groundhog, which intended to put Radiance in everyone’s hands. While developing Groundhog I realized that Radiance could use some sort of wrapper to make it a bit friendlier by offering out-of-the-box optimizations and pre- and post-processing. This motivated me to develop Emp, a Radiance orchestrator. Both projects—Groundhog and Emp—have already died for various reasons.
During my time developing building performance simulation tools I have learned about an enormous amount of undeniable virtues that currently available tools—e.g., EnergyPlus and Radiance—have: they have been extensively validated, they are open source, they are free (as in freedom), and so on. Unfortunately, I have also seen many drawbacks. For starters, these tools were not really meant to be embedded on other tools. Radiance confesses this quite clearly:
“These routines are designed to aid the programmer who wishes to call Radiance as a library. Unfortunately, the system was not originally intended to be run this way, and there are some awkward limitations to contend with…” (Radiance’s raycalls.c)
Also, these tools were developed decades ago. Radiance was developed before the gaming and animation industry invested millions in improving rendering techniques, and EnergyPlus tends to focus too much on building physics even if we now know that we need to pay more attention to people’s behaviour in buildings (because insulating an open door is pointless). Also, programming was different back then, with different source control systems and way less people who knew how to code.
SIMPLE attempts to fix these issues by being open-source from day zero, by using a
modern programming language, by having an architecture designed for enabling
collaboration. Don’t be mistaken, though, SIMPLE does not attempt to reinvent the
wheel. The real wheel is the knowledge of physics and rendering and computer sciences
behind currently existing Building Performance Simulation tools… what it proposes is to
build a good-old wheel with new materials and methods, in a more modern factory, and that
is designed to travel in modern roads.
Getting started with SIMPLE
In this chapter we will build a model of a single bedroom, simulate it for a whole
year, and look at the results. Along the way you will learn the main ideas behind
SIMPLE's models. The next chapter will then teach you how to
operate the building (e.g., turn on a heater), which—you'll see—is a big deal in SIMPLE.
SIMPLE is used from the terminal, and its models are text files. So, you will
need a text editor and a little bit of courage. I promise it is not that bad.
Installing SIMPLE
The easiest way is to download the pre-built binaries from the
latest release, for macOS
(Apple silicon), Linux (x86-64) or Windows (x86-64). Each archive contains a few
command-line tools; the one we care about now is simple. Put it somewhere in your
PATH (or just in the folder where you will be working) and check that it works:
simple --help
On macOS, the binaries are not signed. If the system refuses to open them, run
xattr -d com.apple.quarantine simple.
If you'd rather build it yourself (or you are on another platform), check the README.
You will also need a weather file, in EPW format. For this chapter I'll use the one for Wellington, New Zealand, which is where I live and the reason why I care about cold homes.
The model in one paragraph
A SIMPLE model describes what the building is: its spaces, the surfaces that
enclose them, what those surfaces are made of, the devices in it (heaters,
luminaires), and so on. It does not describe what happens to it—temperatures,
heat flows, whether the heater is on—which is the simulation state and is
calculated by SIMPLE. (Separating these two is what allows SIMPLE to
travel in time.)
Models are written in .spl files, which look like this:
// Comments start with two slashes...
/* ...or go between these, if they span
multiple lines */
Space {
name: "Bedroom",
volume: 32.4,
}
That is: the kind of object (Space), followed by its properties between curly
braces. The order of the objects in the file does not matter, and objects refer
to each other by their name. The Input/Output reference
lists every object and property.
Note:
SIMPLEis strict. A property it does not know (e.g., a typo likevolumen), a missing required property, or a name that refers to nothing (e.g., aMaterialmade of aSubstancethat does not exist) are all errors. This is annoying for about five minutes, and then it saves you hours.
Our bedroom
Our bedroom is 4m wide (x), 3m deep (y) and 2.7m tall (z). It has a single
window facing North—which, in Wellington, is where the sun is.
You can download the whole model, but let's go through it piece by piece.
What things are made of
SIMPLE describes materials in three steps:
- A
Substanceis what things are made of: concrete, glass, wool... It has physical properties like density and thermal conductivity. - A
Materialis a layer of aSubstancewith a certain thickness (e.g., 20cm of concrete). - A
Constructionis a stack ofMaterials, from the front to the back (we'll get to what front and back mean soon).
// A Substance is "what things are made of"...
Substance {
type: "Normal",
name: "Concrete",
thermal_conductivity: 1.63, // W/m.K
density: 2400, // kg/m3
specific_heat_capacity: 900., // J/kg.K
front_thermal_absorbtance: 0.9,
back_thermal_absorbtance: 0.9,
front_solar_absorbtance: 0.7,
back_solar_absorbtance: 0.7,
}
Substance {
type: "Normal",
name: "Glass",
thermal_conductivity: 1.,
density: 2500,
specific_heat_capacity: 840,
solar_transmittance: 0.8,
front_solar_absorbtance: 0.1,
back_solar_absorbtance: 0.1,
front_thermal_absorbtance: 0.84,
back_thermal_absorbtance: 0.84,
}
// ... a Material is a layer of a Substance, with a thickness...
Material {
name: "20cm Concrete",
substance: "Concrete",
thickness: 0.2, // m
}
Material {
name: "3mm Glass",
substance: "Glass",
thickness: 0.003,
}
// ... and a Construction is a stack of Materials (from front to back)
Construction {
name: "Concrete Wall",
materials: ["20cm Concrete"],
}
Construction {
name: "Single Glazing",
materials: ["3mm Glass"],
}
Why three steps? Because it avoids repeating ourselves. The same
Substancecan be used in layers of different thicknesses, and the sameMaterialin manyConstructions.
The space
A Space is a volume of air with a single temperature. Each Space becomes a
thermal zone in the simulation.
Space {
name: "Bedroom",
volume: 32.4, // 4 x 3 x 2.7... SIMPLE does not calculate volumes (yet)
purposes: ["Bedroom"],
}
The walls and the window
Surfaces are walls, floors, roofs and so on. Each of them has a Construction,
a polygon (its vertices, as a flat list of x, y, z coordinates, in metres),
and two Boundarys: what is in front of it and what is behind it.
Surface {
name: "North Wall",
construction: "Concrete Wall",
// No front_boundary means the front leads outdoors
back_boundary: { type: "Space", space: "Bedroom" },
vertices: [
4, 3, 2.7,
4, 3, 0,
0, 3, 0,
0, 3, 2.7,
],
}
Fenestration {
name: "North Window",
construction: "Single Glazing",
parent_surface: "North Wall", // SIMPLE makes the hole in the wall
back_boundary: { type: "Space", space: "Bedroom" },
vertices: [
3, 3, 2.1,
3, 3, 0.9,
1, 3, 0.9,
1, 3, 2.1,
],
}
A few things are worth explaining here:
- The front of a surface is the side its normal points to, and the normal follows the right-hand rule: if the fingers of your right hand follow the vertices, your thumb points to the front. In this model, all the surfaces have their front facing out and their back facing the bedroom.
- Boundaries say what is on each side. If none is given, the surface leads
outdoors (i.e., it gets sun, wind and sky). A
Spaceboundary connects the surface to a space. Check the Boundary reference for the others. - Windows and doors are
Fenestrations. If you give them aparent_surface,SIMPLEcuts the hole in that surface for you. They follow the same rules as surfaces (so the window also faces North).
The other three walls are the same, just in other places:
Surface {
name: "South Wall",
construction: "Concrete Wall",
back_boundary: { type: "Space", space: "Bedroom" },
vertices: [
0, 0, 2.7,
0, 0, 0,
4, 0, 0,
4, 0, 2.7,
],
}
Surface {
name: "East Wall",
construction: "Concrete Wall",
back_boundary: { type: "Space", space: "Bedroom" },
vertices: [
4, 0, 2.7,
4, 0, 0,
4, 3, 0,
4, 3, 2.7,
],
}
Surface {
name: "West Wall",
construction: "Concrete Wall",
back_boundary: { type: "Space", space: "Bedroom" },
vertices: [
0, 3, 2.7,
0, 3, 0,
0, 0, 0,
0, 0, 2.7,
],
}
The floor and the ceiling
Our bedroom is in an apartment, so we will not simulate what is under it or above
it. Instead, we will say that these are at a fixed temperature, using an
AmbientTemperature boundary.
Surface {
name: "Floor",
construction: "Concrete Wall",
// A crawl space at 12C (Ground boundaries are not supported yet)
front_boundary: { type: "AmbientTemperature", temperature: 12 },
back_boundary: { type: "Space", space: "Bedroom" },
vertices: [
4, 0, 0,
0, 0, 0,
0, 3, 0,
4, 3, 0,
],
}
Surface {
name: "Ceiling",
construction: "Concrete Wall",
// The apartment upstairs, at 18C
front_boundary: { type: "AmbientTemperature", temperature: 18 },
back_boundary: { type: "Space", space: "Bedroom" },
vertices: [
0, 3, 2.7,
0, 0, 2.7,
4, 0, 2.7,
4, 3, 2.7,
],
}
What about the ground? There is a
Groundboundary, but the thermal model does not support it yet (#152). For now, use anAmbientTemperaturewith your best estimate of the ground's temperature.
A heater
HVAC {
type: "ElectricHeater",
name: "Bedroom Heater",
target_space: "Bedroom",
max_heating_power: 1500, // W
heating_setpoint: 19, // C
}
This is an electric heater of 1500W. Hold that thought, because (spoiler alert) it will not heat anything in this chapter.
What we want to know
By default, SIMPLE reports everything it calculates: every temperature, heat
flow, solar irradiance... which is a lot, even for a single bedroom. With Outputs,
we can ask for specific values:
Output { SpaceDryBulbTemperature: "Bedroom" }
Output { HeatingCoolingPowerConsumption: "Bedroom Heater" }
The Output reference lists every value you can ask for.
Running the simulation
First, let's check that the model is OK, without simulating anything:
simple -i bedroom.spl --check
If nothing is printed, all is good. Otherwise, you will get an error telling you what is wrong. Now, the real thing:
simple -i bedroom.spl -w wellington.epw -o results.csv
| Option | Meaning |
|---|---|
-i | The input model (.spl or .json) |
-w | The weather file (.epw) |
-o | Where to write the results. If not given, they are printed on the terminal |
-n | The number of timesteps per hour (from 1 to 60; 1 by default) |
-c | How to control the building (see the next chapter) |
-r | Research mode (see Research mode) |
-s | The seed for random numbers in control scripts (see Randomness) |
The simulation runs through the whole weather file, telling you what month it is in. For our bedroom, this takes less than a second.
Reading the results
results.csv is a normal CSV file you can open with Excel, Python, R, or whatever
you like. It starts like this:
Date,{"SpaceDryBulbTemperature":"Bedroom"},{"HeatingCoolingPowerConsumption":"Bedroom Heater"}
01/01 - 1:00,21.298,0.000
01/01 - 2:00,20.992,0.000
01/01 - 3:00,20.551,0.000
Each column (after the date) is one of the Outputs, named the same way you asked
for it. Each row is a timestep, and the date is the end of that timestep. For
example, 01/01 - 1:00 is the hour between midnight and 1am. This is how EPW files
(and EnergyPlus) do it too, so a year simulated at one timestep per hour has 8760
rows, from 01/01 - 1:00 to 12/31 - 24:00.
So, how did our bedroom do? Not great. In winter it gets down to 7.6°C. And the
heater? It never consumed a single Watt. That is not a bug: in SIMPLE, a
heater that nobody turns on does not heat. The next chapter
is all about this.
Some more tricks
Translating between .spl and .json
.spl files are meant for humans. JSON files are better for machines (e.g., if
you generate models with a script). SIMPLE reads both, and it can translate
between them:
simple -i bedroom.spl -t bedroom.json
Saving the solar calculations
Before simulating, SIMPLE calculates how the sun and the sky reach each surface,
which can take a while in bigger models. As long as the geometry and materials
don't change, you can store these calculations and reuse them, with
SolarOptions:
SolarOptions {
optical_data_path: "./bedroom_optical_data.json",
}
If the file does not exist, SIMPLE calculates the data and saves it there. If
it exists, it is just read. (So delete it if you change the geometry or the materials!)
SolarOptions also lets you trade accuracy for speed, and the other way around.
Where to go from here
- Learn how to operate the building in Controlling the building.
- Browse the Input/Output reference to see what else you can put in a model.
- Look at the models used for validating
SIMPLE, in thetestsfolder (e.g., the cold apartment).
Controlling the building
At the end of the Getting started chapter, our bedroom had a 1500W heater that never consumed a single Watt. This chapter explains why, and how to turn it on.
Nothing happens unless someone does it
This is one of SIMPLE's principles: the model describes what the building
is, and the physics describe what happens to it. But nobody operates the building
unless you say so. A heater that is not turned on does not heat; a window that
is not opened stays closed; a light that is not switched on stays off.
This might seem inconvenient—most tools just heat whenever the temperature is below
the setpoint—but it is on purpose. Remember that SIMPLE was born to
simulate buildings for real people, and real people do not
always turn the heater on when it is cold. Maybe they can't afford it, maybe they
are not home, maybe they would rather put on a jumper. Whatever the reason, how
a building is operated is a big part of how it performs. So, SIMPLE treats it
as an explicit part of the simulation: the control.
Note: The properties of devices that sound like control—e.g., the
heating_setpointof anElectricHeater—are not used by the physics at all. They are information that controls can use (or ignore).
The control runs once at the beginning of every timestep: it looks at the current state of the building (e.g., temperatures), decides what to do (e.g., turn on the heater), and then the physics calculate what happens during that timestep.
You can choose between three controls, with the -c option:
| Control | How | What it does |
|---|---|---|
| None | (no -c) | Nothing. The building is never operated. |
| People | -c people | Turns heaters and coolers on and off, based on their setpoints |
| A script | -c my_script.rhai | Whatever you write |
The people control
This built-in control behaves like a simple thermostat. Every timestep, and for
every HVAC in the model that has the information it needs:
- An
ElectricHeaterwith aheating_setpointand amax_heating_poweris turned on—at full power—if itstarget_spaceis below the setpoint. Otherwise, it is turned off. - An
IdealHeaterCoolerheats (atmax_heating_power) when itstarget_spaceis below theheating_setpoint, and cools (atmax_cooling_power) when it is above thecooling_setpoint.
Let's try it with our bedroom:
simple -i bedroom.spl -w wellington.epw -c people -o results.csv
Now the heater works... maybe a bit too well. During winter days, the bedroom temperature goes anywhere between 14.2°C and 30.9°C! The reason is that the control only runs once per timestep, and our timestep is one hour. If the bedroom is at 18.9°C at the beginning of the hour, the heater runs at full power for the whole hour, which is a lot of energy for such a small room.
The solution is to use shorter timesteps. With 60 timesteps per hour (-n 60), the
temperatures stay between 18.1°C and 21.1°C, which is much more like what a thermostat does.
Choosing a timestep: The air in a room holds very little heat (our bedroom's air warms up by about 1°C with just 39kJ, or 1500W during 26 seconds). So, if you turn devices on and off, use short timesteps. More on this below.
Writing your own control
The people control is fine for some cases, but the whole point is to let you
describe how your people operate your building. For that, SIMPLE reads
control scripts written in Rhai, a small scripting
language that looks a bit like JavaScript or Rust.
Here is a thermostat with a cooler setpoint at night (you can download the whole script). First, we get the objects we want to read and operate:
// Get the objects we want to read and operate
let bedroom = space("Bedroom");
let heater = hvac("Bedroom Heater");
Then we decide the setpoint, depending on the time of the day:
// A cooler setpoint at night (hour is the end of the timestep)
let is_night = hour > 22.0 || hour <= 7.0;
let setpoint = if is_night { 16.0 } else { 20.0 };
And finally, we turn the heater on or off:
// Turn the heater on and off, with a 1C dead band (in between, we
// leave it as it was)
let temperature = bedroom.dry_bulb_temperature;
if temperature < setpoint - 0.5 {
heater.power_consumption = 1500.0;
} else if temperature > setpoint + 0.5 {
heater.power_consumption = 0.0;
}
Run it with:
simple -i bedroom.spl -w wellington.epw -n 60 -c thermostat.rhai -o results.csv
The whole script runs once at the beginning of every timestep. So, the dead band works because the heater stays as it was (on or off) unless we change it.
Accessing the building
You can get the objects in the model by name (or by their index, starting from 0, in the order they appear in the model):
let bedroom = space("Bedroom");
let first_space = space(0);
let wall = surface("North Wall");
let window = fenestration("North Window");
let heater = hvac("Bedroom Heater");
let light = luminaire("Bedroom light");
If the object does not exist, the script fails with an error telling you so.
Then, you can read their properties, and set those that people can change in real life:
| Object | Can be set | Can only be read |
|---|---|---|
space | dry_bulb_temperature, infiltration_volume, infiltration_temperature, ventilation_volume, ventilation_temperature, brightness, loudness | |
surface | front_temperature, back_temperature, front_convection_coefficient, back_convection_coefficient, front_convective_heat_flow, back_convective_heat_flow, front_incident_solar_irradiance, back_incident_solar_irradiance, front_ir_irradiance, back_ir_irradiance | |
fenestration | open_fraction | The same as surface |
hvac | power_consumption | |
luminaire | power_consumption |
Each object's page in the Input/Output reference has an API section with these
too (e.g., Space). Some properties only exist when the physics
calculate them (e.g., the infiltration_volume of a Space with no infiltration),
and reading them fails with an error.
The units are the usual ones: °C for temperatures, W for power, W/m² for irradiance, and so on.
Rhai tip: Properties are set on variables, so
hvac("Bedroom Heater").power_consumption = 1500.0;fails with "Expression cannot be assigned to". Store the object in a variable first, like we did above.
How devices use power_consumption
The power_consumption of an HVAC is delivered to the air of its target_space
(they all have an efficiency of 1). Positive values heat, and negative values cool.
Similarly, all the power_consumption of a Luminaire becomes heat in its
target_space. You can use any value in between, so you can do proportional
control (or dim lights), not just on/off:
// 100W per degree below 20C
heater.power_consumption = 100.0 * (20.0 - bedroom.dry_bulb_temperature);
But devices can only do what they can do. Whatever the control asks for, the power is limited to:
| Device | From | To |
|---|---|---|
ElectricHeater | 0 (it cannot cool) | max_heating_power |
IdealHeaterCooler | minus max_cooling_power (cooling) | max_heating_power (heating) |
Luminaire | 0 | max_power |
The results report the power that was actually used. And, as asking a device for
something it cannot do is probably a mistake in the control, SIMPLE warns you
(on the terminal, the first time it happens for each device):
Warning: [in Thermal model] 01/01 - 1:00: HVAC 'Bedroom Heater' was asked to use 99999 W, but it can only use between 0 W and 1500 W... so it used 1500 W. (This is reported only once per device.)
If a device has no limit
(e.g., no max_heating_power), the limit is 10kW, which is handy for sizing:
ask for whatever keeps the room comfortable, and the results tell you how much
power that took. (10kW is a lot for a room, but if your space needs more, give the
device a max_heating_power that is large enough.)
Careful: Limits keep devices realistic, but not controls. A script that keeps a 10kW heater on all year will cook a small sealed room to temperatures where the physics stop making sense (and, eventually, stop working).
Time
The script knows the date of the timestep it is controlling:
| Variable | Meaning |
|---|---|
month | From 1 to 12 |
day | Day of the month, from 1 |
hour | The hour at the end of the timestep, from 0 to 24 (e.g., 7.5 is 7:30am). Midnight is 24.0 of the day that ends. |
day_of_week | "monday", "tuesday", ..., "sunday" |
For example, hour <= 7.0 is true for every timestep that ends at or before 7am,
i.e., the ones between midnight and 7am. And this is how you would tell weekends apart:
let is_weekend = day_of_week == "saturday" || day_of_week == "sunday";
SIMPLE knows the day of the week because EPW files say on which day they start.
If the weather does not say (e.g., some synthetic weathers), day_of_week is ()
(i.e., nothing). Note that EPW files often combine months from different years, so
the days of the week are not necessarily those of any real calendar.
Randomness
People are not that predictable, so control scripts can use random(), which
returns a random number between 0 and 1. For example, people who open the window
40% of the times they feel hot:
let window = fenestration("North Window");
if bedroom.dry_bulb_temperature > 25.0 && random() < 0.4 {
window.open_fraction = 1.0;
}
Keep in mind that the script runs every timestep, so "40% of the time" depends on
the timestep: with -n 60, that is a 40% chance every minute.
By default, each simulation gets different random numbers, so two runs of the same model give (slightly) different results. To repeat a simulation exactly (e.g., to compare two designs with the same "people", or for a paper), give it a seed:
simple -i bedroom.spl -w wellington.epw -c my_script.rhai -s 42
The same seed always gives the same random numbers.
Remembering things
Every variable in the script is forgotten when the script ends, except those
in memory. This is a map whose contents persist from one timestep to the next,
and which starts empty. For example, this adds up the heating energy:
// Add up the energy, in kWh (with -n 60, each timestep lasts 1/60 hours)
memory.kwh = (memory.kwh ?? 0.0) + heater.power_consumption / 1000.0 / 60.0;
// ... and tell us at the end of the year
if month == 12 && day == 31 && hour == 24.0 {
print(`Heating energy: ${memory.kwh.round()} kWh`);
}
(?? gives the value on the right when the one on the left does not exist, which
is the case the first time the script runs.)
memory must stay a map, so do memory.something = value (or
memory["something"] = value), not memory = value.
Remember that properties of the building (e.g.,
power_consumption) persist anyway—they are part of the simulation state.memoryis for things that are only in the head of the people in the building (e.g., "I opened the window an hour ago").
Printing
print() and debug() write to stderr, which is the terminal. So, they are
never mixed with the results, even if no -o is given:
print(`It is ${bedroom.dry_bulb_temperature}C in the bedroom`);
Careful, though: the script runs every timestep, so printing without an if
prints a lot (525,600 lines in a year at -n 60).
Timesteps matter
Here is our thermostat (with a 1°C dead band) at different timesteps:
Timesteps per hour (-n) | Bedroom temperature in winter days | Heating energy in a year |
|---|---|---|
| 4 | 14.7°C – 29.6°C | 2094 kWh |
| 12 | 16.3°C – 27.1°C | 1611 kWh |
| 30 | 18.1°C – 23.4°C | 1362 kWh |
| 60 | 18.4°C – 21.7°C | 1209 kWh |
The energy goes down because, with long timesteps, the heater keeps running long after the bedroom is warm. So, if your control turns things on and off, use short timesteps, and check that the results do not change much if you make them even shorter.
Note: If you add up energy in a script (like we did above), remember that each timestep lasts
1/nhours.
Research mode
SIMPLE simulates buildings that could exist, operated by people who could exist.
So, by default, control scripts can only do what people (or control systems) can
do in real life: turn a heater on or off, open a window, dim a light, and so on.
They can read everything (people can feel the temperature, and thermostats can
measure it), but they cannot set physical properties, like the temperature of a
space, the temperature of a wall, or the solar radiation reaching a window.
But sometimes, unrealistic is exactly what you need. For example, to answer "how much energy would it take to keep this room at exactly 21°C?" or to test a model with a known temperature. For that, there is research mode:
simple -i bedroom.spl -w wellington.epw -c my_script.rhai -r
In research mode, control scripts can also set physical properties:
let bedroom = space("Bedroom");
bedroom.dry_bulb_temperature = 21.0; // fails, unless in research mode
The physics take it from there (i.e., the value you set is the starting point of the timestep, not a value that stays fixed).
Rule of thumb: If you are setting something with research mode, make sure you would be happy to explain why in a paper. Results from research-mode simulations describe a building that cannot exist.
Boundary
Represents the boundary of a Surface
By default (i.e., if no boundary is assigned to a Surface),
the boundary will be assumed to be outside.
Note: This object cannot be declared by itself in a
SIMPLEmodel. It is always embedded on aSurface
Examples
A Space boundary (in .json)
{
"type": "Space",
"space": "Some Room"
}
A Ground boundary (in .json)
{
"type": "Ground"
}
Supported Variants
Outdoor
Leads Outdoors. This is also the default (i.e., when no Boundary is set)
Full Specification
{
type: "Outdoor"
}
Ground
The Surface is in contact with the Ground
TODO: Ground boundaries can be written in a model, but the thermal model does not support them yet: simulating a model that has one fails with "ground boundaries are not supported yet". In the meantime, use an
AmbientTemperatureboundary with an estimate of the ground temperature. (See #152)
Full Specification
{
type: "Ground"
}
Space
The Surface leads to another space whose temperature and other properties are part of the simulation
Border conditions:
- Solar Radiation: As calculated by the Solar module
- Net Longwave (IR) Radiation: Zero, for now at least (this is a good assumption if the surfaces inside the
Spaceare at similar temperatures) - Convection Coefficient: Indoor
- Wind: No
Full Specification
Boundary {
type : "Space", // this should not change
space : string
}
AmbientTemperature
The surface leads to an environment with no wind or sun, and with a fixed mean-radiant and dry bulb temperature
This object is useful for defining surfaces that lead to spaces that we are not interested in modelling; for example, a wall that separates an apartment's room with the hall of the building. In that case, we don't need to simulate the temperature of the hall... but we can assume a certain temperature.
Border conditions:
- Solar Radiation: None
- Net Longwave (IR) Radiation: The set temperature
- Convection Coefficient: Indoor
- Wind: No
Full Specification
Boundary {
type : "AmbientTemperature", // this should not change
temperature : number
}
Adiabatic
The temperature of the other side of the wall will be the same as the one measured at the interior of the space
Full Specification
{
type: "Adiabatic"
}
Building
This object has two purposes. First, it can be utilized to group
Space objects together for metering. Also, there are some
physical aspects of the the building that can be calculated from
some parameters of the building. For example, the Infiltrations
can be estimated from the number of storeys
and the ShelterClass (check docs for those).
Examples
.spl
Building {
name: "Main Building",
shelter_class: "Urban"
}
.json
{
"name": "Main Building",
"shelter_class": "Urban"
}
Full Specification
Building {
name : string,
n_storeys : int, // optional,
shelter_class : ShelterClass, // optional,
stack_coefficient : number, // optional,
wind_coefficient : number, // optional,
}
name
The name of the Building
n_storeys (optional)
The number of storeys of this building.
This value use used by the AirFlow module when a Space associated
to this Building has been assigned an EffectiveAirLeakageArea
infiltration. This value is required for calculating the Stack
Coefficient () and the Wind Coefficient () of the
EffectiveAirLeakageArea infiltration. and can be inputed
directly by assigning values to the stack_coefficient and
wind_coefficient fields, in which case the n_storeys field will
be ignored.
shelter_class (optional)
The ShelterClass of this building.
This value use used by the AirFlow module when a Space associated
to this Building has been assigned an EffectiveAirLeakageArea
infiltration. This value is required for calculating the Wind
Coefficient () of the
EffectiveAirLeakageArea infiltration. can be inputed
directly by assigning values to the wind_coefficient field, in
which case the shelter_class field will be ignored.
stack_coefficient (optional)
The stack coefficient of this building, used for
calculating infiltrations in Spaces that utilize the EffectiveAirLeakageArea
infiltration option.
If not given, the number of storeys will be used for getting this values (based on EnergyPlus' Engineering Reference).
Note: The
EffectiveAirLeakageAreaobject is appropriate for buildings of 3 storeys or less.
wind_coefficient (optional)
The wind coefficient of this building, used for
calculating infiltrations in Spaces that utilize the EffectiveAirLeakageArea
infiltration option.
If not given, the number of storeys will be used for getting this values (based on EnergyPlus' Engineering Reference).
Note: The
EffectiveAirLeakageAreaobject is appropriate for buildings of 3 storeys or less.
ChairArmType
Types of armchair
Supported Variants
Existing
Has arms
Full Specification
"Existing"
Missing
Does not have arms
Full Specification
"Missing"
ChairBackType
Types of chair back
Supported Variants
Existing
Has arms
Full Specification
"Existing"
Missing
Does not have arms
Full Specification
"Missing"
ChairLegType
Types of legs in a chair
Supported Variants
Four
Four legs
Full Specification
"Four"
Three
Three legs
Full Specification
"Three"
Star
Star
Full Specification
"Star"
Other
Other
Full Specification
"Other"
ChairType
Type of chair
Supported Variants
Other
Other
Full Specification
"Other"
Dining
Dining
Full Specification
"Dining"
Office
Office
Full Specification
"Office"
Stool
Stool
Full Specification
"Stool"
Construction
An object representing an array of Materials, ordered from front to back
Front and back can be indoor, outdoor, or they can both be
indoor (it depends exclusively on the Boundary set to the
surface)
Examples
.spl
Construction {
name: "The Construction",
materials: [
"layer 1",
"layer 2",
]
}
.json
{
"name": "The Construction",
"materials": [
"layer 1",
"layer 2"
]
}
Full Specification
Construction {
name : string,
materials : [string, ...],
}
name
The name of the Construction object. Must be unique within the model
materials
The indices of the Material objects in the materials property of the Model object
Fenestration
A surface that can potentially be opened and closed. It can be of any Construction and it does not need to be a hole in another surface.
Examples
.spl
Fenestration {
name: "Window 1",
construction: "Double Clear Glass",
back_boundary: {
type: "Space",
space: "Space 1",
},
operation: {
type: "Fixed",
},
category: "Window",
vertices: [
0.548000,0,2.5000, // X,Y,Z ==> Vertex 1 {m}
0.548000,0,0.5000, // X,Y,Z ==> Vertex 2 {m}
5.548000,0,0.5000, // X,Y,Z ==> Vertex 3 {m}
5.548000,0,2.5000 // X,Y,Z ==> Vertex 4 {m}
],
}
.json
{
"name": "Window 1",
"construction": "Double Clear Glass",
"back_boundary": {
"type": "Space",
"space": "Space 1"
},
"operation": {
"type": "Fixed"
},
"category": "Window",
"vertices": [
0.548000,0,2.5000,
0.548000,0,0.5000,
5.548000,0,0.5000,
5.548000,0,2.5000
]
}
Full Specification
Fenestration {
name : string,
vertices : Polygon3D,
construction : string,
category : FenestrationType,
operation : FenestrationPosition, // optional,
front_boundary : Boundary,
back_boundary : Boundary,
precalculated_front_convection_coef : number, // optional,
precalculated_back_convection_coef : number, // optional,
parent_surface : string, // optional,
}
name
The name of the sub surface
vertices
An array of Numbers representing the vertices of the surface. The length of this array must be divisible by 3.
construction
The name of the Construction object in the constructions property of the Model object
category
Defines whether a Fenestration is a Window, Door, or other.
If none is given, the assumed behaviour is that it is a Window.
operation (optional)
The opportunity for operating the Fenestration. If none is given, the window is assumed to be Fixed at Closed position.
front_boundary
The front Boundary. No boundary means it leads to the exterior
back_boundary
The back Boundary. No boundary means it leads to the exterior
precalculated_front_convection_coef (optional)
The front convection coefficient, in W/m2K
This value fixes the value, so the automatic calculations in SIMPLE have no effect.
precalculated_back_convection_coef (optional)
The back convection coefficient, in W/m2K
This value fixes the value, so the automatic calculations in SIMPLE have no effect.
parent_surface (optional)
The name of the surface containing this Fenestration,
if any. A hole will be made in the parent surface in order
to accommodate the Fenestration.
Note that a Fenestration can be self contained (i.e., it can have
no parent surface), which allows representing situation where
the fenestration is very large and therefore there would be no area
for wall.
Note: This field will not be serialized. This is beacuse there is no quarantee that the
surfaceswill be there before thefenestrationsand thus there would be errors when deserializing. In any case, it is assumed that JSON models are read/written by machines—e.g., either by serializing a Model or by another kind of machine—and therefore the convenience of not having to write down the vertices around holes is not much needed.
API Access
// by name
let my_fenestration = fenestration(string);
// by index
let my_fenestration = fenestration(int);
API
The following properties are available for simulating control algorithms. Control scripts can read all of them, but only set those that people (or control systems) can change in real life. The rest can only be set in research mode.
| Property | Can be set |
|---|---|
front_temperature | Research mode only |
back_temperature | Research mode only |
open_fraction | Yes |
front_convection_coefficient | Research mode only |
back_convection_coefficient | Research mode only |
front_convective_heat_flow | Research mode only |
back_convective_heat_flow | Research mode only |
front_incident_solar_irradiance | Research mode only |
back_incident_solar_irradiance | Research mode only |
front_ir_irradiance | Research mode only |
back_ir_irradiance | Research mode only |
FenestrationPosition
Defines whether the Fenestration is fixed or openable.
Example
.json
{
"type" : "Continuous",
"max" : 1.0,
"min" : 0.0
}
Note: This object cannot be declared by itself in a
SIMPLEmodel, as it is always embeded on aFenestrationobject
Supported Variants
Fixed
It is fixed at a certain open fraction
Full Specification
FenestrationPosition {
type : "Fixed", // this should not change
fraction : number, // optional
}
Continuous
It can be position at any position, from fully opened to fully closed
Full Specification
FenestrationPosition {
type : "Continuous", // this should not change
max : number, // optional
min : number, // optional,
}
Binary
It can only be opened or closed, no in-between
Full Specification
FenestrationPosition {
type : "Binary", // this should not change
open : number, // optional
closed : number, // optional,
}
FenestrationType
Defines whether the fenestration is a Door or a Window.
At present, this option has no effect whatsoever
Example
.json
"Window"
Note: This object cannot be declared by itself in a
SIMPLEmodel, as it is always embeded on aFenestrationobject
Supported Variants
Window
This is a Window. This is the default.
Full Specification
"Window"
Door
This is a Door
Full Specification
"Door"
Opening
This is an opening, meaning that it lets air through it.
Full Specification
"Opening"
HVAC
A collection of elements heating and cooling systems
Example .spl
HVAC {
type: "ElectricHeater",
name: "Bedrooms heater",
target_space: "Bedroom",
}
Example .json
{
"type": "ElectricHeater",
"name": "Bedrooms heater",
"target_space": "Bedroom"
}
Supported Types
-
IdealHeaterCooler: An ideal heating/cooling device. Heats and Cools with an efficiency of 1, and nothing effects its COP or efficiency
-
ElectricHeater: An electric heater, it can only heat.
API Access
// by name
let my_hvac = hvac(string);
// by index
let my_hvac = hvac(int);
ElectricHeater
A simple model of an Electric Heater. It can only heat and has a COP of 1.
Like every device in SIMPLE, it does not turn itself on: something
(e.g., a control script) has to set its power_consumption, which
is delivered to the air of its target_space. The thermostat that
controls it—if any—is assumed to be in the target_space
The power goes from zero (it cannot cool) to max_heating_power. If no
max_heating_power is given, the limit is 10kW (i.e.,
DEFAULT_MAX_POWER), which is useful for
sizing (i.e., the reported power is what was needed).
Examples
.spl
HVAC {
type: "ElectricHeater",
name: "Bedrooms heater",
target_space: "Bedroom",
}
.json
{
"type": "ElectricHeater",
"name": "Bedrooms heater",
"target_space": "Bedroom"
}
Full Specification
ElectricHeater {
name : string,
target_space : string, // optional,
max_heating_power : number, // optional,
heating_setpoint : number, // optional,
}
name
The name of the system
target_space (optional)
The Space that this [ElectricHeater] heats
max_heating_power (optional)
Max heating power, in W
heating_setpoint (optional)
The heating setpoint, in C: the heater should heat when the dry bulb
temperature of the target_space is below this value.
Note: Like every device in
SIMPLE, this heater does nothing unless something turns it on (see the "Controlling the building" chapter of the book). This setpoint is not used by the physics: it is used by the controllers that turn the device on and off (e.g., the one used withsimple -c people), which run once every timestep.
API
The following properties are available for simulating control algorithms. Control scripts can read all of them, but only set those that people (or control systems) can change in real life. The rest can only be set in research mode.
| Property | Can be set |
|---|---|
power_consumption | Yes |
IdealHeaterCooler
An ideal Heating and Cooling device, with a COP of 1.
Like every device in SIMPLE, it does not turn itself on: something
(e.g., a control script) has to set its power_consumption, which
is delivered to the air of its target_space. A positive value means
heating, and a negative one means cooling.
The power is limited to what the device can do: between minus
max_cooling_power (cooling) and max_heating_power (heating). If any of
these is not given, the limit in that direction is 10kW (i.e.,
DEFAULT_MAX_POWER), which is useful for
sizing (i.e., the reported power is what was needed).
Example
.spl
HVAC {
type: "IdealHeaterCooler",
name: "Bedrooms heater",
target_space: "Bedroom"
}
.json
{
"type": "IdealHeaterCooler",
"name": "Bedrooms heater",
"target_space": "Bedroom"
}
Full Specification
IdealHeaterCooler {
name : string,
target_space : string, // optional,
max_heating_power : number, // optional,
max_cooling_power : number, // optional,
heating_setpoint : number, // optional,
cooling_setpoint : number, // optional,
}
name
The name of the system
target_space (optional)
The Space that this IdealHeaterCooler heats and/or
cools, which is also where its thermostat is (i.e., where the
temperature compared with the setpoints is measured)
max_heating_power (optional)
Max heating power, in W
max_cooling_power (optional)
Max cooling power, in W
heating_setpoint (optional)
The heating setpoint, in C: the system should heat when the dry bulb
temperature of the target_space is below this value.
Note: Like every device in
SIMPLE, this heater does nothing unless something turns it on (see the "Controlling the building" chapter of the book). This setpoint is not used by the physics: it is used by the controllers that turn the device on and off (e.g., the one used withsimple -c people), which run once every timestep.
cooling_setpoint (optional)
The cooling setpoint, in C: the system should cool when the dry bulb
temperature of the target_space is over this value.
Note: Like every device in
SIMPLE, this heater does nothing unless something turns it on (see the "Controlling the building" chapter of the book). This setpoint is not used by the physics: it is used by the controllers that turn the device on and off (e.g., the one used withsimple -c people), which run once every timestep.
API
The following properties are available for simulating control algorithms. Control scripts can read all of them, but only set those that people (or control systems) can change in real life. The rest can only be set in research mode.
| Property | Can be set |
|---|---|
power_consumption | Yes |
Infiltration
Infiltration is the unintended air exchange between an interior
space and the exterior. In SIMPLE, infiltrations are added to the
intended ventilation.
This group of objects allow defining infiltration on different ways. Which variety is better will depend on the information available and the kind of building.
Examples
.spl
// Note that Infiltration is always attached to a Space
Space {
name: "Bedroom",
volume: 42, // volume in m3.
infiltration: { // <- Define the infiltration
type : "Doe2",
flow : 0.24,
}
}
.json
{
"type": "DesignFlowRate",
"a": 1.0,
"b": 0.0,
"c": 0.04,
"d": 0.0,
"phi": 1.2
}
{
"type": "Constant",
"flow": 1.2
}
Note: This object cannot be declared by itself in a
SIMPLEmodel, as it is always embeded on aSpace
Supported Variants
Constant
A contant infiltration, specified in m3/s
Full Specification
Infiltration {
type : "Constant", // this should not change
flow : number
}
Blast
It is the same as the DesignFlowRate infiltration object,
but specifying the default values from BLAST, as described
in the EnergyPlus' Input Output reference
Full Specification
Infiltration {
type : "Blast", // this should not change
flow : number
}
Doe2
It is the same as the DesignFlowRate infiltration object,
but specifying the default values from DOE-2 as described
in the EnergyPlus' Input Output reference
Full Specification
Infiltration {
type : "Doe2", // this should not change
flow : number
}
DesignFlowRate
Sets the infiltration to the DesignFlowRate values using an
arbitrary set of values. This option is based on EnergyPlus'
object of the same name.
The flow (in ) is calculated from the parameters , , , and as follows:
The inputs to this object are , , , , .
Full Specification
Infiltration {
type : "DesignFlowRate", // this should not change
a : number
b : number,
c : number,
d : number,
phi : number,
}
EffectiveAirLeakageArea
Sets the infiltration based on EffectiveLeakageArea as
described in the EnergyPlus' Input Output reference. This
variant of infiltration requires the space to be part of a
Building
The infiltration rate—in —is calculated based on the following equation:
where:
- is the effective air leakage in @ 4Pa (NOTE THAT THE INPUT IS IN M2)
- is the coefficient for stack induced infiltration
- is the coefficient for wind induced infiltration
The only input to this object is the effecctive air leakage, , in @ 4Pa.
The other parameters— and —are derived based
on the required Building object associated with the Space that owns
this Infiltration. For this to work, the associated Building needs
to have been assigned the fields n_storeys and a shelter_class
(which allow calculating and ) OR the properties of
stack_coefficient (i.e., ) and wind_coefficient (i.e., ).
Note: The
EffectiveAirLeakageAreaobject is appropriate for buildings of 3 storeys or less.
Example
Building {
name: "Art Deco Building",
n_storeys: 2,
shelter_class: "Urban",
}
Space {
name: "Kids Bedroom",
volume: 19.23,
infiltration: {
type : "EffectiveAirLeakageArea",
area: 0.0496, // this is roughly 22cm x 22cm
},
building: "Art Deco Building"
}
Values for
(source of this example: Sherman and Grimsrud (1980) Infiltration-Pressurization correlation: Simplified physical modeling). Conference of American Society of Heating, Refrigeration and Air Conditioning Engineers
Ideally, the value from should come from a blower-door test. When doing one of these, you can get a table like the following:
| Q () | () |
|---|---|
| 10 | 0.222 |
| 20 | 0.338 |
| 30 | 0.433 |
| 40 | 0.513 |
| 50 | 0.586 |
This data can be fitted in a model with the shape:
In this case, the values for and are and , respectively.
Evaluating this model at , we get an air flow of .
To calculate we now need to use this data in the following equation, which relates air flows through openings of size :
Where is the air density of . So, the estimated would be
Full Specification
Infiltration {
type : "EffectiveAirLeakageArea", // this should not change
area : number
}
Luminaire
A Luminaire
Like every device in SIMPLE, it does not turn itself on: something
(e.g., a control script) has to set its power_consumption, which goes
from zero (off) to its max_power. All of this power becomes heat in its
target_space.
Examples
.spl
Luminaire {
name: "Some Light",
max_power: 30,
target_space: "A bright space!"
}
.json
{
"name": "Some Light",
"max_power": 30,
"target_space": "A bright space!"
}
Full Specification
Luminaire {
name : string,
max_power : number, // optional,
target_space : string, // optional,
}
name
The name of the Luminaire
max_power (optional)
The maximum power consumption, in W. If not given, it is
10kW (i.e., DEFAULT_MAX_POWER).
target_space (optional)
The name of the space in which the space is located
While this value might not be relevant for e.g., lighting calculations, this is necessary for thermal simulations, in which the heat disipated by a luminaire will be disipated into the air of a thermal zone. So, if this is an exterior luminaire or if no thermal calculation is performed, this can be left empty.
API Access
// by name
let my_luminaire = luminaire(string);
// by index
let my_luminaire = luminaire(int);
API
The following properties are available for simulating control algorithms. Control scripts can read all of them, but only set those that people (or control systems) can change in real life. The rest can only be set in research mode.
| Property | Can be set |
|---|---|
power_consumption | Yes |
Material
The representation of a physical layer-Material. That is to say, a layer of a certain thickness made of a certain Substance
Examples
.spl
Material {
name:"Fancy Material",
substance: "Fancy Substance",
thickness: 0.2
}
.json
{
"name":"Fancy Material",
"substance": "Fancy Substance",
"thickness": 0.2
}
Full Specification
Material {
name : string,
substance : string,
thickness : number,
}
name
The name of the material object
substance
The name of the Substance of which this
[Material] is made of
thickness
The thickness of the [Material]
Object
An object
Full Specification
Object {
name : string,
dimensions : Point3D,
location : Point3D,
up : Vector3D,
front : Vector3D,
specifications : ObjectSpecs,
space : string, // optional,
}
name
The name of the object
dimensions
The size of the object (x, y, z)
location
The location of the center of the object
up
The up
front
Front
specifications
The specification of the object
space (optional)
The space in which the object is located
ObjectSpecs
An object category
Supported Variants
Other
Other category
Full Specification
{
type: "Other"
}
Bathtub
Bathtub
Full Specification
{
type: "Bathtub"
}
Bed
Bed
Full Specification
{
type: "Bed"
}
Chair
Chair
Full Specification
ObjectSpecs {
type : "Chair", // this should not change
category : ChairType
arms : ChairArmType,
back : ChairBackType,
legs : ChairLegType,
}
Dishwasher
Dishwasher
Full Specification
{
type: "Dishwasher"
}
Fireplace
Fireplace
Full Specification
{
type: "Fireplace"
}
Oven
Oven
Full Specification
{
type: "Oven"
}
Refrigerator
Refrigerator
Full Specification
{
type: "Refrigerator"
}
Sink
Sink
Full Specification
{
type: "Sink"
}
Sofa
Sofa
Full Specification
ObjectSpecs {
type : "Sofa", // this should not change
category : SofaType
}
Stairs
Stairs
Full Specification
{
type: "Stairs"
}
Storage
Storage
Full Specification
ObjectSpecs {
type : "Storage", // this should not change
category : StorageType
}
Stove
Stove
Full Specification
{
type: "Stove"
}
Table
Table
Full Specification
ObjectSpecs {
type : "Table", // this should not change
category : TableType
shape : TableShape,
}
Television
Television
Full Specification
{
type: "Television"
}
Toilet
Toilet
Full Specification
{
type: "Toilet"
}
WasherDryer
Washer Dryer
Full Specification
{
type: "WasherDryer"
}
Output
Possible outputs to request from the simulation
Example
Space {
name: "Bedroom",
volume: 42, // volume in m3.
infiltration: { // <- Define the infiltration
type : "Doe2",
flow : 0.24,
}
}
// Report the Bedroom's output variable
Output{
SpaceDryBulbTemperature: "Bedroom"
}
Supported Variants
Clothing
The amount of clothing the person is using, in Clo value
Output {
Clothing : string
}
FenestrationOpenFraction
Represents how open is a fenestration. Contains the Index of fenestration, and its open fraction
Output {
FenestrationOpenFraction : string
}
HeatingCoolingPowerConsumption
Represents the heating/cooling energy consumption of a Heating/Cooling system, in Watts
Contains the index of the HVAC in the building\'s vector, and the power.
Output {
HeatingCoolingPowerConsumption : string
}
LuminairePowerConsumption
Represents the power being consumed by a Luminaire object, in Watts (luminaire index, power)
Output {
LuminairePowerConsumption : string
}
SurfaceFrontConvectionCoefficient
The convective heat transfer coefficient at the front of a surface
Output {
SurfaceFrontConvectionCoefficient : string
}
SurfaceBackConvectionCoefficient
The convective heat transfer coefficient at the back of a surface
Output {
SurfaceBackConvectionCoefficient : string
}
SurfaceFrontConvectiveHeatFlow
The convective heat flow at the front of a surface
Output {
SurfaceFrontConvectiveHeatFlow : string
}
SurfaceBackConvectiveHeatFlow
The convective heat flow at the back of a surface
Output {
SurfaceBackConvectiveHeatFlow : string
}
SurfaceFrontSolarIrradiance
Incident solar irradiance at the front
Output {
SurfaceFrontSolarIrradiance : string
}
SurfaceBackSolarIrradiance
Incident solar irradiance at the back
Output {
SurfaceBackSolarIrradiance : string
}
SurfaceFrontIRIrradiance
Incident Infrared irradiance at the front
Output {
SurfaceFrontIRIrradiance : string
}
SurfaceBackIRIrradiance
Incident Infrared irradiance at the back
Output {
SurfaceBackIRIrradiance : string
}
FenestrationFrontConvectionCoefficient
The convective heat transfer coefficient at the front of a surface
Output {
FenestrationFrontConvectionCoefficient : string
}
FenestrationBackConvectionCoefficient
The convective heat transfer coefficient at the back of a surface
Output {
FenestrationBackConvectionCoefficient : string
}
FenestrationFrontConvectiveHeatFlow
The convective heat flow at the front of a surface
Output {
FenestrationFrontConvectiveHeatFlow : string
}
FenestrationBackConvectiveHeatFlow
The convective heat flow at the back of a surface
Output {
FenestrationBackConvectiveHeatFlow : string
}
FenestrationFrontSolarIrradiance
Incident solar irradiance at the front
Output {
FenestrationFrontSolarIrradiance : string
}
FenestrationBackSolarIrradiance
Incident solar irradiance at the back
Output {
FenestrationBackSolarIrradiance : string
}
FenestrationFrontIRIrradiance
Incident Infrared irradiance at the front
Output {
FenestrationFrontIRIrradiance : string
}
FenestrationBackIRIrradiance
Incident Infrared irradiance at the back
Output {
FenestrationBackIRIrradiance : string
}
SpaceDryBulbTemperature
Space Air Temperature in C... The elements are the index of the Space in the Building mode and the temperature
Output {
SpaceDryBulbTemperature : string
}
SpaceInfiltrationVolume
The volume of air that is entering the space in an uncontrolled way. In m3/s
Output {
SpaceInfiltrationVolume : string
}
SpaceInfiltrationTemperature
The temperature of air that is entering the space in an uncontrolled way. In C
Output {
SpaceInfiltrationTemperature : string
}
SpaceVentilationVolume
The volume of air that is entering the space in a controlled way. In m3/s
Output {
SpaceVentilationVolume : string
}
SpaceVentilationTemperature
The temperature of air that is entering the space in a controlled way. In C
Output {
SpaceVentilationTemperature : string
}
SpaceAirExchangeVolume
The volume of air that is moving from one space to another in a controlled way. In m3/s
Output {
SpaceAirExchangeVolume : string
}
SurfaceNodeTemperature
Temperature (Float) of Surface\'s (usize) node (usize) I.e. the order is (Surface Index, Node index, Temperature).
Output {
SurfaceNodeTemperature : string
}
FenestrationNodeTemperature
Temperature (Float) of Fenestration\'s (usize) node (usize) I.e. the order is (Surface Index, Node index, Temperature).
Output {
FenestrationNodeTemperature : string
}
SiteDetails
Some information about the site in which the building(s) are located
Examples
.spl
SiteDetails {
altitude: 123.0,
terrain: "Urban"
}
.json
{
"altitude": 123.0,
"terrain": "Urban"
}
Full Specification
SiteDetails {
altitude : number, // optional,
terrain : TerrainClass, // optional,
latitude : number, // optional,
longitude : number, // optional,
standard_meridian : number, // optional,
}
altitude (optional)
The altitude of the site.
terrain (optional)
The kind of terrain
latitude (optional)
In degrees. South is negative and North is positive
This value is irrelevant if a simulation is ran based on an EPW weather file (in which case it is extracted such file). However, it can be useful when producing synthetic weathers or HVAC sizing, or other applications.
longitude (optional)
In degrees. West is negative, east is positive.
This value is irrelevant if a simulation is ran based on an EPW weather file (in which case it is extracted such file). However, it can be useful when producing synthetic weathers or HVAC sizing, or other applications.
standard_meridian (optional)
In degrees. This is 15*GMT Time Zone
This value is irrelevant if a simulation is ran based on an EPW weather file (in which case it is extracted such file). However, it can be useful when producing synthetic weathers or HVAC sizing, or other applications.
SofaType
Types of armchair
Supported Variants
Other
Other
Full Specification
"Other"
Rectangular
Rectangular
Full Specification
"Rectangular"
SingleSeat
Single Seat
Full Specification
"SingleSeat"
LShaped
L-Shaped
Full Specification
"LShaped"
LShapedExtension
L-Shaped Extension
Full Specification
"LShapedExtension"
SolarOptions
The options for the solar and lighting calculations
Examples
.spl
SolarOptions {
n_solar_irradiance_points: 30,
solar_sky_discretization: 2,
optical_data_path: "data.json"
}
.json
{
"n_solar_irradiance_points": 30,
"solar_sky_discretization": 2,
"optical_data_path": "data.json"
}
Full Specification
SolarOptions {
n_solar_irradiance_points : int, // optional,
solar_ambient_divitions : int, // optional,
solar_sky_discretization : int, // optional,
n_ir_view_factor_rays : int, // optional,
optical_data_path : string, // optional,
}
n_solar_irradiance_points (optional)
Number of points utilized to calculate the average incident solar irradiance over each fenestration or surface in W/m2.
A larger number of points leads to more accurate results but, as usual, it has an impact on the time of the computation. Specifically, the time required for creating the model increases linearly with the number of points. The time required to process each timestep is not affected.
solar_ambient_divitions (optional)
Number of primary rays sent from each of the n_solar_irradiance_points
when calculating the average incident solar irradiance over
each surface or fenestration.
A larger number of rays leads to more accurate results but, as usual, it has an impact on the time of the computation. Specifically, the time required for creating the model increases linearly with the number of points. The time required to process each timestep is not affected.
solar_sky_discretization (optional)
The sky discretization scheme used for solar irradiance. A value of 1 leads to 145 sky patches + the ground.
A larger number leads to more accurate results but, as usual, it has an impact on the time of the computation. Although the time required for creating the model is not greatly affected, the time required for processing each timestep can increase considerably.
n_ir_view_factor_rays (optional)
Number of rays sent from each side of each surface or fenestration when calculating the fractions of the sky, the ground and other objects (e.g., other buildings) it sees, used for calculating its incident long-wave (IR) irradiance. Each ray starts at a random point of the surface.
A larger number of rays leads to more accurate results but, as usual, it has an impact on the time of the computation. Specifically, the time required for creating the model increases linearly with the number of rays. The time required to process each timestep is not affected. The default (16384) gives errors of about 0.002 in these fractions, in less than 1 ms per surface.
optical_data_path (optional)
A path to the file containing information about solar radiation and other optical stuff. If the file does not exist, this information will be calculated and saved in this path. If it does exist, it will be loaded and used directly, saving time
Space
Represents a space with homogeneous temperature within a building. It is often actual room enclosed by walls, but it can also be more than one room. In this latter case, there will be walls within the Space, meaning that there are walls whose Front and Back boundary is this space.
Examples
.spl
Space {
name: "Walrus Enclosure",
volume: 249,
building: "Wonderful Zoo"
}
.json
{
"name": "Walrus Enclosure",
"volume": 249,
"building": "Wonderful Zoo"
}
Full Specification
Space {
name : string,
volume : number, // optional,
infiltration : Infiltration, // optional,
building : string, // optional,
storey : int, // optional,
purposes : [SpacePurpose, ...],
}
name
The name of the space
volume (optional)
Volume of the space
infiltration (optional)
The infiltration in the space
building (optional)
The building in which this Space is inserted
storey (optional)
The storey in which the space is located, indexing from 0 (i.e., ground floor is 0)
purposes
The purposes in a room. It can have multiple purposes (e.g., a Living/Dining/Kithen space)
API Access
// by name
let my_space = space(string);
// by index
let my_space = space(int);
API
The following properties are available for simulating control algorithms. Control scripts can read all of them, but only set those that people (or control systems) can change in real life. The rest can only be set in research mode.
| Property | Can be set |
|---|---|
dry_bulb_temperature | Research mode only |
brightness | Research mode only |
loudness | Research mode only |
infiltration_volume | Research mode only |
infiltration_temperature | Research mode only |
ventilation_volume | Research mode only |
ventilation_temperature | Research mode only |
SpacePurpose
The category of a space.
Supported Variants
Bathroom
Bathroom, toilette, shower, etc.
Full Specification
{
type: "Bathroom"
}
Bedroom
Bedroom
Full Specification
{
type: "Bedroom"
}
DiningRoom
Dining room
Full Specification
{
type: "DiningRoom"
}
Kitchen
Kitchen
Full Specification
{
type: "Kitchen"
}
LivingRoom
Living room
Full Specification
{
type: "LivingRoom"
}
Office
Office
Full Specification
{
type: "Office"
}
Storage
Storage
Full Specification
{
type: "Storage"
}
Garage
Garage
Full Specification
{
type: "Garage"
}
Hallway
Hallway
Full Specification
{
type: "Hallway"
}
Laundry
Laundry
Full Specification
{
type: "Laundry"
}
Other
Other
Full Specification
{
type: "Other"
}
StorageType
Types of storage
Supported Variants
Cabinet
Enclosed storage
Full Specification
"Cabinet"
Shelf
Open storage (i.e., shelves)
Full Specification
"Shelf"
Substance
A physical substance with physical—i.e., optical, thermal—properties.
Note that, contrary to EnergyPlus' Materials, Substances do not
contain information about the thickness, which in Simple is given when
creating a Material. The idea is to enable multiple materials of different
thicknesses to reference the same material.
Note: Glazing substances are
Normalsubstances withsolar_transmitanceandvisible_transmittance. However, contrary to all other properties, this property does depend on the thickness of the substance. So, in order to build a coherent Glazing, you'll need to match this Substance with an appropriate Material
Examples
A normal substance
Substance {
type: "Normal",
name: "the substance",
thermal_conductivity: 12,
}
A gas
Substance {
type: "Gas",
name: "Some Gas",
gas: "Xenon"
}
Supported Types
-
Normal: A normal (i.e., solid, homogeneous) substance such as glass, timber or concrete.
-
Gas: A gas, as understood by the standard ISO-15099(2003).
Normal
Represents a physical material with common physical properties (e.g., timber, concrete, brick, glass). In other words, it cannot change its thermal/optical properties based on its internal state (e.g., it cannot change its specific heat based on temperature, like Gas or Phase Change Materials).
Examples
.spl
Substance {
type: "Normal",
name: "the substance",
thermal_conductivity: 12,
}
.json
{
"type": "Normal",
"name": "the substance",
"thermal_conductivity": 12.0
}
Full Specification
Normal {
name : string,
thermal_conductivity : number, // optional,
specific_heat_capacity : number, // optional,
density : number, // optional,
front_solar_absorbtance : number, // optional,
back_solar_absorbtance : number, // optional,
solar_transmittance : number, // optional,
front_visible_reflectance : number, // optional,
back_visible_reflectance : number, // optional,
visible_transmissivity : number, // optional,
front_thermal_absorbtance : number, // optional,
back_thermal_absorbtance : number, // optional,
}
name
The name of the Substance. Should be unique for each Substance in the Model object
thermal_conductivity (optional)
The thermal conductivity of the substance in W/m.K
specific_heat_capacity (optional)
The specific heat capacity of the substance in J/kg.K
density (optional)
The density of the substance in kg/m3
front_solar_absorbtance (optional)
Solar absorbtance (from 0 to 1) at the front side (Front being the side closer to the first material in a construction)
Absorbtance is used instead of reflectance (which is used in visible radiation properties) to maintain coherence with EnergyPlus
back_solar_absorbtance (optional)
Solar absorbtance (from 0 to 1) at the front side (Back being the side closer to the last material in a construction)
Absorbtance is used instead of reflectance (which is used in visible radiation properties) to maintain coherence with EnergyPlus... because in Thermal calculation we mostly care about how much is absorbed; in lighting we care mainly about how much is reflected.
solar_transmittance (optional)
The front solar transmittance at normal incidence (from 0 to 1)
Please note that, contrary to all other properties, this property
does depend on the thickness of the substance. So, in order
to build a coherent Glazing, you'll need to match this Substance
with an appropriate Material
Transmittance is used instead of transmissivity (which is used in visible radiation properties) to maintain coherence with EnergyPlus... because in Thermal calculation we mostly care about how much is absorbed; in lighting we care mainly about how much is reflected.
front_visible_reflectance (optional)
Solar absorbtance (from 0 to 1) at the front side (Front being the side closer to the first material in a construction)
Reflectance is used instead of Absorbtance (which is used in solar radiation properties) to maintain coherence with Radiance... because in Lighting we really care about how much is reflected; in thermal we care mainly about how much is absorbed.
back_visible_reflectance (optional)
Solar absorbtance (from 0 to 1) at the front side (Back being the side closer to the last material in a construction)
Reflectance is used instead of Absorbtance (which is used in solar radiation properties) to maintain coherence with Radiance... because in Lighting we really care about how much is reflected; in thermal we care mainly about how much is absorbed.
visible_transmissivity (optional)
The front solar transmittance at normal incidence (from 0 to 1)
Please note that, contrary to all other properties, this property
does depend on the thickness of the substance. So, in order
to build a coherent Glazing, you'll need to match this Substance
with an appropriate Material
Transmissivity is used instead of Transmittance (which is used in solar radiation properties) to maintain coherence with Radiance
front_thermal_absorbtance (optional)
Front thermal absorbtance (i.e., emissitivy; from 0 to 1) (Front being the side closer to the first material in a construction)
back_thermal_absorbtance (optional)
Back thermal absorbtance (i.e., emissitivy; from 0 to 1) (Back being the side closer to the last material in a construction)
Gas
Represents a Gas, as understood by the standard ISO-15099(2003).
Examples
.spl
Substance {
type: "Gas",
name: "Some Gas",
gas: "Xenon"
}
.json
{
"type": "Gas",
"name": "Some Gas",
"gas": "Xenon"
}
Full Specification
Gas {
name : string,
gas : GasSpecification, // optional,
}
name
The name of the Substance. Should be unique for each Substance in the Model object
gas (optional)
A predefined gas
GasSpecification
Represent a common gas, with known physical properties
Examples
.json
"Air"
Note: This object cannot be declared by itself in a
SIMPLEmodel, as it is always embeded on aSubstanceof typeGas
Supported Variants
Air
Air
Full Specification
"Air"
Argon
Argon
Full Specification
"Argon"
Krypton
Krypton
Full Specification
"Krypton"
Xenon
Xenon
Full Specification
"Xenon"
ShelterClass
Indicates how sheltered is the building. This affects its infiltration
Examples
.json
"Urban"
Note: This object cannot be declared by itself in a
SIMPLEmodel, as it is always embeded on aBuildingobject
Supported Variants
NoObstructions
No obstructions or local shielding
Full Specification
"NoObstructions"
IsolatedRural
Typical shelter for an isolated rural house
Full Specification
"IsolatedRural"
Urban
Typical shelter caused by other buildings across the street
Full Specification
"Urban"
LargeLotUrban
Typical shelter for urban buildings on larger lots
Full Specification
"LargeLotUrban"
SmallLotUrban
Typical shelter produced by buildings that are immediately adjacent.
Full Specification
"SmallLotUrban"
Surface
A fixed (i.e., not movable) surface in the building (or surroundings). This can be of any Construction, transparent or not.
Examples
.spl
// This should not be empty
Construction {
name: "the construction",
materials: []
}
Surface {
name: "the surface",
construction:"the construction",
vertices: [
0, 0, 0, // X, Y and Z of Vertex 0
1, 0, 0, // X, Y and Z of Vertex 1
1, 1, 0, // X, Y and Z of Vertex 2
0, 1, 0 // ...
]
}
.json
{
"name": "the surface",
"construction":"the construction",
"vertices": [
0, 0, 0,
1, 0, 0,
1, 1, 0,
0, 1, 0
]
}
Full Specification
Surface {
name : string,
vertices : Polygon3D,
construction : string,
front_boundary : Boundary,
back_boundary : Boundary,
category : SurfaceType, // optional,
precalculated_front_convection_coef : number, // optional,
precalculated_back_convection_coef : number, // optional,
}
name
The name of the surface
vertices
An array of Numbers representing the vertices of the surface. The length of this array must be divisible by 3.
construction
The name of the construction in the Model's Construction array
front_boundary
The Boundary in front of the Surface
back_boundary
The Boundary in back of the Surface
category (optional)
The Surface Category.
This field does not affect the simulations, as
it was designed to be used based on conventions (see
[SurfaceType] documentation). So, if no [SurfaceType]
is assigned, we cannot tell you what to do.
precalculated_front_convection_coef (optional)
The front convection coefficient, in W/m2K
This value fixes the value, so the automatic calculations in SIMPLE have no effect.
precalculated_back_convection_coef (optional)
The back convection coefficient, in W/m2K
This value fixes the value, so the automatic calculations in SIMPLE have no effect.
API Access
// by name
let my_surface = surface(string);
// by index
let my_surface = surface(int);
API
The following properties are available for simulating control algorithms. Control scripts can read all of them, but only set those that people (or control systems) can change in real life. The rest can only be set in research mode.
| Property | Can be set |
|---|---|
front_temperature | Research mode only |
back_temperature | Research mode only |
front_convection_coefficient | Research mode only |
back_convection_coefficient | Research mode only |
front_convective_heat_flow | Research mode only |
back_convective_heat_flow | Research mode only |
front_incident_solar_irradiance | Research mode only |
back_incident_solar_irradiance | Research mode only |
front_ir_irradiance | Research mode only |
back_ir_irradiance | Research mode only |
SurfaceType
The kind of surface, useful for pre- and post-processing.
This information does not affect the simulation outcome.
For example, SIMPLE will decide whether a wall is interior
or exterior based on the boundaries, and will not check these
labels. However, these labels can be useful for creating
measures (e.g., insulate all the exterior walls)
Example
.json
"ExteriorWall"
Supported Variants
ExteriorWall
A Wall that connects a space with the exterior.
Full Specification
"ExteriorWall"
InteriorWall
A Wall connecting two spaces
Full Specification
"InteriorWall"
GroundFloor
A useful horizontal surface that touches the ground
Full Specification
"GroundFloor"
ExteriorFloor
A floor that leads to the exterior (e.g., a floor suspended by columns)
Full Specification
"ExteriorFloor"
InteriorFloor
Floor/ceiling that connects two spaces, and whose area is part of the
building or project being modelled. For instance, the top ceiling of an
apartment is often, strictly speaking, an interior floor... but it is
not part of the sellable area of the apartment itself
Full Specification
"InteriorFloor"
Ceiling
A floor/ceiling that connect two spaces, but whose area is not part
of the area of the project/building (see the InteriorFloor variant).
Full Specification
"Ceiling"
Roof
A surfaces at the top of a building
Full Specification
"Roof"
Other
Other kind of surface
Full Specification
"Other"
TableShape
Shape of a table
Supported Variants
Other
Other kind of table
Full Specification
"Other"
Rectangular
Rectangular
Full Specification
"Rectangular"
Circular
Circular
Full Specification
"Circular"
LShaped
L-Shaped
Full Specification
"LShaped"
TableType
Type of a table
Supported Variants
Other
Other kind of table
Full Specification
"Other"
Dining
Dining table
Full Specification
"Dining"
Coffee
Cofee table
Full Specification
"Coffee"
TerrainClass
This class modifies the wind speed in the site
Supported Variants
Country
Describes a Flat, Open Country
Full Specification
"Country"
Suburbs
Describes a Rough, Wooded Country or Suburb
Full Specification
"Suburbs"
City
Describes Towns, City Outskirts, and centers of large cities
Full Specification
"City"
Ocean
Describes sites next to the Ocean or Bayou Flat
Full Specification
"Ocean"
Urban
Describes Urban, Industrual or Forest terrain
Full Specification
"Urban"
Workplane
A horizontal plane over the floor of a Space, covered
by a grid of upward-facing sensors that measure the daylight illuminance
(e.g., to report how many hours of the year each point receives more
than 300 lux).
Workplanes are only for reporting: they consider daylight only, and they are not part of the simulation state (i.e., they cannot be used for control).
Examples
.spl
Workplane {
name: "Desks",
space: "Office",
height: 0.8,
spacing: 0.25
}
.json
{
"name": "Desks",
"space": "Office",
"height": 0.8,
"spacing": 0.25
}
Full Specification
Workplane {
name : string,
space : string,
height : number, // optional,
spacing : number, // optional,
n_ambient_samples : int, // optional,
}
name
The name of the workplane
space
The name of the space over whose floor the workplane is placed
height (optional)
The height of the workplane over the floor, in m (0.7 by default)
spacing (optional)
The distance between the sensors, in m (0.5 by default). The
sensors are placed on a regular grid, aligned with the X and Y axes.
Smaller values mean more sensors, and so more detailed results; but also a longer time for creating the model and for each timestep.
n_ambient_samples (optional)
The number of rays sent from each sensor when calculating its
daylight coefficients (300 by default). More rays mean less noise,
but a longer time for creating the model (the time required for
each timestep is not affected).


