honeybee_energy.properties.model module

Model Energy Properties.

class honeybee_energy.properties.model.ModelEnergyProperties(host, ventilation_simulation_control=None)[source]

Bases: object

Energy Properties for Honeybee Model.

Parameters
  • host – A honeybee_core Model object that hosts these properties.

  • ventilation_simulation_control – A VentilationSimulationControl object that defines global parameters for ventilation simulation.

Properties:
  • host

  • materials

  • constructions

  • room_constructions

  • face_constructions

  • shade_constructions

  • construction_sets

  • global_construction_set

  • schedule_type_limits

  • schedules

  • shade_schedules

  • room_schedules

  • program_type_schedules

  • hvac_schedules

  • orphaned_trans_schedules

  • program_types

  • hvacs

  • shws

  • ventilation_simulation_control

ToString()[source]
add_autocal_properties_to_dict(data)[source]

Add auto-calculated energy properties to a Model dictionary.

This includes Room volumes, ceiling heights, and (in the case of Faces and Shades with holes) vertices. These properties are used in translation from Honeybee to OpenStudio to ensure that the properties in Honeybee are aligned with those in OSM, IDF, and gbXML.

Note that the host model must be in Meters in order for the added properties to be in the correct units system.

Parameters

data – A dictionary representation of an entire honeybee-core Model.

apply_properties_from_dict(data)[source]

Apply the energy properties of a dictionary to the host Model of this object.

Parameters

data – A dictionary representation of an entire honeybee-core Model. Note that this dictionary must have ModelEnergyProperties in order for this method to successfully apply the energy properties.

assign_dynamic_aperture_groups()[source]

Assign aperture groups to all Apertures with dynamic and shaded constructions.

Note that this method will only add two groups for each dynamic aperture. The first group will be completely transparent while the second group will be a 100% transmittance perfectly diffusing modifier. This is done with the assumption that EnergyPlus transmittance results will be used to appropriately account for the transmittance of states in the results.

assign_radiance_solar_exterior()[source]

Assign honeybee Radiance modifiers based on exterior solar properties.

assign_radiance_solar_interior()[source]

Assign honeybee Radiance modifiers based on interior solar properties.

assign_radiance_visible_exterior()[source]

Assign honeybee Radiance modifiers based on exterior visible properties.

assign_radiance_visible_interior()[source]

Assign honeybee Radiance modifiers based on interior visible properties.

autocalculate_ventilation_simulation_control()[source]

Set geometry properties of ventilation_simulation_control with Model’s rooms.

The room geometry of the host Model will be used to assign the aspect_ratio, long_axis_angle, and the building_type. Note that these properties are only meaningful for simulations using the AirflowNetwork.

check_all(raise_exception=True, detailed=False)[source]

Check all of the aspects of the Model energy properties.

Parameters
  • raise_exception – Boolean to note whether a ValueError should be raised if any errors are found. If False, this method will simply return a text string with all errors that were found. (Default: True).

  • detailed – Boolean for whether the returned object is a detailed list of dicts with error info or a string with a message. (Default: False).

Returns

A text string with all errors that were found or a list if detailed is True. This string (or list) will be empty if no errors were found.

check_duplicate_construction_identifiers(raise_exception=True, detailed=False)[source]

Check that there are no duplicate Construction identifiers in the model.

Parameters
  • raise_exception – Boolean to note whether a ValueError should be raised if duplicate identifiers are found. (Default: True).

  • detailed – Boolean for whether the returned object is a detailed list of dicts with error info or a string with a message. (Default: False).

Returns

A string with the message or a list with a dictionary if detailed is True.

check_duplicate_construction_set_identifiers(raise_exception=True, detailed=False)[source]

Check that there are no duplicate ConstructionSet identifiers in the model.

Parameters
  • raise_exception – Boolean to note whether a ValueError should be raised if duplicate identifiers are found. (Default: True).

  • detailed – Boolean for whether the returned object is a detailed list of dicts with error info or a string with a message. (Default: False).

Returns

A string with the message or a list with a dictionary if detailed is True.

check_duplicate_hvac_identifiers(raise_exception=True, detailed=False)[source]

Check that there are no duplicate HVAC identifiers in the model.

Parameters
  • raise_exception – Boolean to note whether a ValueError should be raised if duplicate identifiers are found. (Default: True).

  • detailed – Boolean for whether the returned object is a detailed list of dicts with error info or a string with a message. (Default: False).

Returns

A string with the message or a list with a dictionary if detailed is True.

check_duplicate_material_identifiers(raise_exception=True, detailed=False)[source]

Check that there are no duplicate Material identifiers in the model.

Parameters
  • raise_exception – Boolean to note whether a ValueError should be raised if duplicate identifiers are found. (Default: True).

  • detailed – Boolean for whether the returned object is a detailed list of dicts with error info or a string with a message. (Default: False).

Returns

A string with the message or a list with a dictionary if detailed is True.

check_duplicate_program_type_identifiers(raise_exception=True, detailed=False)[source]

Check that there are no duplicate ProgramType identifiers in the model.

Parameters
  • raise_exception – Boolean to note whether a ValueError should be raised if duplicate identifiers are found. (Default: True).

  • detailed – Boolean for whether the returned object is a detailed list of dicts with error info or a string with a message. (Default: False).

Returns

A string with the message or a list with a dictionary if detailed is True.

check_duplicate_schedule_identifiers(raise_exception=True, detailed=False)[source]

Check that there are no duplicate Schedule identifiers in the model.

Parameters
  • raise_exception – Boolean to note whether a ValueError should be raised if duplicate identifiers are found. (Default: True).

  • detailed – Boolean for whether the returned object is a detailed list of dicts with error info or a string with a message. (Default: False).

Returns

A string with the message or a list with a dictionary if detailed is True.

check_duplicate_schedule_type_limit_identifiers(raise_exception=True, detailed=False)[source]

Check that there are no duplicate ScheduleTypeLimit identifiers in the model.

Parameters
  • raise_exception – Boolean to note whether a ValueError should be raised if duplicate identifiers are found. (Default: True).

  • detailed – Boolean for whether the returned object is a detailed list of dicts with error info or a string with a message. (Default: False).

Returns

A string with the message or a list with a dictionary if detailed is True.

check_duplicate_shw_identifiers(raise_exception=True, detailed=False)[source]

Check that there are no duplicate SHW identifiers in the model.

Parameters
  • raise_exception – Boolean to note whether a ValueError should be raised if duplicate identifiers are found. (Default: True).

  • detailed – Boolean for whether the returned object is a detailed list of dicts with error info or a string with a message. (Default: False).

Returns

A string with the message or a list with a dictionary if detailed is True.

check_interior_constructions_reversed(raise_exception=True, detailed=False)[source]

Check that all interior constructions are in reversed order for paired faces.

Note that, if there are missing adjacencies in the model, the message from this method will simply note this fact without reporting on mis-matched layers.

Parameters
  • raise_exception – Boolean to note whether a ValueError should be raised if mis-matched interior construction layers are found. (Default: True).

  • detailed – Boolean for whether the returned object is a detailed list of dicts with error info or a string with a message. (Default: False).

Returns

A string with the message or a list with a dictionary if detailed is True.

check_one_vegetation_material(raise_exception=True, detailed=False)[source]

Check that there no more than one EnergyMaterialVegetation in the model.

It is a limitation of EnergyPlus that it can only simulate a single eco roof per model. This should probably be addressed at some point so that we don’t always have to check for it.

Parameters
  • raise_exception – Boolean for whether a ValueError should be raised if there’s more than one EnergyMaterialVegetation in the Model. (Default: True).

  • detailed – Boolean for whether the returned object is a detailed list of dicts with error info or a string with a message. (Default: False).

Returns

A string with the message or a list with a dictionary if detailed is True.

check_shw_rooms_in_model(raise_exception=True, detailed=False)[source]

Check that the room_identifiers of SHWSystems are in the model.

Parameters
  • raise_exception – Boolean to note whether a ValueError should be raised if SHWSystems reference Rooms that are not in the Model. (Default: True).

  • detailed – Boolean for whether the returned object is a detailed list of dicts with error info or a string with a message. (Default: False).

Returns

A string with the message or a list with a dictionary if detailed is True.

static dump_properties_to_dict(materials=None, constructions=None, construction_sets=None, schedule_type_limits=None, schedules=None, program_types=None, hvacs=None, shws=None)[source]

Get a ModelEnergyProperties dictionary from arrays of Python objects.

Parameters
  • materials – A list or tuple of energy material objects.

  • constructions – A list or tuple of construction objects.

  • construction_sets – A list or tuple of construction set objects.

  • schedule_type_limits – A list or tuple of schedule type limit objects.

  • schedules – A list or tuple of schedule objects.

  • program_types – A list or tuple of program type objects.

  • hvacs – A list or tuple of HVACSystem objects.

  • shws – A list or tuple of SHWSystem objects.

Returns

A dictionary representation of ModelEnergyProperties. Note that

all objects in this dictionary will follow the abridged schema.

Return type

data

duplicate(new_host=None)[source]

Get a copy of this object.

Parameters

new_host – A new Model object that hosts these properties. If None, the properties will be duplicated with the same host.

static load_properties_from_dict(data)[source]

Load model energy properties of a dictionary to Python objects.

Loaded objects include Materials, Constructions, ConstructionSets, ScheduleTypeLimits, Schedules, and ProgramTypes.

The function is called when re-serializing a Model object from a dictionary to load honeybee_energy objects into their Python object form before applying them to the Model geometry.

Parameters

data – A dictionary representation of an entire honeybee-core Model. Note that this dictionary must have ModelEnergyProperties in order for this method to successfully load the energy properties.

Returns

A tuple with eight elements

  • materials – A dictionary with identifiers of materials as keys and Python material objects as values.

  • constructions – A dictionary with identifiers of constructions as keys and Python construction objects as values.

  • construction_sets – A dictionary with identifiers of construction sets as keys and Python construction set objects as values.

  • schedule_type_limits – A dictionary with identifiers of schedule type limits as keys and Python schedule type limit objects as values.

  • schedules – A dictionary with identifiers of schedules as keys and Python schedule objects as values.

  • program_types – A dictionary with identifiers of program types as keys and Python program type objects as values.

  • hvacs – A dictionary with identifiers of HVAC systems as keys and Python HVACSystem objects as values.

  • shws – A dictionary with identifiers of SHW systems as keys and Python SHWSystem objects as values.

missing_adjacencies_to_adiabatic()[source]

Set any Faces with missing adjacencies in the model to adiabatic.

If any of the Faces with missing adjacencies have sub-faces, these will be removed in order to accommodate the adiabatic condition. Similarly, if the Face is an AirBoundary, the type will be set to a Wall.

Note that this method assumes all of the Surface boundary conditions are set up correctly with the last boundary_condition_object being the adjacent room.

offset_and_assign_exterior_face_modifiers(reflectance_type='Solar', offset=0.02)[source]

Offset all exterior Faces and assign them a modifier based on exterior layer.

This is often useful in conjunction with the assign_radiance_solar_interior or the assign_radiance_visible_interior to make a radiance model that accounts for both the interior and exterior material layers.

Note that this method will add the offset faces as orphaned faces and so the model will not be simulate-able in EnergyPlus after running this method (it is only intended to be simulated within Radiance).

Parameters
  • reflectance_type – Text for the type of reflectance to be used in the assigned modifier. Must be either Solar or Visible. (Default: Solar).

  • offset – A number for the distance at which the exterior Faces should be offset. (Default: 0.02, suitable for models in meters).

remove_child_constructions()[source]

Remove constructions assigned to Faces, Apertures, Doors and Shades.

This means that all constructions of the Mode’s rooms will be assigned by the Rooms’ construction_set (or the Honeybee default ConstructionSet if Rooms have no construction set).

simplify_window_constructions_in_dict(data)[source]

Convert all window constructions in a model dictionary to SimpleGlazSys.

This is useful when translating to gbXML and other formats that do not support layered window constructions.

Parameters

data – A dictionary representation of an entire honeybee-core Model.

to_dict()[source]

Return Model energy properties as a dictionary.

window_construction_by_orientation(construction, orientation=0, offset=45, north_vector=Vector2D(0.0, 1.0))[source]

Set the construction of exterior Apertures in Walls facing a given orientation.

This is useful for testing orientation-specific energy conservation strategies or creating ASHRAE baseline buildings.

Parameters
  • construction – A WindowConstruction that will be assigned to all of the room’s Apertures in Walls that are facing a certain orientation.

  • orientation – A number between 0 and 360 that represents the orientation in degrees to which the construction will be assigned. 0 = North, 90 = East, 180 = South, 270 = West. (Default: 0 for North).

  • offset – A number between 0 and 180 that represents the offset from the orientation in degrees for which the construction will be assigned. For example, a value of 45 indicates that any Apertures falling in the 90 degree range around the orientation will get the input construction. (Default: 45).

  • north_vector – A ladybug_geometry Vector3D for the north direction. Default is the Y-axis (0, 1).

property construction_schedules

Get a list of all unique schedules assigned to constructions in the model.

This includes schedules on al AirBoundaryConstructions.

property construction_sets

Get a list of all unique Room-Assigned ConstructionSets in the Model.

property constructions

Get a list of all unique constructions in the model.

This includes constructions across all Faces, Apertures, Doors, Shades, and Room ConstructionSets but it does NOT include the Honeybee generic default construction set.

property face_constructions

Get a list of all unique constructions assigned to Faces, Apertures and Doors.

property global_construction_set

The global energy construction set.

This is what is used whenever no construction has been assigned to a given Face/Aperture/Door/Shade and there is no construction_set assigned to the parent Room.

property host

Get the Model object hosting these properties.

property hvac_schedules

Get a list of all unique HVAC-assigned schedules in the model.

property hvacs

Get a list of all unique HVAC systems in the Model.

property materials

Get a list of all unique materials contained within the model.

This includes materials across all Faces, Apertures, Doors and Room ConstructionSets but it does NOT include the Honeybee generic default construction set.

property orphaned_trans_schedules

Get a list of constant transmittance schedules for transparent orphaned objs.

These schedules are not directly assigned to any honeybee objects but they are automatically generated from the constructions of orphaned objects. They are intended to be assigned to shade representations of the orphaned objects in the simulation in order to account for their transparency.

property program_type_schedules

Get a list of all unique schedules assigned to ProgramTypes in the model.

property program_types

Get a list of all unique ProgramTypes in the Model.

property room_constructions

Get a list of all unique constructions assigned to Room ConstructionSets.

This also includes the constructions assigned to Room InternalMasses.

property room_schedules

Get a list of all unique schedules assigned directly to Rooms in the model.

Note that this does not include schedules from ProgramTypes assigned to the rooms. For this, use the program_type_schedules property.

property schedule_type_limits

Get a list of all unique schedule type limits contained within the model.

This includes schedules across all Shades and Rooms.

property schedules

Get a list of all unique schedules directly assigned to objects in the model.

This includes schedules across all ProgramTypes, HVACs, Rooms and Shades. However, it does not include any of the orphaned_trans_schedules as these are not directly assigned to objects but rather generated from their constructions.

property shade_constructions

Get a list of all unique constructions assigned to Shades in the model.

property shade_schedules

Get a list of unique transmittance schedules assigned to Shades in the model.

property shws

Get a list of all unique SHW systems in the Model.

property ventilation_simulation_control

Get or set global parameters for ventilation cooling simulation.