Skip to content

The floorArea method for Space can return a non deterministic result based on order of Surfaces #5465

@joseph-robertson

Description

@joseph-robertson

Issue overview

If OS:Space's "Floor Area" is not set in the OSM file, the floorArea method uses this->surfaces() to get the sum of surface gross areas. This can lead to a non deterministic result.

Current Behavior

It's possible for space.floorArea to return slightly different values.

Expected Behavior

The value should be the same every time the method is called.

Steps to Reproduce

Possible Solution

Is there a way we can step through surfaces in a deterministic order?

Details

Environment

Some additional details about your environment for this issue (if relevant):

  • Platform (Operating system, version):
  • Version of OpenStudio (if using an intermediate build, include SHA):

Context

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions