bim2sim.plugins.PluginEnergyPlus.bim2sim_energyplus.utils package
Submodules
bim2sim.plugins.PluginEnergyPlus.bim2sim_energyplus.utils.utils_postprocessing module
bim2sim.plugins.PluginEnergyPlus.bim2sim_energyplus.utils.utils_visualization module
- class bim2sim.plugins.PluginEnergyPlus.bim2sim_energyplus.utils.utils_visualization.VisualizationUtils
Bases:
object
- static add_legend(save_path, paths, minimum, maximum, unit, text_size=25, text_color=(0, 0, 0), legend_height=800, title=None)
- static display_occ_shapes(shapes: List[TopoDS_Shape])
Display topoDS_shapes of space boundaries
- static get_column_from_ep_results(csv_name: str, column_key: str) DataFrame
This function extracts a column per energyplus column_key from a dataframe. It removes the full column_key from the column name afterwards, such that only the zone identifier (guid) of the column name remains as column key.
- Args:
csv_name: csv name including file name as string column_key: full variable key that is removed afterwards from
column name. Must not include the zone guid
- Returns:
df: pandas dataframe
- static interpolate_to_rgb(minimum, maximum, value, color_min=50, color_max=340)
- static rgb(minimum, maximum, value)
- static rgb_color(rgb) Quantity_Color
Returns a OCC viewer compatible color quantity based on r,g, b values. Args:
rgb: must be a tuple with 3 values [0,1]. e.g. (0, 0.5, 0.7)
- Returns:
Quantity_Color object which is compatible with with the OCC viewer.
- static visualize_zones(zone_dict, export_path, paths)
Visualizes the thermalzones and saves the picture as a .png. Fetches the thermalzones which are grouped before and creates an abstract building image, where each grouped zone has its own color. Afterwards a legend is added with zone names and corresponding colors. The file is exported as .png to the export folder. Args:
zone_dict: dict that has a grouping string as key and list of zones as
values.
folder_structure: instance of Folderstructure which is assigend to the
projects attribute self.paths.
- Returns:
No return value, image is saved directly.