honeybee_energy_ph.properties.materials.opaque module

Passive House properties for honeybee_energy.material.opaque.EnergyMaterial Objects

exception honeybee_energy_ph.properties.materials.opaque.CellPositionError(msg)[source]

Bases: Exception

An error for when a cell position is out of range.

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

args
class honeybee_energy_ph.properties.materials.opaque.EnergyMaterialNoMassPhProperties(_host: EnergyMaterialNoMass | None = None)[source]

Bases: object

ToString()[source]
apply_properties_from_dict(abridged_data: dict) None[source]
duplicate(new_host: EnergyMaterialNoMass | None = None) EnergyMaterialNoMassPhProperties[source]
classmethod from_dict(_input_dict: dict, _host: EnergyMaterialNoMass | None) EnergyMaterialNoMassPhProperties[source]
to_dict(abridged: bool = False) dict[str, dict][source]
property ph_color: PhColor | None
class honeybee_energy_ph.properties.materials.opaque.EnergyMaterialPhProperties(_host: EnergyMaterial | None = None)[source]

Bases: object

Passive House properties for EnergyMaterial objects.

ToString()[source]
add_base_material(_hb_material: Any) NoReturn[source]
apply_properties_from_dict(abridged_data: Any) None[source]
clear_base_materials() NoReturn[source]
duplicate(new_host: EnergyMaterial | None = None) EnergyMaterialPhProperties[source]
classmethod from_dict(_input_dict: dict, _host: EnergyMaterial | None) EnergyMaterialPhProperties[source]
to_dict(abridged: bool = False) dict[str, dict][source]
property base_material
property base_materials: NoReturn
property percentage_of_assembly: NoReturn
property ph_color: PhColor | None
class honeybee_energy_ph.properties.materials.opaque.EnergyMaterialVegetationPhProperties(_host: EnergyMaterialVegetation | None = None)[source]

Bases: object

ToString()[source]
apply_properties_from_dict(abridged_data)[source]
duplicate(new_host: EnergyMaterialVegetation | None = None) EnergyMaterialVegetationPhProperties[source]
classmethod from_dict(_input_dict: dict[str, Any], _host: EnergyMaterialVegetation | None) EnergyMaterialVegetationPhProperties[source]
to_dict(abridged: bool = False) dict[str, dict][source]
property ph_color: PhColor | None
class honeybee_energy_ph.properties.materials.opaque.PhDivisionCell(_row: int, _column: int, _hbe_material: EnergyMaterial)[source]

Bases: object

A single cell in a PhLayerDivisionGrid.

ToString()[source]
duplicate() PhDivisionCell[source]

Duplicate the cell.

classmethod from_dict(_input_dict: dict[str, Any]) PhDivisionCell[source]
to_dict() dict[str, Any][source]
class honeybee_energy_ph.properties.materials.opaque.PhDivisionGrid[source]

Bases: object

A grid of PhDivisionCell to support ‘mixed’ materials.

The Cell grid is ordered from top-left to bottom-right:

| C0 | C1 | C2 | …

|:---|:—:|:---:|:—:|:—: | R0 | 0,0 | 1,0 | 2,0 | … | R1 | 0,1 | 1,1 | 2,1 | … | R2 | 0,2 | 1,2 | 2,2 | …

ToString()[source]
add_new_column(_column_width: float) None[source]

Add a new COLUMN to the grid with the given width.

add_new_row(_row_height: float) None[source]

Add a new ROW to the grid with the given height.

duplicate() PhDivisionGrid[source]

Duplicate the grid.

classmethod from_dict(_input_dict: dict[str, Any]) PhDivisionGrid[source]
get_base_material() EnergyMaterial | None[source]

Returns the ‘base’ material (the most common material in the grid, by area).

get_cell(_column: int, _row: int) PhDivisionCell | None[source]

Get the PhDivisionCell at the given column and row position.

get_cell_area(_column_num: int, _row_num: int) float[source]

Get the area of a specific cell in the grid by its column/row position.

get_cell_height_m(_cell: PhDivisionCell) float[source]

Get the height (mm) of a specific cell.

get_cell_material(_column_num: int, _row_num: int) EnergyMaterial | None[source]

Get the PhxMaterial for a specific cell in the grid by its column/row position.

get_cell_width_m(_cell: PhDivisionCell) float[source]

Get the width (mm) of a specific cell.

get_equivalent_conductivity() float[source]

Return an area-weighted average of the conductivities of all materials in the grid.

set_cell_material(_column_num: int, _row_num: int, _hbe_material: EnergyMaterial) None[source]

Set the EnergyMaterial for a specific cell in the grid by its column/row position.

Cells are indexed by their column and row position stating from top-left:

| C0 | C1 | C2 | …

|---|——|-----|—–|—- |R0 | 0,0 | 1,0 | 2,0 | … |R1 | 0,1 | 1,1 | 2,1 | … |R2 | 0,2 | 1,2 | 2,2 | …

set_column_widths(_column_widths: Iterable[float]) None[source]

Set the column widths of the grid.

set_row_heights(_row_heights: Iterable[float]) None[source]

Set the row heights of the grid.

to_dict() dict[str, Any][source]
property cell_count: int

Return the total number of cells in the grid.

property cells: List[PhDivisionCell]

Return the list of all the cells in the grid, sorted by row/column.

property column_count: int

Return the number of columns in the grid.

property column_widths: List[float]

Return the list of column widths.

property is_a_steel_stud_cavity: bool

Check if the grid is a steel stud cavity by checking if the spacing is set.

property row_count: int

Return the number of rows in the grid.

property row_heights: List[float]

Return the list of row heights.