architecture-building-systems / hive

Rhino Grasshopper plug-in for quick & dirty building simulation
https://www.food4rhino.com/en/app/hive
GNU General Public License v3.0
31 stars 4 forks source link

GhSolar-to-Conduit-Distributor #759

Closed ChrisZenhub closed 1 year ago

ChrisZenhub commented 1 year ago

We are now using Conduit for HUD :-) For that, it reads simulation results from GhSolar. But to pre-process the data for conduit, there is currently a GhPython component inside the templates. Not nice. We need a proper Hive-IO component, e.g., a GhSolar-to-Conduit-Distributor

image.png

image.png

"""Provides a scripting component.
    Inputs:
        x: The x script variable
        y: The y script variable
    Output:
        a: The a output variable"""

__author__ = "Christoph"
__version__ = "2022.08.01"

import rhinoscriptsyntax as rs
if toggle_pv:
    plot_data = pv_data
    title_plot1 = "Total PV Irradiance (W)"
    title_plot2 = "PV Irradiance (W)"
else:
    plot_data = window_data
    title_plot1 = "Total Windows Irradiance (W)"
    title_plot2 = "Windows Irradiance (W)"