christophwaibel / GH_Solar_V2

Solar irradiation model plug-in for Rhinoceros Grasshopper. Version 2.
GNU General Public License v3.0
5 stars 0 forks source link

Negative Irradiance Bug #36

Open christophwaibel opened 4 years ago

christophwaibel commented 4 years ago

Bug_NegativeIrradiance.zip

In GHResultsRead.cs, you can find negative values in val_t[t] for case 7. It must already be in results.I_hourly

                case 7: // [W] total
                    for (int i = 0; i < results.I_hourly.RowCount; i++)
                    {
                        double[] val_t = new double[results.I_hourly.ColumnCount];
                        for (int t = 0; t < results.I_hourly.ColumnCount; t++)
                        {
                            val_t[t] = results.I_hourly[i, t];
                        }
                        valin2.Add(val_t);
                    }
christophwaibel commented 4 years ago

...problem comes from negative values for diffuse reflections (p.Irefl_diff) in sensor points irradiance calculation, presumably in SolarModel and not in GHSolar?