OpenStudioCore:model
 AllClasses Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages

#include "Space.hpp"

Inheritance diagram for openstudio::model::Space:

Public Member Functions

 Space (const Model &model)
virtual ~Space ()
bool partofTotalFloorArea () const
bool isPartofTotalFloorAreaDefaulted () const
void setPartofTotalFloorArea (bool partofTotalFloorArea)
void resetPartofTotalFloorArea ()
boost::optional< SpaceTypespaceType () const
bool isSpaceTypeDefaulted () const
bool setSpaceType (const SpaceType &spaceType)
void resetSpaceType ()
boost::optional
< DefaultConstructionSet
defaultConstructionSet () const
boost::optional< ConstructionBasegetDefaultConstruction (const PlanarSurface &planarSurface) const
boost::optional< std::pair
< ConstructionBase, int > > 
getDefaultConstructionWithSearchDistance (const PlanarSurface &planarSurface) const
bool setDefaultConstructionSet (const DefaultConstructionSet &defaultConstructionSet)
void resetDefaultConstructionSet ()
boost::optional
< DefaultScheduleSet
defaultScheduleSet () const
boost::optional< SchedulegetDefaultSchedule (const DefaultScheduleType &defaultScheduleType) const
bool setDefaultScheduleSet (const DefaultScheduleSet &defaultScheduleSet)
void resetDefaultScheduleSet ()
boost::optional< ThermalZonethermalZone () const
bool setThermalZone (ThermalZone &thermalZone)
void resetThermalZone ()
boost::optional< BuildingStorybuildingStory () const
bool setBuildingStory (const BuildingStory &buildingStory)
void resetBuildingStory ()
std::vector< ShadingSurfaceGroupshadingSurfaceGroups () const
std::vector
< InteriorPartitionSurfaceGroup
interiorPartitionSurfaceGroups () const
std::vector< Surfacesurfaces () const
std::vector< InternalMassinternalMass () const
std::vector< Peoplepeople () const
std::vector< Lightslights () const
std::vector< Luminaireluminaires () const
std::vector< ElectricEquipmentelectricEquipment () const
std::vector< GasEquipmentgasEquipment () const
std::vector< HotWaterEquipmenthotWaterEquipment () const
std::vector< SteamEquipmentsteamEquipment () const
std::vector< OtherEquipmentotherEquipment () const
std::vector< WaterUseEquipmentwaterUseEquipment () const
std::vector< DaylightingControldaylightingControls () const
std::vector< IlluminanceMapilluminanceMaps () const
std::vector< GlareSensorglareSensors () const
std::vector
< SpaceInfiltrationDesignFlowRate
spaceInfiltrationDesignFlowRates () const
std::vector
< SpaceInfiltrationEffectiveLeakageArea
spaceInfiltrationEffectiveLeakageAreas () const
boost::optional
< DesignSpecificationOutdoorAir
designSpecificationOutdoorAir () const
bool isDesignSpecificationOutdoorAirDefaulted () const
bool setDesignSpecificationOutdoorAir (const DesignSpecificationOutdoorAir &designSpecificationOutdoorAir)
void resetDesignSpecificationOutdoorAir ()
int multiplier () const
double floorArea () const
double exteriorArea () const
double exteriorWallArea () const
double volume () const
double numberOfPeople () const
bool setNumberOfPeople (double numberOfPeople)
bool setNumberOfPeople (double numberOfPeople, const People &templatePeople)
double peoplePerFloorArea () const
bool setPeoplePerFloorArea (double peoplePerFloorArea)
bool setPeoplePerFloorArea (double peoplePerFloorArea, const People &templatePeople)
double floorAreaPerPerson () const
bool setFloorAreaPerPerson (double floorAreaPerPerson)
bool setFloorAreaPerPerson (double floorAreaPerPerson, const People &templatePeople)
double lightingPower () const
bool setLightingPower (double lightingPower)
bool setLightingPower (double lightingPower, const Lights &templateLights)
double lightingPowerPerFloorArea () const
bool setLightingPowerPerFloorArea (double lightingPowerPerFloorArea)
bool setLightingPowerPerFloorArea (double lightingPowerPerFloorArea, const Lights &templateLights)
double lightingPowerPerPerson () const
bool setLightingPowerPerPerson (double lightingPowerPerPerson)
bool setLightingPowerPerPerson (double lightingPowerPerPerson, const Lights &templateLights)
double electricEquipmentPower () const
bool setElectricEquipmentPower (double electricEquipmentPower)
bool setElectricEquipmentPower (double electricEquipmentPower, const ElectricEquipment &templateElectricEquipment)
double electricEquipmentPowerPerFloorArea () const
bool setElectricEquipmentPowerPerFloorArea (double electricEquipmentPowerPerFloorArea)
bool setElectricEquipmentPowerPerFloorArea (double electricEquipmentPowerPerFloorArea, const ElectricEquipment &templateElectricEquipment)
double electricEquipmentPowerPerPerson () const
bool setElectricEquipmentPowerPerPerson (double electricEquipmentPowerPerPerson)
bool setElectricEquipmentPowerPerPerson (double electricEquipmentPowerPerPerson, const ElectricEquipment &templateElectricEquipment)
double gasEquipmentPower () const
bool setGasEquipmentPower (double gasEquipmentPower)
bool setGasEquipmentPower (double gasEquipmentPower, const GasEquipment &templateGasEquipment)
double gasEquipmentPowerPerFloorArea () const
bool setGasEquipmentPowerPerFloorArea (double gasEquipmentPowerPerFloorArea)
bool setGasEquipmentPowerPerFloorArea (double gasEquipmentPowerPerFloorArea, const GasEquipment &templateGasEquipment)
double gasEquipmentPowerPerPerson () const
bool setGasEquipmentPowerPerPerson (double gasEquipmentPowerPerPerson)
bool setGasEquipmentPowerPerPerson (double gasEquipmentPowerPerPerson, const GasEquipment &templateGasEquipment)
double infiltrationDesignFlowRate () const
double infiltrationDesignFlowPerSpaceFloorArea () const
double infiltrationDesignFlowPerExteriorSurfaceArea () const
double infiltrationDesignFlowPerExteriorWallArea () const
double infiltrationDesignAirChangesPerHour () const
void hardApplySpaceType (bool hardSizeLoads)
void hardApplySpaceLoadSchedules ()
void hardApplyConstructions ()
void unmatchSurfaces ()
void matchSurfaces (Space &other)
void intersectSurfaces (Space &other)
std::vector< SurfacefindSurfaces (boost::optional< double > minDegreesFromNorth, boost::optional< double > maxDegreesFromNorth, boost::optional< double > minDegreesTilt, boost::optional< double > maxDegreesTilt, double tol=1)
std::vector< Point3dfloorPrint () const
bool isPlenum () const

Static Public Member Functions

static boost::optional< SpacefromFloorPrint (const std::vector< Point3d > &floorPrint, double floorHeight, Model &model)
static IddObjectType iddObjectType ()

Related Functions

typedef boost::optional< SpaceOptionalSpace
typedef std::vector< SpaceSpaceVector

Detailed Description

Space is a PlanarSurfaceGroup that wraps the OpenStudio IDD object 'OS_Space'.

Constructor & Destructor Documentation

openstudio::model::Space::Space ( const Model model)
explicit

Creates a new space in the model, if a building level space type is defined then the space inherits that by default.

virtual openstudio::model::Space::~Space ( )
inlinevirtual

Member Function Documentation

boost::optional<BuildingStory> openstudio::model::Space::buildingStory ( ) const
std::vector<DaylightingControl> openstudio::model::Space::daylightingControls ( ) const

Returns all DaylightingControls in this space.

boost::optional<DefaultConstructionSet> openstudio::model::Space::defaultConstructionSet ( ) const

Returns the default construction set that this space references directly.

boost::optional<DefaultScheduleSet> openstudio::model::Space::defaultScheduleSet ( ) const

Returns the default schedule set that this space references directly.

boost::optional<DesignSpecificationOutdoorAir> openstudio::model::Space::designSpecificationOutdoorAir ( ) const

Returns DesignSpecificationOutdoorAir for this space, if not set directly on this space then the SpaceType's DesignSpecificationOutdoorAir will be returned.

std::vector<ElectricEquipment> openstudio::model::Space::electricEquipment ( ) const

Returns all ElectricEquipment in this space.

double openstudio::model::Space::electricEquipmentPower ( ) const

Returns the electric equipment power (W) of this space.

Does not include space multiplier in calculation. Does include equipment multiplier in calculation.

double openstudio::model::Space::electricEquipmentPowerPerFloorArea ( ) const

Returns the electric equipment power density (W/m^2) of this space.

Does not include space multiplier in calculation. Does include equipment multiplier in calculation.

double openstudio::model::Space::electricEquipmentPowerPerPerson ( ) const

Returns the electric equipment power per person (W/person) of this space.

Does not include space multiplier in calculation. Does include equipment multiplier in calculation.

double openstudio::model::Space::exteriorArea ( ) const

Returns the exterior area (gross area of surfaces with outdoor boundary condition) (m^2).

Does not include space multiplier in calculation.

double openstudio::model::Space::exteriorWallArea ( ) const

Returns the exterior wall area (gross area of surfaces with outdoor boundary condition) (m^2).

Does not include space multiplier in calculation.

std::vector<Surface> openstudio::model::Space::findSurfaces ( boost::optional< double >  minDegreesFromNorth,
boost::optional< double >  maxDegreesFromNorth,
boost::optional< double >  minDegreesTilt,
boost::optional< double >  maxDegreesTilt,
double  tol = 1 
)

Find surfaces within angular range, specified in degrees and in the site coordinate system, an unset optional means no limit.

Values for degrees from North are between 0 and 360 and for degrees tilt they are between 0 and 180. Note that maxDegreesFromNorth may be less than minDegreesFromNorth, e.g. to search between NorthWest and NorthEast set minDegreesFromNorth = 315 and maxDegreesFromNorth = 45. The value of maxDegreesTilt must be greater than or equal to minDegreesTilt. A tolerance of one degree is applied by default.

double openstudio::model::Space::floorArea ( ) const

Returns the floor area (m^2).

Does not consider if space is included in building floor area. Does not include space multiplier in calculation.

double openstudio::model::Space::floorAreaPerPerson ( ) const

Returns the total floor area per person in this space (m^2/person).

Does not include space multiplier in calculation. Does include people multiplier in calculation.

std::vector<Point3d> openstudio::model::Space::floorPrint ( ) const

Returns the floor print of the space.

Will return empty vector if all floors in space are not on the same x,y plane.

static boost::optional<Space> openstudio::model::Space::fromFloorPrint ( const std::vector< Point3d > &  floorPrint,
double  floorHeight,
Model model 
)
static

Create a space from a floor print and extrude distance.

std::vector<GasEquipment> openstudio::model::Space::gasEquipment ( ) const

Returns all GasEquipment in this space.

double openstudio::model::Space::gasEquipmentPower ( ) const

Returns the gas equipment power (W) of this space.

Does not include space multiplier in calculation. Does include equipment multiplier in calculation.

double openstudio::model::Space::gasEquipmentPowerPerFloorArea ( ) const

Returns the gas equipment power density (W/m^2) of this space.

Does not include space multiplier in calculation. Does include equipment multiplier in calculation.

double openstudio::model::Space::gasEquipmentPowerPerPerson ( ) const

Returns the gas equipment power per person (W/person) of this space.

Does not include space multiplier in calculation. Does include equipment multiplier in calculation.

boost::optional<ConstructionBase> openstudio::model::Space::getDefaultConstruction ( const PlanarSurface planarSurface) const

Returns the default construction for this planar surface if available by searching (in order): This space's default construction set, search distance = 1 This space's space type's default construction set, search distance = 2 This space's building story's default construction set, search distance = 3 This space's building's default construction set, search distance = 4 This space's building's space type's default construction set, search distance = 5.

boost::optional<std::pair<ConstructionBase, int> > openstudio::model::Space::getDefaultConstructionWithSearchDistance ( const PlanarSurface planarSurface) const
boost::optional<Schedule> openstudio::model::Space::getDefaultSchedule ( const DefaultScheduleType defaultScheduleType) const

Returns the default schedule set for the specified type if available by searching (in order): This space's default schedule set This space's space type's default schedule set This space's building story's default schedule set The building's default schedule set The building's space type's default schedule set.

std::vector<GlareSensor> openstudio::model::Space::glareSensors ( ) const

Returns all GlareSensors in this space.

void openstudio::model::Space::hardApplyConstructions ( )

Set all constructions for child surfaces to their default value if there is one.

void openstudio::model::Space::hardApplySpaceLoadSchedules ( )

Set all schedules for child space loads to their default value if there is one.

void openstudio::model::Space::hardApplySpaceType ( bool  hardSizeLoads)

The following functionality is used by the EnergyPlus translator, the primary aim is to preserve information while putting the space into a state where it can easily be translated to EnergyPlus: Clone the space type if there is a space type Hard apply schedules to space type loads if there is a space type Move space loads from space type to space if there is a space type Merge space type default constructions with space default constructions if there is a space type Hard apply schedules to space loads If hard sizing loads, make each space load refer to unique definition and hard size it Remove the cloned space type if there is a space type.

std::vector<HotWaterEquipment> openstudio::model::Space::hotWaterEquipment ( ) const

Returns all HotWaterEquipment in this space.

static IddObjectType openstudio::model::Space::iddObjectType ( )
static
std::vector<IlluminanceMap> openstudio::model::Space::illuminanceMaps ( ) const

Returns all IlluminanceMaps in this space.

double openstudio::model::Space::infiltrationDesignAirChangesPerHour ( ) const

Returns the infiltration design air changes per hour (1/h) in the space.

Ignores SpaceInfiltrationEffectiveLeakageArea objects. Does not include space multiplier in calculation.

double openstudio::model::Space::infiltrationDesignFlowPerExteriorSurfaceArea ( ) const

Returns the infiltration design flow per exterior surface area (m^3/m^2*s) in the space.

Ignores SpaceInfiltrationEffectiveLeakageArea objects. Does not include space multiplier in calculation.

double openstudio::model::Space::infiltrationDesignFlowPerExteriorWallArea ( ) const

Returns the infiltration design flow per exterior wall area (m^3/m^2*s) in the space.

Ignores SpaceInfiltrationEffectiveLeakageArea objects. Does not include space multiplier in calculation.

double openstudio::model::Space::infiltrationDesignFlowPerSpaceFloorArea ( ) const

Returns the infiltration design flow per space floor area (m^3/m^2*s) in the space.

Ignores SpaceInfiltrationEffectiveLeakageArea objects. Does not include space multiplier in calculation.

double openstudio::model::Space::infiltrationDesignFlowRate ( ) const

Returns the infiltration design flow rate (m^3/s) in the space.

Ignores SpaceInfiltrationEffectiveLeakageArea objects. Does not include space multiplier in calculation.

std::vector<InteriorPartitionSurfaceGroup> openstudio::model::Space::interiorPartitionSurfaceGroups ( ) const

Returns all InteriorPartitionSurfaceGroups in this space.

std::vector<InternalMass> openstudio::model::Space::internalMass ( ) const

Returns all InternalMass in this space.

void openstudio::model::Space::intersectSurfaces ( Space other)

Intersect surfaces in this space with those in the other.

bool openstudio::model::Space::isDesignSpecificationOutdoorAirDefaulted ( ) const

Returns true if DesignSpecificationOutdoorAir is not directly specified for this space.

bool openstudio::model::Space::isPartofTotalFloorAreaDefaulted ( ) const
bool openstudio::model::Space::isPlenum ( ) const

Return true if the ThermalZone is a plenum, otherwise returns false.

bool openstudio::model::Space::isSpaceTypeDefaulted ( ) const

Returns true if space type for this space is inherited from the building.

double openstudio::model::Space::lightingPower ( ) const

Returns the lighting power (W) of this space.

Does not include space multiplier in calculation. Does include lighting multiplier in calculation.

double openstudio::model::Space::lightingPowerPerFloorArea ( ) const

Returns the lighting power density (W/m^2) of this zone.

Does not include space multiplier in calculation. Does include lighting multiplier in calculation.

double openstudio::model::Space::lightingPowerPerPerson ( ) const

Returns the lighting power per person (W/person) of this zone.

Does not include space multiplier in calculation. Does include lighting multiplier in calculation.

std::vector<Lights> openstudio::model::Space::lights ( ) const

Returns all Lights in this space.

std::vector<Luminaire> openstudio::model::Space::luminaires ( ) const

Returns all Luminaires in this space.

void openstudio::model::Space::matchSurfaces ( Space other)

Match surfaces and sub surfaces in this space with those in the other.

int openstudio::model::Space::multiplier ( ) const

Returns the multiplier for this space, comes from thermal zone, defaults to 1.

double openstudio::model::Space::numberOfPeople ( ) const

Returns the number of people in the space (people).

Does not include space multiplier in calculation. Does include people multiplier in calculation.

std::vector<OtherEquipment> openstudio::model::Space::otherEquipment ( ) const

Returns all OtherEquipment in this space.

bool openstudio::model::Space::partofTotalFloorArea ( ) const
std::vector<People> openstudio::model::Space::people ( ) const

Returns all People in this space.

double openstudio::model::Space::peoplePerFloorArea ( ) const

Returns the total people per floor area in this space (people/m^2).

Does not include space multiplier in calculation. Does include people multiplier in calculation.

void openstudio::model::Space::resetBuildingStory ( )
void openstudio::model::Space::resetDefaultConstructionSet ( )

Resets the default construction set for this space.

void openstudio::model::Space::resetDefaultScheduleSet ( )

Resets the default schedule set for this space.

void openstudio::model::Space::resetDesignSpecificationOutdoorAir ( )

Resets DesignSpecificationOutdoorAir for this space.

void openstudio::model::Space::resetPartofTotalFloorArea ( )
void openstudio::model::Space::resetSpaceType ( )

Resets the space type for this space.

void openstudio::model::Space::resetThermalZone ( )
bool openstudio::model::Space::setBuildingStory ( const BuildingStory buildingStory)
bool openstudio::model::Space::setDefaultConstructionSet ( const DefaultConstructionSet defaultConstructionSet)

Sets the default construction set for this space directly.

bool openstudio::model::Space::setDefaultScheduleSet ( const DefaultScheduleSet defaultScheduleSet)

Sets the default schedule set for this space directly.

bool openstudio::model::Space::setDesignSpecificationOutdoorAir ( const DesignSpecificationOutdoorAir designSpecificationOutdoorAir)

Sets DesignSpecificationOutdoorAir for this space.

bool openstudio::model::Space::setElectricEquipmentPower ( double  electricEquipmentPower)

Sets the electric equipment power in this space by using electricEquipment()[0], if it exists, as a template for the remaining ElectricEquipment and ElectricEquipment Definition parameters.

All other electricEquipment() in this space will be removed, the SpaceType will be made unique and modified, if necessary, and the final ElectricEquipment object will be attached directly to this Space, not to a SpaceType.

bool openstudio::model::Space::setElectricEquipmentPower ( double  electricEquipmentPower,
const ElectricEquipment templateElectricEquipment 
)

Sets the electric equipment power in this space using templateElectricEquipment as a template for the remaining ElectricEquipment and ElectricEquipment Definition parameters.

All other electricEquipment() in this space will be removed, the SpaceType will be made unique and modified, if necessary, and the final ElectricEquipment object will be attached directly to this Space, not to a SpaceType.

bool openstudio::model::Space::setElectricEquipmentPowerPerFloorArea ( double  electricEquipmentPowerPerFloorArea)

Sets the electric equipment power per floor area in this space by using electricEquipment()[0], if it exists, as a template for the remaining ElectricEquipment and ElectricEquipment Definition parameters.

All other electricEquipment() in this space will be removed, the SpaceType will be made unique and modified, if necessary, and the final ElectricEquipment object will be attached directly to this Space, not to a SpaceType.

bool openstudio::model::Space::setElectricEquipmentPowerPerFloorArea ( double  electricEquipmentPowerPerFloorArea,
const ElectricEquipment templateElectricEquipment 
)

Sets the electric equipment power per floor area in this space using templateElectricEquipment as a template for the remaining ElectricEquipment and ElectricEquipment Definition parameters.

All other electricEquipment() in this space will be removed, the SpaceType will be made unique and modified, if necessary, and the final ElectricEquipment object will be attached directly to this Space, not to a SpaceType.

bool openstudio::model::Space::setElectricEquipmentPowerPerPerson ( double  electricEquipmentPowerPerPerson)

Sets the electric equipment power per person in this space by using electricEquipment()[0], if it exists, as a template for the remaining ElectricEquipment and ElectricEquipment Definition parameters.

All other electricEquipment() in this space will be removed, the SpaceType will be made unique and modified, if necessary, and the final ElectricEquipment object will be attached directly to this Space, not to a SpaceType.

bool openstudio::model::Space::setElectricEquipmentPowerPerPerson ( double  electricEquipmentPowerPerPerson,
const ElectricEquipment templateElectricEquipment 
)

Sets the electric equipment power per person in this space using templateElectricEquipment as a template for the remaining ElectricEquipment and ElectricEquipment Definition parameters.

All other electricEquipment() in this space will be removed, the SpaceType will be made unique and modified, if necessary, and the final ElectricEquipment object will be attached directly to this Space, not to a SpaceType.

bool openstudio::model::Space::setFloorAreaPerPerson ( double  floorAreaPerPerson)

Sets the floor area per person in this space by using people()[0], if it exists, as a template for the remaining People and People definition parameters.

All other people() in this SpaceType will be removed, the SpaceType will be made unique and modified, if necessary, and the final People object will be attached directly to this Space, not to a SpaceType.

bool openstudio::model::Space::setFloorAreaPerPerson ( double  floorAreaPerPerson,
const People templatePeople 
)

Sets the floor area per person in this Space using templatePeople as a template for the remaining People and People definition parameters.

All other people() in this SpaceType will be removed, the SpaceType will be made unique and modified, if necessary, and the final People object will be attached directly to this Space, not to a SpaceType.

bool openstudio::model::Space::setGasEquipmentPower ( double  gasEquipmentPower)

Sets the gas equipment power in this space by using gasEquipment()[0], if it exists, as a template for the remaining GasEquipment and GasEquipment Definition parameters.

All other gasEquipment() in this space will be removed, the SpaceType will be made unique and modified, if necessary, and the final GasEquipment object will be attached directly to this Space, not to a SpaceType.

bool openstudio::model::Space::setGasEquipmentPower ( double  gasEquipmentPower,
const GasEquipment templateGasEquipment 
)

Sets the gas equipment power in this space using templateGasEquipment as a template for the remaining GasEquipment and GasEquipment Definition parameters.

All other gasEquipment() in this space will be removed, the SpaceType will be made unique and modified, if necessary, and the final GasEquipment object will be attached directly to this Space, not to a SpaceType.

bool openstudio::model::Space::setGasEquipmentPowerPerFloorArea ( double  gasEquipmentPowerPerFloorArea)

Sets the gas equipment power per floor area in this space by using gasEquipment()[0], if it exists, as a template for the remaining GasEquipment and GasEquipment Definition parameters.

All other gasEquipment() in this space will be removed, the SpaceType will be made unique and modified, if necessary, and the final GasEquipment object will be attached directly to this Space, not to a SpaceType.

bool openstudio::model::Space::setGasEquipmentPowerPerFloorArea ( double  gasEquipmentPowerPerFloorArea,
const GasEquipment templateGasEquipment 
)

Sets the gas equipment power per floor area in this space using templateGasEquipment as a template for the remaining GasEquipment and GasEquipment Definition parameters.

All other gasEquipment() in this space will be removed, the SpaceType will be made unique and modified, if necessary, and the final GasEquipment object will be attached directly to this Space, not to a SpaceType.

bool openstudio::model::Space::setGasEquipmentPowerPerPerson ( double  gasEquipmentPowerPerPerson)

Sets the gas equipment power per person in this space by using gasEquipment()[0], if it exists, as a template for the remaining GasEquipment and GasEquipment Definition parameters.

All other gasEquipment() in this space will be removed, the SpaceType will be made unique and modified, if necessary, and the final GasEquipment object will be attached directly to this Space, not to a SpaceType.

bool openstudio::model::Space::setGasEquipmentPowerPerPerson ( double  gasEquipmentPowerPerPerson,
const GasEquipment templateGasEquipment 
)

Sets the gas equipment power per person in this space using templateGasEquipment as a template for the remaining GasEquipment and GasEquipment Definition parameters.

All other gasEquipment() in this space will be removed, the SpaceType will be made unique and modified, if necessary, and the final GasEquipment object will be attached directly to this Space, not to a SpaceType.

bool openstudio::model::Space::setLightingPower ( double  lightingPower)

Sets the lighting power in this space by using lights()[0], if it exists, as a template for the remaining Lights and Lights Definition parameters.

All other lights() and luminaires() in this space will be removed, the SpaceType will be made unique and modified, if necessary, and the final Lights object will be attached directly to this Space, not to a SpaceType.

bool openstudio::model::Space::setLightingPower ( double  lightingPower,
const Lights templateLights 
)

Sets the lighting power in this space using templateLights as a template for the remaining Lights and Lights Definition parameters.

All other lights() and luminaires in this space will be removed, the SpaceType will be made unique and modified, if necessary, and the final Lights object will be attached directly to this Space, not to a SpaceType.

bool openstudio::model::Space::setLightingPowerPerFloorArea ( double  lightingPowerPerFloorArea)

Sets the lighting power per floor area in this space by using lights()[0], if it exists, as a template for the remaining Lights and Lights Definition parameters.

All other lights() and luminaires() in this space will be removed, the SpaceType will be made unique and modified, if necessary, and the final Lights object will be attached directly to this Space, not to a SpaceType.

bool openstudio::model::Space::setLightingPowerPerFloorArea ( double  lightingPowerPerFloorArea,
const Lights templateLights 
)

Sets the lighting power per floor area in this space using templateLights as a template for the remaining Lights and Lights Definition parameters.

All other lights() and luminaires() in this space will be removed, the SpaceType will be made unique and modified, if necessary, and the final Lights object will be attached directly to this Space, not to a SpaceType.

bool openstudio::model::Space::setLightingPowerPerPerson ( double  lightingPowerPerPerson)

Sets the lighting power per person in this space by using lights()[0], if it exists, as a template for the remaining Lights and Lights Definition parameters.

All other lights() and luminaires() in this space will be removed, the SpaceType will be made unique and modified, if necessary, and the final Lights object will be attached directly to this Space, not to a SpaceType.

bool openstudio::model::Space::setLightingPowerPerPerson ( double  lightingPowerPerPerson,
const Lights templateLights 
)

Sets the lighting power per person in this space using templateLights as a template for the remaining Lights and Lights Definition parameters.

All other lights() and luminaires() in this space will be removed, the SpaceType will be made unique and modified, if necessary, and the final Lights object will be attached directly to this Space, not to a SpaceType.

bool openstudio::model::Space::setNumberOfPeople ( double  numberOfPeople)

Sets the number of people in this space by using people()[0], if it exists, as a template for the remaining People and People definition parameters.

All other people() in this SpaceType will be removed, the SpaceType will be made unique and modified, if necessary, and the final People object will be attached directly to this Space, not to a SpaceType.

bool openstudio::model::Space::setNumberOfPeople ( double  numberOfPeople,
const People templatePeople 
)

Sets the number of people in this space using templatePeople as a template for the remaining People and People definition parameters.

All other people() in this SpaceType will be removed, the SpaceType will be made unique and modified, if necessary, and the final People object will be attached directly to this Space, not to a SpaceType.

void openstudio::model::Space::setPartofTotalFloorArea ( bool  partofTotalFloorArea)
bool openstudio::model::Space::setPeoplePerFloorArea ( double  peoplePerFloorArea)

Sets the people per floor area in this space by using people()[0], if it exists, as a template for the remaining People and People definition parameters.

All other people() in this SpaceType will be removed, the SpaceType will be made unique and modified, if necessary, and the final People object will be attached directly to this Space, not to a SpaceType.

bool openstudio::model::Space::setPeoplePerFloorArea ( double  peoplePerFloorArea,
const People templatePeople 
)

Sets the people per floor area in this space using templatePeople as a template for the remaining People and People definition parameters.

All other people() in this SpaceType will be removed, the SpaceType will be made unique and modified, if necessary, and the final People object will be attached directly to this Space, not to a SpaceType.

bool openstudio::model::Space::setSpaceType ( const SpaceType spaceType)

Sets the space type for this space.

bool openstudio::model::Space::setThermalZone ( ThermalZone thermalZone)
std::vector<ShadingSurfaceGroup> openstudio::model::Space::shadingSurfaceGroups ( ) const

Returns all ShadingSurfaceGroups in this space.

std::vector<SpaceInfiltrationDesignFlowRate> openstudio::model::Space::spaceInfiltrationDesignFlowRates ( ) const

Returns all SpaceInfiltrationDesignFlowRate objects in this space.

std::vector<SpaceInfiltrationEffectiveLeakageArea> openstudio::model::Space::spaceInfiltrationEffectiveLeakageAreas ( ) const

Returns all SpaceInfiltrationEffectiveLeakageArea objects in this space.

boost::optional<SpaceType> openstudio::model::Space::spaceType ( ) const

Returns the space type for this space.

std::vector<SteamEquipment> openstudio::model::Space::steamEquipment ( ) const

Returns all SteamEquipment in this space.

std::vector<Surface> openstudio::model::Space::surfaces ( ) const

Returns all Surfaces in this space.

boost::optional<ThermalZone> openstudio::model::Space::thermalZone ( ) const
void openstudio::model::Space::unmatchSurfaces ( )

Unmatch any matched surfaces and sub surfaces in this space.

double openstudio::model::Space::volume ( ) const

Returns the volume (m^3).

Does not include space multiplier in calculation.

std::vector<WaterUseEquipment> openstudio::model::Space::waterUseEquipment ( ) const

Returns all WaterUseEquipment in this space.

Friends And Related Function Documentation

typedef boost::optional<Space> OptionalSpace
related
typedef std::vector<Space> SpaceVector
related