Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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.

PropertyCan be set
power_consumptionYes