Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Revision history [back]

This is actually very easy using geomeppy. It's pretty much the use case that drove me to create it in the first place.

From the readme:

IDF.add_block(...) # automatically adds a building block to the IDF

This method requires some explanation. The parameters required are:

name : str
    A name for the block.
coordinates : list
    A list of (x, y) tuples representing the building outline.
height : float
    The height of the block roof above ground level.
num_stories : int, optional
    The total number of stories including basement stories. Default : 1.
below_ground_stories : int, optional
    The number of stories below ground. Default : 0.
below_ground_storey_height : float, optional
    The height of each basement storey. Default : 2.5.
zoning : str, optional
    The rules to use in creating zones. Currently the only option is `by_storey` which sets each storey in the block as a Zone.

The block generated will have boundary conditions set correctly and any intersections with adjacent blocks will be handled automatically. The surface type will be set to wall, floor, ceiling or roof for each surface. Constructions are not set automatically so these will need to be added afterwards in the normal way for Eppy.

This is actually very easy using geomeppy. geomeppy (thanks, @Jeremy). It's pretty much the use case that drove me to create it in the first place.

From the readme:

IDF.add_block(...) # automatically adds a building block to the IDF

This method requires some explanation. The parameters required are:

name : str
    A name for the block.
coordinates : list
    A list of (x, y) tuples representing the building outline.
height : float
    The height of the block roof above ground level.
num_stories : int, optional
    The total number of stories including basement stories. Default : 1.
below_ground_stories : int, optional
    The number of stories below ground. Default : 0.
below_ground_storey_height : float, optional
    The height of each basement storey. Default : 2.5.
zoning : str, optional
    The rules to use in creating zones. Currently the only option is `by_storey` which sets each storey in the block as a Zone.

The block generated will have boundary conditions set correctly and any intersections with adjacent blocks will be handled automatically. The surface type will be set to wall, floor, ceiling or roof for each surface. Constructions are not set automatically so these will need to be added afterwards in the normal way for Eppy.