MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / lightingPowerPerPerson

Method lightingPowerPerPerson

src/model/Space.cpp:1509–1531  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1507 }
1508
1509 double Space_Impl::lightingPowerPerPerson() const {
1510 double result(0.0);
1511 double area = floorArea();
1512 double numPeople = numberOfPeople();
1513
1514 for (const Lights& light : lights()) {
1515 result += light.getPowerPerPerson(area, numPeople);
1516 }
1517 for (const Luminaire& luminaire : luminaires()) {
1518 result += luminaire.getPowerPerPerson(numPeople);
1519 }
1520
1521 if (OptionalSpaceType spaceType = this->spaceType()) {
1522 for (const Lights& light : spaceType->lights()) {
1523 result += light.getPowerPerPerson(area, numPeople);
1524 }
1525 for (const Luminaire& luminaire : spaceType->luminaires()) {
1526 result += luminaire.getPowerPerPerson(numPeople);
1527 }
1528 }
1529
1530 return result;
1531 }
1532
1533 bool Space_Impl::setLightingPowerPerPerson(double lightingPowerPerPerson) {
1534 OptionalLights templateLights;

Callers

nothing calls this directly

Calls 5

spaceTypeMethod · 0.95
floorAreaFunction · 0.85
getPowerPerPersonMethod · 0.45
lightsMethod · 0.45
luminairesMethod · 0.45

Tested by

no test coverage detected