Closed ayezioro closed 6 years ago
Hi, In the meantime i've found an issue with the PVgen component. Having more than one surface plugged into te _HBSurfaces input, you have to input 2 (or more) values into the _cellsEfficiency input. It doesn't take only one value and complains of:
- The length of a list of inputs into either name,_cellsEfficiency _integrationMode,_NoParallel,Noseries,costPVgen or powerOutput is longer than the number of Honeybee surfaces connected to this component! e.g if you have 2 Honeybee surfaces you cannot have 3 values input into costPVgen! Please check the inputs and try again!
and the PV_HBSurfaces output gives a value of -1.
Other inputs do accept one value.
Didn't catch in the code where to fix it ... :-(
-A.
Dear @chriswmackey,
I encountered the following error using the latest PVgen component. As shown in the image attached it seems to be an issue I reported in this post that PVgen component doesn't recognize the other PV surfaces other than the first one.
Appreciate if you can kindly advise which part of the code in PVgen I shall look into to debug this issue.
Thanks.
Ji (Grasshope)
@ayezioro and @hopezh , I apologize for such a late response and thank you for finding this issue. It seems to have fallen through the cracks as I was amidst the craziness of working two jobs. I have corrected the issue here: https://github.com/mostaphaRoudsari/honeybee/commit/165531230d02331b4bde23150adc84342d8a7dc7 And I updated the hydra version accordingly: https://github.com/chriswmackey/hydra_2/commit/19d7b205ca985dfafcca39f96134b705a5b72d1b
I also added in the ability to set a single efficiency for multiple surfaces.
One thing that I noticed is that there appear to be some bugs in with using Photovoltics in the latest version of OpenStudio so I recommend using OpenStudio 2.5 with the PV generators for now. If you happen to figure out why the newest OpenStudio is returning 0 power for the PVs, open another issue and I will fix it. It definitely seems to be something on the OpenStudio / E+ side, though, if it's working in previous versions.
Dear Chris,
Thank you very very much for checking and updating the PVgen compoent.
I did a quick test and found the following two issues:
2.1 generator and electricity related output variables from the oldPVgen+EPlus workflow, and the top four variables are missing from the newPVgen+OpenStudio workflow.
2.2 generator and electricity related output variables from the newPVgen+OpenStudio workflow.
The two GH workflows and the Excel file comparing the difference are attached for your reference.
Please let me know if I missed something important here.
Thank you for your kind assistance, again. Ji
Thanks @chriswmackey for the update and thanks @hopezh for the checking. -A.
:)
OMG!!
Dear @chriswmackey , I noticed what you mentioned above, and it seems you're right that the problem is with OpenStudio.
The newPVgen+newEPlus components can produce the same results as that from the oldPVgen+oldEPlus components, as shown below.
I suspect it is related to the four output variables missing from the results file generated by OpenStudio, or some of them...
@ayezioro what do you think?
BTW, the Excel table shown in my previous post is not correct because I was using 0.9 for inverter efficiency in the oldPVgen+oldEPlus workflow which should be 0.98 which was used in the workflow for the newPVgen+OpenStudio workflow.
The updated comparison chart still shows significant difference:
Ok, I realized that there was a bug in the old code here: https://github.com/mostaphaRoudsari/honeybee/commit/0658b2b8ae40b10fd5d0815feb70afc8ffd964d0
I believe that commit should fix it and let me know if you are unable to recreate the old results, @hopezh
Thank you, @chriswmackey
It seems the difference is still there in terms of the results from the new EPlus and new OpenStudio components, together with the new PVgen components.
The GH file is attached for your reference, too.
Thanks. Ji
Thanks for letting me know @hopezh , Now, I think it is probably the E+ Run Simulation component that is not correct and I will take a look when I get the chance.
I'm trying to use a "horrified" emoji here which is not available here obviously...
There is a horrified emoji: :astonished:
Thankfully, we don't need to use it here. I can see that I'm not inputting the PV efficiency correctly into the OpenStudio workflow. I will try to fix the OpenStudio component now.
Ok. Now I have gone through and verified for myself that the OpenStudio component and the Run Simulation component give the same exact results for a range of cases: https://github.com/mostaphaRoudsari/honeybee/commit/cea35ac7af89d73ee37a54c8624982ddd2155de4
While I have learned to never say never, I am 99% sure that this has finally fixed the issue. So now I think a 😄 is appropriate!
Dear @chriswmackey , thank you very much for the update! (followed by multiple emoji of "thumbs up" and "applauding"). Glad that you left a 1% chance for debugging.
Yes, the calculation for PV electricity production is consistent btw the old and new PVgen, EPlus and OpenStudio components.
However, there are still differences, although small, in cooling and heating energy results.
As shown below, assuming the results produced by the old EPlus component is the baseline, the new EPlus and the new OpenStudio components will provide overestimation in both cooling and heating loads, which leads to the difference in total site energy related results.
I wonder if there is any change in shading related calculation in the latest EPlus and OpenStudio components .... as this is the only factor I can think of that will affect cooling and heating in this case.
Will do some tests using even simpler model later.
Meanwhile, pls take a look of the GH example files and let me know if I missed anything important here.
-Ji
@hopezh ,
Thank you for verifying the results with your scripts.
If I am reading your chart correctly, the difference between the Eplus and OpenStudio component results is just ~1%, which really is not a significant difference for an energy model. The OpenStudio and Eplus components have all inputs matching except for a small difference on the ideal air loads system. The OpenStudio component is using a detailed ideal air load system while the EPlus component uses a more simplified ideal air load template. This can result in a difference of results around 1% but it really isn't significant since both systems have the same parameters set on them. If you are going to worry about differences that small, you really should not be using an ideal air load system, which is pretty far from modeling a real, fully-detailed HVAC system. In fact, I would be cautions about labeling the results of the ideal air loads system as "district heating" and "district cooling" since its rare that the heat added/removed from district heating/cooling water will align with ideal air loads perfectly.
If you manage to verify if the results are specifically the result of shading or PV differences, I can take a deeper look. But, from my perspective, it looks like this is just the result of the minor difference in ideal air loads systems.
Dear @chriswmackey , thanks for the clarification.
Yes, the good news is that the difference in results btw the new EPlus and the new OpenStudio components are not very big.
I did another test using a larger model with about 80+ zones. The comparison is shown below.
I'm curious about the small difference in modeling the ideal loads air system btw the OpenStudio and EPlus components. Maybe I shall read the idf files generated in this regard?
Also, it is duly noted agreed that the use of ideal loads air system is to estimate thermal loads rather than actual energy consumption which depends on HVAC settings such as COP.
@hopezh , I think that the difference in the two ideal air loads systems comes from the fact that the OpenStudio ideal air loads system is actually being sized according to the cooling/heating design days while the E+ one is an infinite capacity system. So given this, the OpenStudio ideal air loads system results should always be a little lower than the E+ one because the OpenStudio one hits its maximum capacity at a few hours in the simulation.
Hi @chriswmackey, I believe the HB_HB should also be synced to the github. The example in hydra uses September 11 and the github is September 4. The later makes the PV components to fail. Thanks, -A.