Skip to content

Instantly share code, notes, and snippets.

@chriswmackey
Last active October 23, 2019 20:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save chriswmackey/17b6a7193bd29804c7e42df125f19a19 to your computer and use it in GitHub Desktop.
Save chriswmackey/17b6a7193bd29804c7e42df125f19a19 to your computer and use it in GitHub Desktop.
Parametric Radiant Slab - Cooling
license: mit
allResults = '{"0,50,0" : [22.852821, 5.900402, 16.95242, 55.730876, 0.762876],"1,50,0" : [20.264249, 5.061191, 15.203058, 56.934644, 1.966644],"2,50,0" : [17.790933, 4.557624, 13.233309, 57.742988, 2.774988],"3,50,0" : [13.782016, 3.497992, 10.284024, 58.602398, 3.634398],"0,51,0" : [21.834409, 5.630286, 16.204122, 56.476796, 1.508796],"1,51,0" : [19.357282, 4.829193, 14.528089, 57.625484, 2.657484],"2,51,0" : [16.992192, 4.348624, 12.643568, 58.39646, 3.42846],"3,51,0" : [13.160709, 3.33761, 9.823099, 59.21573, 4.24773],"0,52,0" : [20.814477, 5.360401, 15.454076, 57.22196, 2.25396],"1,52,0" : [18.449208, 4.597422, 13.851786, 58.315604, 3.347604],"2,52,0" : [16.192821, 4.139837, 12.052984, 59.049284, 4.081284],"3,52,0" : [12.538929, 3.17739, 9.361539, 59.828522, 4.860522],"0,53,0" : [19.792417, 5.090649, 14.701769, 57.966674, 2.998674],"1,53,0" : [17.539543, 4.365794, 13.173749, 59.005292, 4.037292],"2,53,0" : [15.392064, 3.931187, 11.460876, 59.701712, 4.733712],"3,53,0" : [11.916563, 3.017274, 8.899289, 60.441026, 5.473026],"0,54,0" : [18.768298, 4.821128, 13.947171, 58.71065, 3.74265],"1,54,0" : [16.628731, 4.134391, 12.494339, 59.694296, 4.726296],"2,54,0" : [14.590527, 3.722752, 10.867775, 60.353528, 5.385528],"3,54,0" : [11.293687, 2.857319, 8.436368, 61.053008, 6.085008],"0,55,0" : [17.742279, 4.551739, 13.19054, 59.45414, 4.48614],"1,55,0" : [15.716463, 3.903133, 11.81333, 60.382832, 5.414832],"2,55,0" : [13.787884, 3.514453, 10.273431, 61.004948, 6.036948],"3,55,0" : [10.670604, 2.697468, 7.973135, 61.664702, 6.696702],"0,56,0" : [16.71444, 4.282581, 12.431859, 60.19691, 5.22891],"1,56,0" : [14.802926, 3.6721, 11.130826, 61.070684, 6.102684],"2,56,0" : [12.984378, 3.306367, 9.678012, 61.65572, 6.68772],"3,56,0" : [10.046979, 2.537778, 7.509201, 62.275856, 7.307856],"0,57,0" : [15.684385, 4.013555, 11.67083, 60.939194, 5.971194],"1,57,0" : [13.887808, 3.441211, 10.446597, 61.758086, 6.790086],"2,57,0" : [12.179794, 3.098419, 9.081376, 62.306114, 7.338114],"3,57,0" : [9.422686, 2.378191, 7.044495, 62.886722, 7.918722],"0,58,0" : [14.652606, 3.744762, 10.907845, 61.68074, 6.71274],"1,58,0" : [12.971592, 3.210547, 9.761044, 62.444804, 7.476804],"2,58,0" : [11.374497, 2.890682, 8.483815, 62.955878, 7.987878],"3,58,0" : [8.797968, 2.218764, 6.579204, 63.497066, 8.529066],"0,59,0" : [13.618695, 3.4761, 10.142596, 62.421818, 7.453818],"1,59,0" : [12.053846, 2.980026, 9.073819, 63.131054, 8.163054],"2,59,0" : [10.568008, 2.683084, 7.884925, 63.605246, 8.637246],"3,59,0" : [8.172701, 2.059441, 6.113261, 64.107122, 9.139122],"0,60,0" : [12.58287, 3.207621, 9.37525, 63.162302, 8.194302],"1,60,0" : [11.13467, 2.749689, 8.38498, 63.816764, 8.848764],"2,60,0" : [9.76082, 2.475658, 7.285162, 64.254092, 9.286092],"3,60,0" : [7.546944, 1.900249, 5.646695, 64.716764, 9.748764],"0,50,10" : [30.170326, 5.3637, 24.806626, 57.989426, 3.021426],"1,50,10" : [26.720725, 4.32068, 22.400045, 59.568602, 4.600602],"2,50,10" : [23.448774, 3.608083, 19.840691, 60.625184, 5.657184],"3,50,10" : [18.135001, 2.239761, 15.89524, 61.734704, 6.766704],"0,51,10" : [29.145812, 5.094084, 24.051729, 58.73342, 3.76542],"1,51,10" : [25.807585, 4.089451, 21.718134, 60.256976, 5.288976],"2,51,10" : [22.644147, 3.400102, 19.244045, 61.275848, 6.307848],"3,51,10" : [17.509471, 2.080634, 15.428837, 62.345048, 7.377048],"0,52,10" : [28.119502, 4.824698, 23.294804, 59.476676, 4.508676],"1,52,10" : [24.893287, 3.858448, 21.034839, 60.94463, 5.97663],"2,52,10" : [21.838903, 3.192333, 18.646569, 61.925864, 6.957864],"3,52,10" : [16.883641, 1.921666, 14.961975, 62.95487, 7.98687],"0,53,10" : [27.091027, 4.555446, 22.535581, 60.219464, 5.251464],"1,53,10" : [23.977601, 3.627589, 20.350011, 61.631852, 6.663852],"2,53,10" : [21.032597, 2.984702, 18.047895, 62.575502, 7.607502],"3,53,10" : [16.257179, 1.7628, 14.49438, 63.564386, 8.596386],"0,54,10" : [26.060715, 4.286424, 21.774291, 60.961532, 5.993532],"1,54,10" : [23.060633, 3.396955, 19.663678, 62.31839, 7.35039],"2,54,10" : [20.22541, 2.777281, 17.448128, 63.22451, 8.25651],"3,54,10" : [15.630357, 1.604093, 14.026264, 64.173398, 9.205398],"0,55,10" : [25.028348, 4.017536, 21.010813, 61.703096, 6.735096],"1,55,10" : [22.142255, 3.166464, 18.975791, 63.004478, 8.036478],"2,55,10" : [19.417261, 2.569999, 16.847262, 63.873122, 8.905122],"3,55,10" : [15.002867, 1.445489, 13.557378, 64.782104, 9.814104],"0,56,10" : [23.994407, 3.748877, 20.245529, 62.44394, 7.47594],"1,56,10" : [21.222573, 2.936198, 18.286375, 63.689864, 8.721864],"2,56,10" : [18.60823, 2.362927, 16.245304, 64.521122, 9.553122],"3,56,10" : [14.375091, 1.287043, 13.088048, 65.390288, 10.422288],"0,57,10" : [22.958026, 3.480352, 19.477673, 63.184316, 8.216316],"1,57,10" : [20.301413, 2.706075, 17.595338, 64.3748, 9.4068],"2,57,10" : [17.798167, 2.155991, 15.642176, 65.168708, 10.200708],"3,57,10" : [13.74667, 1.1287, 12.61797, 65.998184, 11.030184],"0,58,10" : [21.920002, 3.212058, 18.707945, 63.923954, 8.955954],"1,58,10" : [19.379066, 2.476178, 16.902888, 65.059052, 10.091052],"2,58,10" : [16.987305, 1.949267, 15.038038, 65.815682, 10.847682],"3,58,10" : [13.117951, 0.970515, 12.147436, 66.605558, 11.637558],"0,59,10" : [20.879765, 2.943896, 17.935869, 64.663106, 9.695106],"1,59,10" : [18.455208, 2.246422, 16.208786, 65.742854, 10.774854],"2,59,10" : [16.175316, 1.742679, 14.432638, 66.46226, 11.49426],"3,59,10" : [12.488581, 0.812431, 11.67615, 67.212644, 12.244644],"0,60,10" : [19.837595, 2.675916, 17.161679, 65.401664, 10.433664],"1,60,10" : [17.529875, 2.01685, 15.513024, 66.426098, 11.458098],"2,60,10" : [15.362403, 1.536264, 13.826138, 67.108334, 12.140334],"3,60,10" : [11.858749, 0.654478, 11.204271, 67.819316, 12.851316],"0,50,20" : [37.467668, 4.828519, 32.639149, 60.241874, 5.273874],"1,50,20" : [33.149344, 3.583567, 29.565777, 62.191778, 7.223778],"2,50,20" : [29.071129, 2.664856, 26.406273, 63.491378, 8.523378],"3,50,20" : [22.447677, 0.995204, 21.452473, 64.84181, 9.87381],"0,51,20" : [36.436739, 4.559403, 31.877335, 60.98396, 6.01596],"1,51,20" : [32.230151, 3.353106, 28.877045, 62.877686, 7.909686],"2,51,20" : [28.261076, 2.457887, 25.803189, 64.139234, 9.171234],"3,51,20" : [21.818095, 0.837311, 20.980784, 65.449184, 10.481184],"0,52,20" : [35.404145, 4.290518, 31.113627, 61.72529, 6.75729],"1,52,20" : [31.309802, 3.12287, 28.186932, 63.562892, 8.594892],"2,52,20" : [27.450298, 2.25113, 25.199168, 64.786478, 9.818478],"3,52,20" : [21.188183, 0.679575, 20.508607, 66.056054, 11.088054],"0,53,20" : [34.36955, 4.021766, 30.347784, 62.46617, 7.49817],"1,53,20" : [30.387926, 2.892777, 27.495149, 64.247648, 9.279648],"2,53,20" : [26.638414, 2.044509, 24.593905, 65.433326, 10.465326],"3,53,20" : [20.557646, 0.521941, 20.035704, 66.662636, 11.694636],"0,54,20" : [33.333123, 3.753244, 29.579879, 63.206294, 8.238294],"1,54,20" : [29.464935, 2.662909, 26.802026, 64.93172, 9.96372],"2,54,20" : [25.825683, 1.838099, 23.987584, 66.079544, 11.111544],"3,54,20" : [19.926797, 0.364464, 19.562333, 67.268696, 12.300696],"0,55,20" : [32.294481, 3.484855, 28.809626, 63.94595, 8.97795],"1,55,20" : [28.540401, 2.433183, 26.107218, 65.615342, 10.647342],"2,55,20" : [25.011924, 1.631824, 23.380099, 66.725384, 11.757384],"3,55,20" : [19.295252, 0.207088, 19.088164, 67.87445, 12.90645],"0,56,20" : [31.253947, 3.216697, 28.037251, 64.684868, 9.716868],"1,56,20" : [27.614595, 2.203682, 25.410913, 66.29828, 11.33028],"2,56,20" : [24.197424, 1.42576, 22.771664, 67.370576, 12.402576],"3,56,20" : [18.663419, 0.049868, 18.613551, 68.4797, 13.5117],"0,57,20" : [30.211489, 2.948672, 27.262817, 65.423318, 10.455318],"1,57,20" : [26.687265, 1.974324, 24.712942, 66.980768, 12.012768],"2,57,20" : [23.381837, 1.219831, 22.162006, 68.01539, 13.04739],"3,57,20" : [18.031002, -0.107251, 18.138253, 69.084662, 14.116662],"0,58,20" : [29.167122, 2.680876, 26.486246, 66.16103, 11.19303],"1,58,20" : [25.758911, 1.74519, 24.013722, 67.662554, 12.694554],"2,58,20" : [22.565444, 1.014112, 21.551332, 68.659592, 13.691592],"3,58,20" : [17.398222, -0.264213, 17.662435, 69.689102, 14.721102],"0,59,20" : [28.120626, 2.413215, 25.707411, 66.898274, 11.930274],"1,59,20" : [24.828897, 1.516198, 23.312699, 68.343908, 13.375908],"2,59,20" : [21.747978, 0.808528, 20.93945, 69.303398, 14.335398],"3,59,20" : [16.76479, -0.421075, 17.185865, 70.293236, 15.325236],"0,60,20" : [27.072378, 2.145736, 24.926643, 67.634906, 12.666906],"1,60,20" : [23.89753, 1.287389, 22.610141, 69.024686, 14.056686],"2,60,20" : [20.929587, 0.603117, 20.32647, 69.946682, 14.978682],"3,60,20" : [16.130957, -0.531345, 16.662302, 70.896992, 15.928992],"0,50,30" : [44.745092, 4.294861, 40.450231, 62.48822, 7.52022],"1,50,30" : [39.54923, 2.849844, 36.699386, 64.80419, 9.83619],"2,50,30" : [34.660551, 1.7279, 32.932651, 66.34166, 11.37366],"3,50,30" : [26.720159, -0.235894, 26.956053, 67.924058, 12.956058],"0,51,30" : [43.708056, 4.026245, 39.681811, 63.22838, 8.26038],"1,51,30" : [38.623992, 2.620148, 36.003844, 65.487632, 10.519632],"2,51,30" : [33.845045, 1.521939, 32.323107, 66.986744, 12.018744],"3,51,30" : [26.086567, -0.39257, 26.479138, 68.528516, 13.560516],"0,52,30" : [42.669131, 3.757859, 38.911272, 63.967802, 8.999802],"1,52,30" : [37.697512, 2.390675, 35.306836, 66.17039, 11.20239],"2,52,30" : [33.028718, 1.316186, 31.712532, 67.631198, 12.663198],"3,52,30" : [25.45262, -0.549091, 26.001712, 69.13247, 14.16447],"0,53,30" : [41.628257, 3.489608, 38.13865, 64.706756, 9.738756],"1,53,30" : [36.769616, 2.161347, 34.608269, 66.852698, 11.884698],"2,53,30" : [32.211316, 1.11057, 31.100746, 68.275274, 13.307274],"3,53,30" : [24.824768, -0.705513, 25.530281, 69.736118, 14.768118],"0,54,30" : [40.585518, 3.221586, 37.363933, 65.444954, 10.476954],"1,54,30" : [35.840459, 1.932243, 33.908216, 67.534304, 12.566304],"2,54,30" : [31.393137, 0.905163, 30.487974, 68.91872, 13.95072],"3,54,30" : [24.183159, -0.793875, 24.977034, 70.339262, 15.371262],"0,55,30" : [39.540549, 2.953697, 36.586852, 66.182702, 11.214702],"1,55,30" : [34.909785, 1.703281, 33.206504, 68.215478, 13.247478],"2,55,30" : [30.57389, 0.699889, 29.874001, 69.561788, 14.593788],"3,55,30" : [23.547695, -0.881469, 24.429165, 70.780118, 15.812118],"0,56,30" : [38.493978, 2.686039, 35.807939, 66.919694, 11.951694],"1,56,30" : [33.97793, 1.474542, 32.503388, 68.89595, 13.92795],"2,56,30" : [29.753906, 0.494826, 29.25908, 69.918764, 14.950764],"3,56,30" : [22.911926, -0.968971, 23.880897, 70.992374, 16.024374],"0,57,30" : [37.445187, 2.418514, 35.026674, 67.656218, 12.688218],"1,57,30" : [33.044556, 1.245946, 31.79861, 69.443312, 14.475312],"2,57,30" : [28.932771, 0.289897, 28.642873, 70.187126, 15.219126],"3,57,30" : [22.275526, -1.056411, 23.331937, 71.204558, 16.236558],"0,58,30" : [36.394537, 2.151218, 34.243319, 68.185508, 13.217508],"1,58,30" : [32.110033, 1.017574, 31.092459, 69.722888, 14.754888],"2,58,30" : [28.110933, 0.085177, 28.025756, 70.455308, 15.487308],"3,58,30" : [21.638682, -1.143759, 22.782441, 71.416598, 16.448598],"0,59,30" : [35.341881, 1.884057, 33.457824, 68.538074, 13.570074],"1,59,30" : [31.173974, 0.789344, 30.38463, 70.00232, 15.03432],"2,59,30" : [27.287983, -0.119409, 27.407392, 70.723346, 15.755346],"3,59,30" : [21.001346, -1.231046, 22.232392, 71.628548, 16.660548],"0,60,30" : [34.28711, 1.617077, 32.670033, 68.890478, 13.922478],"1,60,30" : [30.236569, 0.561295, 29.675274, 70.28159, 15.31359],"2,60,30" : [26.464073, -0.323824, 26.787897, 70.99124, 16.02324],"3,60,30" : [20.363605, -1.318256, 21.681861, 71.835674, 16.867674],"0,50,40" : [52.000842, 3.762719, 48.238123, 64.728482, 9.760482],"1,50,40" : [45.922622, 2.119492, 43.803131, 67.405892, 12.437892],"2,50,40" : [40.214925, 0.797166, 39.417759, 69.045062, 14.077062],"3,50,40" : [30.954517, -1.228882, 32.183399, 70.51046, 15.54246],"0,51,40" : [50.95751, 3.494604, 47.462906, 65.466716, 10.498716],"1,51,40" : [44.991246, 1.890559, 43.100687, 68.086886, 13.118886],"2,51,40" : [39.393855, 0.592204, 38.801651, 69.31355, 14.34555],"3,51,40" : [30.316565, -1.316047, 31.632612, 70.722464, 15.754464],"0,52,40" : [49.912292, 3.226718, 46.685575, 66.20423, 11.23623],"1,52,40" : [44.058707, 1.66185, 42.396857, 68.590076, 13.622076],"2,52,40" : [38.572114, 0.38745, 38.184664, 69.58184, 14.61384],"3,52,40" : [29.678803, -1.40312, 31.081923, 70.934306, 15.966306],"0,53,40" : [48.865095, 2.958966, 45.906129, 66.79454, 11.82654],"1,53,40" : [43.124684, 1.433283, 41.6914, 68.869904, 13.901904],"2,53,40" : [37.749235, 0.18283, 37.566405, 69.850004, 14.882004],"3,53,40" : [29.040451, -1.490132, 30.530583, 71.146094, 16.178094],"0,54,40" : [47.816028, 2.691444, 45.124584, 67.147448, 12.179448],"1,54,40" : [42.189492, 1.204941, 40.984551, 69.149516, 14.181516],"2,54,40" : [36.925576, -0.02158, 36.947156, 70.11797, 15.14997],"3,54,40" : [28.401608, -1.577053, 29.978661, 71.35772, 16.38972],"0,55,40" : [46.764984, 2.424055, 44.340929, 67.500266, 12.532266],"1,55,40" : [41.252736, 0.976739, 40.275997, 69.429002, 14.461002],"2,55,40" : [36.100892, -0.225858, 36.32675, 70.38581, 15.41781],"3,55,40" : [27.762117, -1.663913, 29.42603, 71.569274, 16.601274],"0,56,40" : [45.711982, 2.156897, 43.555085, 67.852868, 12.884868],"1,56,40" : [40.314814, 0.748761, 39.566052, 69.708272, 14.740272],"2,56,40" : [35.275414, -0.429928, 35.705341, 70.653452, 15.685452],"3,56,40" : [27.1222, -1.750682, 28.872882, 71.777876, 16.809876],"0,57,40" : [44.656929, 1.889872, 42.767056, 68.20538, 13.23738],"1,57,40" : [39.375393, 0.520926, 38.854467, 69.987416, 15.019416],"2,57,40" : [34.448824, -0.633863, 35.082687, 70.920986, 15.952986],"3,57,40" : [26.481636, -1.83739, 28.319027, 71.88314, 16.91514],"0,58,40" : [43.600016, 1.623076, 41.97694, 68.55764, 13.58964],"1,58,40" : [38.434729, 0.293313, 38.141417, 70.266344, 15.298344],"2,58,40" : [33.621541, -0.837592, 34.459133, 71.188304, 16.220304],"3,58,40" : [25.841339, -1.924007, 27.765347, 71.98835, 17.02035],"0,59,40" : [42.54101, 1.356415, 41.184595, 68.909828, 13.941828],"1,59,40" : [37.492672, 0.065841, 37.426831, 70.545164, 15.577164],"2,59,40" : [32.793131, -1.009978, 33.80311, 71.455514, 16.487514],"3,59,40" : [25.1997, -2.010564, 27.210264, 72.071024, 17.103024],"0,60,40" : [41.480054, 1.089934, 40.390119, 69.261836, 14.293836],"1,60,40" : [36.549124, -0.161449, 36.710573, 70.81988, 15.85188],"2,60,40" : [31.963901, -1.123217, 33.087118, 71.713796, 16.745796],"3,60,40" : [24.558209, -2.097045, 26.655254, 72.131342, 17.163342],"0,50,50" : [59.238293, 3.232105, 56.006188, 66.108812, 11.140812],"1,50,50" : [52.266782, 1.392518, 50.874264, 68.575838, 13.607838],"2,50,50" : [45.73548, -0.127369, 45.862849, 69.779804, 14.811804],"3,50,50" : [35.150077, -2.006882, 37.156959, 71.295548, 16.327548],"0,51,50" : [58.188841, 2.96449, 55.224351, 66.461882, 11.493882],"1,51,50" : [51.329394, 1.164346, 50.165048, 68.855378, 13.887378],"2,51,50" : [44.909076, -0.331339, 45.240415, 70.047446, 15.079446],"3,51,50" : [34.508726, -2.09332, 36.602046, 71.506706, 16.538706],"0,52,50" : [57.137297, 2.697105, 54.440193, 66.814736, 11.846736],"1,52,50" : [50.390756, 0.936398, 49.454358, 69.134684, 14.166684],"2,52,50" : [44.08176, -0.535101, 44.61686, 70.314872, 15.346872],"3,52,50" : [33.866911, -2.179667, 36.046578, 71.717702, 16.749702],"0,53,50" : [56.083876, 2.429853, 53.654023, 67.1675, 12.1995],"1,53,50" : [49.450688, 0.708591, 48.742097, 69.413882, 14.445882],"2,53,50" : [43.253452, -0.738729, 43.992181, 70.582208, 15.614208],"3,53,50" : [33.22449, -2.265954, 35.490444, 71.823668, 16.855668],"0,54,50" : [55.028603, 2.16283, 52.865772, 67.52003, 12.55203],"1,54,50" : [48.509462, 0.481008, 48.028454, 69.692864, 14.724864],"2,54,50" : [42.424419, -0.942151, 43.366571, 70.849328, 15.881328],"3,54,50" : [32.581612, -2.352151, 34.933763, 71.928698, 16.960698],"0,55,50" : [53.971117, 1.895942, 52.075174, 67.872452, 12.904452],"1,55,50" : [47.566575, 0.253565, 47.31301, 69.97172, 15.00372],"2,55,50" : [41.594307, -1.14544, 42.739748, 71.116322, 16.148322],"3,55,50" : [31.938767, -2.438288, 34.377056, 72.026312, 17.058312],"0,56,50" : [52.91191, 1.629283, 51.282627, 68.224676, 13.256676],"1,56,50" : [46.622689, 0.026346, 46.596343, 70.25036, 15.28236],"2,56,50" : [40.763404, -1.288219, 42.051624, 71.383118, 16.415118],"3,56,50" : [31.294754, -2.524335, 33.81909, 72.104144, 17.136144],"0,57,50" : [51.850543, 1.362758, 50.487784, 68.576774, 13.608774],"1,57,50" : [45.677143, -0.200733, 45.877875, 70.523996, 15.555996],"2,57,50" : [39.931427, -1.401142, 41.332569, 71.639474, 16.671474],"3,57,50" : [30.650872, -2.610322, 33.261195, 72.161726, 17.193726],"0,58,50" : [50.787369, 1.096463, 49.690906, 68.928674, 13.960674],"1,58,50" : [44.73044, -0.427589, 45.158029, 70.796066, 15.828066],"2,58,50" : [39.098744, -1.513941, 40.612685, 71.864312, 16.896312],"3,58,50" : [30.005747, -2.696219, 32.701966, 72.212036, 17.244036],"0,59,50" : [49.722181, 0.8303, 48.891881, 69.280466, 14.312466],"1,59,50" : [43.782354, -0.654304, 44.436658, 71.068046, 16.100046],"2,59,50" : [38.264886, -1.626656, 39.891542, 71.97098, 17.00298],"3,59,50" : [29.360771, -2.782057, 32.142828, 72.25034, 17.28234],"0,60,50" : [48.654776, 0.56432, 48.090456, 69.632096, 14.664096],"1,60,50" : [42.832785, -0.880838, 43.713623, 71.339846, 16.371846],"2,60,50" : [37.430184, -1.739267, 39.169451, 72.062258, 17.094258],"3,60,50" : [28.715262, -2.86782, 31.583082, 72.288644, 17.320644],"0,50,60" : [66.455822, 2.703032, 63.75279, 66.481808, 11.513808],"1,50,60" : [58.583446, 0.66893, 57.914515, 69.119042, 14.151042],"2,50,60" : [51.222672, -1.045727, 52.268399, 70.509506, 15.541506],"3,50,60" : [39.308705, -2.776866, 42.085572, 71.867552, 16.899552],"0,51,60" : [65.399947, 2.435917, 62.964029, 66.8345, 11.8665],"1,51,60" : [57.639893, 0.441517, 57.198376, 69.397952, 14.429952],"2,51,60" : [50.390751, -1.24871, 51.639461, 70.776302, 15.808302],"3,51,60" : [38.663316, -2.862589, 41.525904, 71.972366, 17.004366],"0,52,60" : [64.342317, 2.169032, 62.173285, 67.186958, 12.218958],"1,52,60" : [56.695345, 0.214326, 56.481019, 69.676628, 14.708628],"2,52,60" : [49.586217, -1.451488, 51.037705, 71.0429, 16.0749],"3,52,60" : [38.017399, -2.948221, 40.965619, 72.059126, 17.091126],"0,53,60" : [63.282528, 1.90228, 61.380248, 67.539326, 12.571326],"1,53,60" : [55.749096, -0.012723, 55.761819, 69.955196, 14.987196],"2,53,60" : [48.724445, -1.565313, 50.289757, 71.309372, 16.341372],"3,53,60" : [37.370919, -3.033794, 40.404713, 72.135302, 17.167302],"0,54,60" : [62.220949, 1.635758, 60.585191, 67.891478, 12.923478],"1,54,60" : [54.80186, -0.23955, 55.04141, 70.227734, 15.259734],"2,54,60" : [47.889952, -1.677901, 49.567853, 71.564018, 16.596018],"3,54,60" : [36.724621, -3.119278, 39.843899, 72.19112, 17.22312],"0,55,60" : [61.1572, 1.369369, 59.78783, 68.243522, 13.275522],"1,55,60" : [53.852949, -0.466236, 54.319184, 70.499732, 15.531732],"2,55,60" : [47.054066, -1.790405, 48.844472, 71.788586, 16.820586],"3,55,60" : [36.077767, -3.204703, 39.28247, 72.24296, 17.27496],"0,56,60" : [60.091708, 1.10321, 58.988498, 68.59535, 13.62735],"1,56,60" : [52.902896, -0.692699, 53.595596, 70.771532, 15.803532],"2,56,60" : [46.217796, -1.902786, 48.120582, 71.920904, 16.952904],"3,56,60" : [35.429686, -3.290039, 38.719725, 72.282596, 17.314596],"0,57,60" : [59.023985, 0.837185, 58.1868, 68.94707, 13.97907],"1,57,60" : [51.951459, -0.919023, 52.870482, 71.043224, 16.075224],"2,57,60" : [45.380554, -2.015084, 47.395638, 72.02264, 17.05464],"3,57,60" : [34.781672, -3.375316, 38.156988, 72.320792, 17.352792],"0,58,60" : [57.954632, 0.571389, 57.383243, 69.298574, 14.330574],"1,58,60" : [50.998735, -1.145124, 52.143859, 71.3147, 16.3467],"2,58,60" : [44.542608, -2.127259, 46.669867, 72.099194, 17.131194],"3,58,60" : [34.133213, -3.460504, 37.593717, 72.358988, 17.390988],"0,59,60" : [56.883054, 0.305727, 56.577327, 69.64997, 14.68197],"1,59,60" : [50.044405, -1.371085, 51.41549, 71.584394, 16.616394],"2,59,60" : [43.703689, -2.23935, 45.943039, 72.150764, 17.182764],"3,59,60" : [33.484125, -3.545633, 37.029759, 72.397148, 17.429148],"0,60,60" : [55.809577, 0.040246, 55.76933, 70.001222, 15.033222],"1,60,60" : [49.088975, -1.535226, 50.624201, 71.777714, 16.809714],"2,60,60" : [42.862906, -2.351338, 45.214244, 72.19562, 17.22762],"3,60,60" : [32.835173, -3.630689, 36.465862, 72.43529, 17.46729],"0,50,70" : [73.650961, 2.175466, 71.475494, 66.853706, 11.885706],"1,50,70" : [64.873581, -0.051329, 64.92491, 69.659114, 14.691114],"2,50,70" : [56.676787, -1.84126, 58.518047, 71.23424, 16.26624],"3,50,70" : [43.429419, -3.539009, 46.968428, 72.1643, 17.1963],"0,51,70" : [72.58877, 1.908851, 70.679919, 67.206002, 12.238002],"1,51,70" : [63.924127, -0.277986, 64.202113, 69.931166, 14.963166],"2,51,70" : [55.838563, -1.953554, 57.792117, 71.487482, 16.519482],"3,51,70" : [42.779898, -3.624026, 46.403924, 72.219578, 17.251578],"0,52,70" : [71.524869, 1.642466, 69.882403, 67.558082, 12.590082],"1,52,70" : [62.973406, -0.50442, 63.477826, 70.203002, 15.235002],"2,52,70" : [55.000693, -2.065726, 57.066419, 71.711726, 16.743726],"3,52,70" : [42.130628, -3.708954, 45.839582, 72.271292, 17.303292],"0,53,70" : [70.458768, 1.376214, 69.082554, 67.910054, 12.942054],"1,53,70" : [62.021282, -0.730714, 62.751996, 70.47473, 15.50673],"2,53,70" : [54.16184, -2.177815, 56.339655, 71.870342, 16.902342],"3,53,70" : [41.480708, -3.793824, 45.274532, 72.314096, 17.346096],"0,54,70" : [69.391017, 1.110192, 68.280825, 68.26181, 13.29381],"1,54,70" : [61.067814, -0.956787, 62.024601, 70.74626, 15.77826],"2,54,70" : [53.322185, -2.28978, 55.611965, 71.9762, 17.0082],"3,54,70" : [40.830371, -3.878606, 44.708977, 72.352202, 17.384202],"0,55,70" : [68.320831, 0.844303, 67.476528, 68.613476, 13.645476],"1,55,70" : [60.112937, -1.18272, 61.295656, 71.017664, 16.049664],"2,55,70" : [52.48062, -2.401663, 54.882283, 72.067874, 17.099874],"3,55,70" : [40.179385, -3.963329, 44.142714, 72.39029, 17.42229],"0,56,70" : [67.249218, 0.578644, 66.670574, 68.964908, 13.996908],"1,56,70" : [59.156944, -1.40843, 60.565373, 71.28887, 16.32087],"2,56,70" : [51.639313, -2.513423, 54.152736, 72.132584, 17.164584],"3,56,70" : [39.527874, -4.047965, 43.57584, 72.428378, 17.460378],"0,57,70" : [66.175206, 0.313119, 65.862087, 69.31625, 14.34825],"1,57,70" : [58.199348, -1.634001, 59.833349, 71.54573, 16.57773],"2,57,70" : [50.797094, -2.6251, 53.422194, 72.18221, 17.21421],"3,57,70" : [38.875782, -4.132542, 43.008325, 72.46643, 17.49843],"0,58,70" : [65.099513, 0.047822, 65.051691, 69.667376, 14.699376],"1,58,70" : [57.240631, -1.788496, 59.029126, 71.738834, 16.770834],"2,58,70" : [49.95295, -2.736655, 52.689605, 72.226958, 17.258958],"3,58,70" : [38.223832, -4.217032, 42.440864, 72.504464, 17.536464],"0,59,70" : [64.021653, -0.217341, 64.238994, 70.018394, 15.050394],"1,59,70" : [56.280434, -1.91553, 58.195964, 71.931848, 16.963848],"2,59,70" : [49.109, -2.848127, 51.957128, 72.271706, 17.303706],"3,59,70" : [37.570659, -4.301463, 41.872123, 72.54248, 17.57448],"0,60,70" : [62.941859, -0.482323, 63.424183, 70.36925, 15.40125],"1,60,70" : [55.318804, -2.04245, 57.361254, 72.064184, 17.096184],"2,60,70" : [48.263129, -2.959497, 51.222626, 72.311522, 17.343522],"3,60,70" : [36.917588, -4.385823, 41.30341, 72.580478, 17.612478],"0,50,80" : [80.827952, 1.649425, 79.178526, 67.224488, 12.256488],"1,50,80" : [71.134863, -0.768246, 71.90311, 70.177514, 15.209514],"2,50,80" : [62.096886, -2.451685, 64.548571, 71.819276, 16.851276],"3,50,80" : [47.51126, -4.293409, 51.804669, 72.34484, 17.37684],"0,51,80" : [79.759335, 1.38331, 78.376025, 67.576406, 12.608406],"1,51,80" : [70.179248, -0.994149, 71.173397, 70.448972, 15.480972],"2,51,80" : [61.253723, -2.56336, 63.817083, 71.925026, 16.957026],"3,51,80" : [46.858365, -4.377731, 51.236096, 72.382856, 17.414856],"0,52,80" : [78.689327, 1.117424, 77.571903, 67.92809, 12.96009],"1,52,80" : [69.222665, -1.21983, 70.442495, 70.720214, 15.752214],"2,52,80" : [60.410692, -2.674912, 63.085605, 72.025952, 17.057952],"3,52,80" : [46.204976, -4.461966, 50.666942, 72.420872, 17.452872],"0,53,80" : [77.616865, 0.851672, 76.765193, 68.279684, 13.311684],"1,53,80" : [68.264326, -1.445373, 69.709699, 70.991348, 16.023348],"2,53,80" : [59.566912, -2.786382, 62.353294, 72.10814, 17.14014],"3,53,80" : [45.551636, -4.546143, 50.097779, 72.458852, 17.490852],"0,54,80" : [76.542801, 0.586149, 75.956651, 68.631062, 13.663062],"1,54,80" : [67.30501, -1.670693, 68.975702, 71.262266, 16.294266],"2,54,80" : [58.721132, -2.897729, 61.618862, 72.165524, 17.197524],"3,54,80" : [44.897104, -4.630233, 49.527338, 72.496814, 17.528814],"0,55,80" : [75.466539, 0.32076, 75.145779, 68.982332, 14.014332],"1,55,80" : [66.344088, -1.895874, 68.239961, 71.506562, 16.538562],"2,55,80" : [57.874508, -3.008995, 60.883502, 72.213278, 17.245278],"3,55,80" : [44.242691, -4.714266, 48.956957, 72.534776, 17.566776],"0,56,80" : [74.388395, 0.055601, 74.332794, 69.333368, 14.365368],"1,56,80" : [65.382041, -2.041052, 67.423093, 71.699486, 16.731486],"2,56,80" : [57.028124, -3.120138, 60.148261, 72.257954, 17.289954],"3,56,80" : [43.58711, -4.798212, 48.385322, 72.572702, 17.604702],"0,57,80" : [73.308062, -0.209426, 73.517488, 69.684332, 14.716332],"1,57,80" : [64.418393, -2.16781, 66.586204, 71.89232, 16.92432],"2,57,80" : [56.179707, -3.231199, 59.410906, 72.302612, 17.334612],"3,57,80" : [42.931586, -4.8821, 47.813686, 72.61061, 17.64261],"0,58,80" : [72.22608, -0.474222, 72.700302, 70.035062, 15.067062],"1,58,80" : [63.453766, -2.294432, 65.748198, 72.056012, 17.088012],"2,58,80" : [55.330619, -3.342138, 58.672757, 72.343742, 17.375742],"3,58,80" : [42.275534, -4.965902, 47.241436, 72.6485, 17.6805],"0,59,80" : [71.142122, -0.738886, 71.881008, 70.385702, 15.417702],"1,59,80" : [62.487791, -2.420964, 64.908754, 72.108446, 17.140446],"2,59,80" : [54.481584, -3.452996, 57.934579, 72.381704, 17.413704],"3,59,80" : [41.619628, -5.049647, 46.669275, 72.684752, 17.716752],"0,60,80" : [70.056025, -1.003369, 71.059393, 70.736162, 15.768162],"1,60,80" : [61.520663, -2.547382, 64.068045, 72.154796, 17.186796],"2,60,80" : [53.63065, -3.563751, 57.194402, 72.41963, 17.45163],"3,60,80" : [40.962404, -5.13332, 46.095724, 72.717944, 17.749944],"0,50,90" : [87.982475, 1.124907, 86.857568, 67.594154, 12.626154],"1,50,90" : [77.369974, -1.481832, 78.851806, 70.693412, 15.725412],"2,50,90" : [67.485346, -3.058191, 70.543537, 72.070016, 17.102016],"3,50,90" : [51.564411, -5.040187, 56.604598, 72.488588, 17.520588],"0,51,90" : [86.907776, 0.859292, 86.048484, 67.945676, 12.977676],"1,51,90" : [76.408444, -1.706983, 78.115427, 70.964258, 15.996258],"2,51,90" : [66.637136, -3.16925, 69.806386, 72.143474, 17.175474],"3,51,90" : [50.907383, -5.123826, 56.031208, 72.526478, 17.558478],"0,52,90" : [85.831275, 0.593905, 85.237369, 68.296982, 13.328982],"1,52,90" : [75.445659, -1.931915, 77.377574, 71.234924, 16.266924],"2,52,90" : [65.789027, -3.280187, 69.069214, 72.19805, 17.23005],"3,52,90" : [50.250509, -5.207377, 55.457886, 72.564332, 17.596332],"0,53,90" : [84.7527, 0.328653, 84.424047, 68.648198, 13.680198],"1,53,90" : [74.481418, -2.156706, 76.638123, 71.46689, 16.49889],"2,53,90" : [64.939015, -3.391042, 68.330057, 72.243986, 17.275986],"3,53,90" : [49.593077, -5.290873, 54.88395, 72.602186, 17.634186],"0,54,90" : [83.672324, 0.063631, 83.608694, 68.99918, 14.03118],"1,54,90" : [73.516468, -2.292872, 75.80934, 71.659634, 16.691634],"2,54,90" : [64.088291, -3.501775, 67.590067, 72.288572, 17.320572],"3,54,90" : [48.935127, -5.374282, 54.309409, 72.640004, 17.672004],"0,55,90" : [82.589712, -0.201259, 82.790971, 69.350072, 14.382072],"1,55,90" : [72.549345, -2.419356, 74.9687, 71.852288, 16.884288],"2,55,90" : [63.236624, -3.612427, 66.849052, 72.333158, 17.365158],"3,55,90" : [48.276533, -5.457635, 53.734168, 72.677804, 17.709804],"0,56,90" : [81.505301, -0.46592, 81.971221, 69.70073, 14.73273],"1,56,90" : [71.581123, -2.545703, 74.126826, 72.042296, 17.074296],"2,56,90" : [62.385055, -3.722958, 66.108013, 72.375638, 17.407638],"3,56,90" : [47.618199, -5.540901, 53.1591, 72.715586, 17.747586],"0,57,90" : [80.418881, -0.730446, 81.149328, 70.051298, 15.083298],"1,57,90" : [70.611547, -2.67196, 73.283507, 72.102488, 17.134488],"2,57,90" : [61.531685, -3.833408, 65.365093, 72.413528, 17.445528],"3,57,90" : [46.958508, -5.624111, 52.58262, 72.753368, 17.785368],"0,58,90" : [79.330595, -0.994745, 80.32534, 70.401632, 15.433632],"1,58,90" : [69.640865, -2.798081, 72.438946, 72.152438, 17.184438],"2,58,90" : [60.677439, -3.943736, 64.621175, 72.4514, 17.4834],"3,58,90" : [46.299026, -5.707236, 52.006262, 72.786704, 17.818704],"0,59,90" : [78.240106, -1.258909, 79.499015, 70.751894, 15.783894],"1,59,90" : [68.668981, -2.924111, 71.593092, 72.194414, 17.226414],"2,59,90" : [59.822289, -4.053983, 63.876272, 72.489254, 17.521254],"3,59,90" : [45.638928, -5.790305, 51.429233, 72.81977, 17.85177],"0,60,90" : [77.147702, -1.522892, 78.670594, 71.101976, 16.133976],"1,60,90" : [67.695797, -3.050029, 70.745825, 72.236372, 17.268372],"2,60,90" : [58.966294, -4.164129, 63.130423, 72.527072, 17.559072],"3,60,90" : [44.978318, -5.873302, 50.85162, 72.852836, 17.884836],"0,50,100" : [95.119094, 0.601913, 94.517181, 67.962704, 12.994704],"1,50,100" : [83.576689, -2.192097, 85.768786, 71.20679, 16.23879],"2,50,100" : [72.839951, -3.660804, 76.500755, 72.229784, 17.261784],"3,50,100" : [55.574091, -5.779466, 61.353557, 72.630932, 17.662932],"0,51,100" : [94.038114, 0.336797, 93.701317, 68.313848, 13.345848],"1,51,100" : [82.608268, -2.4165, 85.024768, 71.426696, 16.458696],"2,51,100" : [71.986559, -3.771251, 75.75781, 72.274334, 17.306334],"3,51,100" : [54.914269, -5.862431, 60.7767, 72.668678, 17.700678],"0,52,100" : [92.955256, 0.071911, 92.883345, 68.664776, 13.696776],"1,52,100" : [81.640138, -2.543958, 84.184095, 71.61926, 16.65126],"2,52,100" : [71.133471, -3.881577, 75.015048, 72.318848, 17.350848],"3,52,100" : [54.253243, -5.94531, 60.198553, 72.706388, 17.738388],"0,53,100" : [91.870202, -0.192842, 92.063044, 69.015596, 14.047596],"1,53,100" : [80.669415, -2.670167, 83.339582, 71.811734, 16.843734],"2,53,100" : [70.278427, -3.991822, 74.270249, 72.363344, 17.395344],"3,53,100" : [53.592348, -6.028134, 59.620482, 72.744098, 17.776098],"0,54,100" : [90.783529, -0.457365, 91.240894, 69.366182, 14.398182],"1,54,100" : [79.698839, -2.79624, 82.495079, 72.004064, 17.036064],"2,54,100" : [69.422533, -4.101947, 73.52448, 72.407228, 17.439228],"3,54,100" : [52.930907, -6.110872, 59.04178, 72.781772, 17.813772],"0,55,100" : [89.694807, -0.721756, 90.416563, 69.716696, 14.748696],"1,55,100" : [78.725657, -2.922223, 81.64788, 72.096386, 17.128386],"2,55,100" : [68.565775, -4.21199, 72.777765, 72.445046, 17.477046],"3,55,100" : [52.268872, -6.193555, 58.462428, 72.819446, 17.851446],"0,56,100" : [88.604088, -0.985918, 89.590006, 70.066976, 15.098976],"1,56,100" : [77.751378, -3.04807, 80.799448, 72.146282, 17.178282],"2,56,100" : [67.708217, -4.321912, 72.03013, 72.482846, 17.514846],"3,56,100" : [51.606359, -6.276153, 57.882512, 72.8546, 17.8866],"0,57,100" : [87.511365, -1.249945, 88.76131, 70.417148, 15.449148],"1,57,100" : [76.775765, -3.173827, 79.949592, 72.191894, 17.223894],"2,57,100" : [66.849667, -4.431754, 71.281422, 72.520628, 17.552628],"3,57,100" : [50.943212, -6.358696, 57.301907, 72.887576, 17.919576],"0,58,100" : [86.416757, -1.513744, 87.930501, 70.767104, 15.799104],"1,58,100" : [75.799024, -3.299448, 79.098472, 72.233798, 17.265798],"2,58,100" : [65.990343, -4.541476, 70.531819, 72.558374, 17.590374],"3,58,100" : [50.280209, -6.441153, 56.721363, 72.920534, 17.952534],"0,59,100" : [85.320265, -1.77741, 87.097675, 71.11697, 16.14897],"1,59,100" : [74.821075, -3.424979, 78.246054, 72.273614, 17.305614],"2,59,100" : [65.130125, -4.651117, 69.781242, 72.59612, 17.62812],"3,59,100" : [49.615963, -6.523556, 56.139519, 72.953492, 17.985492],"0,60,100" : [84.22152, -2.040894, 86.262414, 71.466674, 16.498674],"1,60,100" : [73.841841, -3.550398, 77.392238, 72.303674, 17.335674],"2,60,100" : [64.268026, -4.760658, 69.028684, 72.63383, 17.66583],"3,60,100" : [48.951848, -6.605888, 55.557736, 72.986414, 18.018414]}'
<!DOCTYPE html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta charset = "UTF-8" />
<script src="https://d3js.org/d3.v4.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
<script type="text/javascript" src="data.json"></script>
<style>
.inputSliders { font-family:sans-serif;outline:none;padding-top:15px;width:960px;margin: 0 auto;}
#summary { font-family:sans-serif;font-weight:bold;text-align:center;outline:none;padding-top:15px;width:960px;margin: 0 auto;}
#content { width:960px;margin: 0 auto;}
.inputgroup {border:none;}
.slider { width:210px;float:left;padding:10px;}
.slider3 { width:280px;float:left;padding:10px;}
.slider2 { width:440px;float:left;padding:10px;background-color:#e6e6e6}
.slider2 { font-family:sans-serif;font-weight:bold;text-align:center;outline:none;padding-top:15px;margin: 0 auto;height:70px;}
label { float:left;font-weight:bold;padding-bottom:10px;}
input[type=range] { float:left;clear:left;margin-right:10px;width:130px;}
.slider3 input[type=range] { float:left;clear:left;margin-right:10px;width:180px;}
#bside { width:250px;}
input[type=range]::-ms-track { background: transparent;border-color: transparent;color: transparent;-webkit-appearance: none}
input[type=range]::-ms-track { -ms-appearance: none; height: 3px;background-color: #d5d5d5; margin-right: 0;
margin-top: 5px;margin-bottom: 5px; border:0; }
input[type=range]::-ms-thumb { background-color: #FFF; border: 3px solid rgb(150,150,150);
border-radius: 5px; height: 10px;width: 1px; }
input[type=range]::-webkit-slider-runnable-track { height: 5px;background:#7c7c7c; margin-top: -4px;}
input[type=range]::-webkit-slider-thumb { margin-top:-6px;}
#inputSliders p {padding-top:10px;}
#solarFlux {background-color:#e6e6e6}
#topThick {background-color:#f2f2f2}
#pipeSpacing {background-color:#e6e6e6}
#waterTemp {background-color:#f2f2f2}
#bottomSide {background-color:#cccccc}
#areaServed {background-color:#e6e6e6; height:75px;}
#tempDelta {background-color:#cccccc; height:75px;}
</style>
</head>
<body>
<div class="inputSliders">
<form id="sliders" autocomplete="off">
<fieldset class="inputgroup">
<div class="slider3" id="pipeSpacing">
<label>Pipe Spacing</label>
<input type="range" name="pspac" id="pspac" value="2" min="0" max="3" step = "1"><p id="pspacoutput">12"</p></div>
<div class="slider3" id="waterTemp">
<label>Water Temperature</label>
<input type="range" name="temp" id="temp" value="52" min="50" max="60" step = "1"><p id="tempoutput">52 F</p></div>
<div class="slider3" id="solarFlux">
<label>Solar Flux</label>
<input type="range" name="sflux" id="sflux" value="0" min="0" max="100" step = "10"><p id="sfluxoutput">0btu/sf</p></div>
<div class="slider3"><img src="https://raw.githubusercontent.com/chriswmackey/explorer-test/master/data6/legend.png" alt="Temperature Legend" width="420px"></div>
</fieldset>
</form>
</div>
<div id="content">
</div>
<div id="summary">
<div class="slider" id="hfdiv"><div id="hf"></div><p style="margin-top:3px;">Total<br> Heat Flux</p></div>
<div class="slider" id="colddiv"><div id="hfbtu"></div><p style="margin-top:3px;">Radiant<br> Heat Flux</p></div>
  <div class="slider" id="ctempdiv"><div id="ctemp"></div><p style="margin-top:3px;">Coldest Surface <br> Temperature</p></div>
  <div class="slider" id="condendiv"><div id="conden"></div><p style="margin-top:3px;">From Condensation<br>at 55% RH</p></div>
</div>
<div class="inputSliders">
<form id="sliders" autocomplete="off">
<fieldset class="inputgroup">
<div class="slider" id="areaServed">
<label>Area Served by Slab</label>
<input type="range" name="area" id="area" value="250" min="25" max="500" step = "25"><p id="areaoutput">250 sf</p></div>
<div class="slider" id="tempDelta">
<label>Water Temp Delta</label>
<input type="range" name="delta" id="delta" value="3" min="1" max="8" step = "1"><p id="deltaoutput">3 F</p></div>
<div class="slider2" id="flowrate"><div id="flow"></div><p style="margin-top:3px;">Water Flow Rate</p></div>
</fieldset>
</form>
</div>
<script>
// Load in all of the data.
var dataObj = JSON.parse(allResults)
// Get inputs from the sliders
var pSpac = $("#pspac").val().toString(); // Pipe Spacing
var Temp = $("#temp").val().toString(); // Water Temperature
var SFlux = $("#sflux").val().toString(); // Solar Flux
var Area = $("#area").val().toString(); // Slab Area
var Delta = $("#delta").val().toString(); // Water Temp Delta
// Dictionary to interpret the meaning of the integer inputs.
pSpacDict = {'0':'6"', '1':'9"', '2':'12"', '3':'18"'}
// Update inputs
$("#pspac").on("input", function(event) {
pSpac = $(this).val();
$("#pspacoutput").text(pSpacDict[pSpac]);
updateImg();
updateData();
updateFowRate();
});
$("#temp").on("input", function(event) {
Temp = $(this).val();
$("#tempoutput").text(Temp.toString() + 'F');
updateImg();
updateData();
updateFowRate();
});
$("#sflux").on("input", function(event) {
SFlux = $(this).val();
$("#sfluxoutput").text(SFlux.toString() + 'btu/sf');
updateImg();
updateData();
updateFowRate();
});
$("#area").on("input", function(event) {
Area = $(this).val();
$("#areaoutput").text(Area.toString() + ' sf');
updateFowRate();
});
$("#delta").on("input", function(event) {
Delta = $(this).val();
$("#deltaoutput").text(Delta.toString() + ' F');
updateData();
updateFowRate();
});
// Function to retrive the images from github.
updateImg = function(){
URL = 'https://raw.githubusercontent.com/chriswmackey/explorer-test/master/data7/NCGMtherm'
URL = URL + pSpac
URL = URL + Temp
URL = URL + SFlux + '_View3.png'
d3.select(".imgdisplay").remove()
svg.append("image")
.attr('xlink:href', URL)
.attr('class', 'pico')
.attr('width', '800')
.attr('height', '345')
.attr('x', '80')
.attr('y', '0')
.attr("class","imgdisplay")
}
// Function to update the metrics.
updateData = function(){
// Retrieve the energy use and peak load data from the json.
var inputList = [pSpac, Temp, SFlux]
var jsonStr = inputList.join(',')
var rawData = dataObj[jsonStr]
// Update the metrics on the bottom.
d3.selectAll(".resultText").remove();
// Calculate the metrics.
var hFlux = precisionRound(rawData[0],1);
var chFlux = precisionRound(rawData[1], 1)
var rhFlux = precisionRound(rawData[2], 1)
var coldTemp = precisionRound(rawData[3],1)
var degGallery = precisionRound(rawData[4],1)
var galColor = '#000'
if (degGallery < Delta/2){
galColor = '#be2c33'
} else if (degGallery < (Delta/2)+1){
galColor = '#cea930'
}
d3.select("#hf").append("text")
.attr("class", "resultText")
.attr("text-anchor", "start")
.attr("fill", "#000")
.style('font-size', '30px')
.style('font-family', 'sans-serif')
.text(hFlux.toString() + ' BTU/sf');
d3.select("#hfbtu").append("text")
.attr("class", "resultText")
.attr("text-anchor", "start")
.attr("fill", "#000")
.style('font-size', '30px')
.style('font-family', 'sans-serif')
.text(rhFlux.toString()+ ' BTU/sf');
d3.select("#ctemp").append("text")
.attr("class", "resultText")
.attr("text-anchor", "start")
.attr("fill", "#000")
.style('font-size', '30px')
.style('font-family', 'sans-serif')
.text(coldTemp.toString()+ ' F');
d3.select("#conden").append("text")
.attr("class", "resultText")
.attr("text-anchor", "start")
.attr("fill", "#000")
.style('font-size', '30px')
.style('font-family', 'sans-serif')
.style('color', galColor)
.text(degGallery.toString()+ ' F');
}
// Function to update the flow rate.
updateFowRate = function(){
// Retrieve the energy use and peak load data from the json.
var inputList = [pSpac, Temp, SFlux]
var jsonStr = inputList.join(',')
var rawData = dataObj[jsonStr]
var totalHeat = Area * (rawData[0] / 3.41214163) // Heat removed by floor in Watts
var tempDeltaC = Delta * (5/9)
var massFlow = totalHeat / (4186 * tempDeltaC) // Water mass flow in kg/s
var volumeFlow = massFlow / 1000 // Water volume flow in m3/s
var volumeFlowIP = volumeFlow * 35.3147 // Water voume in ft3/s
var pipeCross = Math.PI * (0.03125*0.03125) // Cross sectional area of pipe in ft2
var waterSpeed = volumeFlowIP/pipeCross // Speed of water in the pipe in fps
var waterSpeedDisplay = precisionRound(waterSpeed,2);
// Update the metrics on the bottom.
d3.selectAll(".flowText").remove();
d3.select("#flow").append("text")
.attr("class", "flowText")
.attr("text-anchor", "start")
.attr("fill", "#000")
.style('font-size', '30px')
.style('font-family', 'sans-serif')
.text(waterSpeedDisplay.toString() + ' fps');
}
// Utility Functions
function add(a, b) {
return a + b;
}
function precisionRound(number, precision) {
var factor = Math.pow(10, precision);
return Math.round(number * factor) / factor;
}
// Display the image in the scene.
var svg = d3.select("#content").append("svg")
.attr("width", 960)
.attr("height", 400)
updateImg()
updateData()
updateFowRate()
d3.select(self.frameElement).style("height", 900 + "px");
</script>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment