Skip to content

Instantly share code, notes, and snippets.

@chriswmackey
chriswmackey / mrt_delta.py
Created October 18, 2018 17:35
Convert Direct + Diffuse Horizontal to MRT Delta #Hack
import math
def convertFluxToTemp(diffuse_horiz, direct_horizontal, altitude, cloA=0.7, fracEff=0.725, radTransCoeff=6.012, a_d=1.8):
if altitude > 0:
dir_norm = direct_horizontal / (math.sin(math.radians(altitude)))
a_p = splineStand(90, int(altitude))
dir_rad_on_bod = (a_p * dir_norm) / a_d
diff_rad_on_bod = diffuse_horiz * 0.5 * fracEff
radiantFlux = dir_rad_on_bod + diff_rad_on_bod
ERFsolar = (radiantFlux * cloA)/0.95
@chriswmackey
chriswmackey / .block
Last active October 23, 2019 20:39
Design Explorer Lite Experiment
license: mit
@chriswmackey
chriswmackey / .block
Last active October 23, 2019 20:40
Direct Sun - Facade + Shade
license: mit
@chriswmackey
chriswmackey / .block
Last active October 23, 2019 20:39
Parametric Lab Building
license: mit
@chriswmackey
chriswmackey / .block
Last active October 23, 2019 20:39
Parametric Lab Energy Model
license: mit
@chriswmackey
chriswmackey / .block
Last active May 3, 2018 23:01
Parametric Radiant Slab - Heating
license: mit
@chriswmackey
chriswmackey / .block
Last active October 23, 2019 20:41
Parametric Radiant Slab - Cooling
license: mit
@chriswmackey
chriswmackey / .block
Last active October 23, 2019 20:41
Daily Direct Sun Through a Facade
license: mit
@chriswmackey
chriswmackey / .block
Last active April 25, 2018 22:30
Axonometric Grid
license: mit
@chriswmackey
chriswmackey / .block
Last active April 25, 2018 22:29
Sankey Diagram Lab ACH
border: no
license: gpl-3.0