# Pv simulation doesn't work

**URL:** <https://discourse.ladybug.tools/t/pv-simulation-doesnt-work/3313>\
**Category:** honeybee-legacy\
**Tags:** pv\
**Created:** [July 22, 2018, 2:30pm UTC](https://discourse.ladybug.tools/t/pv-simulation-doesnt-work/3313 "2018-07-22T14:30:23Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![hamed.sangin](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/hamed.sangin/32/7822_2.png) [@hamed.sangin](https://discourse.ladybug.tools/u/hamed.sangin)\
**Post date:** [July 22, 2018, 2:30pm UTC](https://discourse.ladybug.tools/t/pv-simulation-doesnt-work/3313/1 "2018-07-22T14:30:23Z")

</div>

hi  
i simulated a pv but it doesnt work

 ![Pv](https://discourse.ladybug.tools/uploads/default/original/2X/4/4422576cb35feff513598d0bed0d7bf35593ca82.jpg)  
generate or product energy is empty  
 ![image](https://discourse.ladybug.tools/uploads/default/original/2X/9/910e6fc9e247c06cd879174158e4731c856588ec.png)

---

<div class="post-metadata">

**Author:** ![ligiana.fonseca](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/ligiana.fonseca/32/5583_2.png) [@ligiana.fonseca](https://discourse.ladybug.tools/u/ligiana.fonseca)\
**Post date:** [July 24, 2018, 11:52am UTC](https://discourse.ladybug.tools/t/pv-simulation-doesnt-work/3313/2 "2018-07-24T11:52:50Z")

</div>

Hey Hamed!  
I was having the same problem with this version of HB for PV generation.  
So, I checked the idf file and realized that the component PV\_generation was not working correctly in this version… it was replacing some data that I set as input with some default values. Also, it seemed that the component was not reading the power output. Because of this, I decided to work with HB 0.62.  
They told me that there are some issues with PV generator in HB 0.63, so I imagine that it would be better to wait for updates.  
If you find a way to solve these issues, please, let me know because it’s important for me too.

I suggest that you keep an eye on: [Why the “percentage of surface area” option is removed from the Generator PV component](https://discourse.ladybug.tools/t/why-the-percentage-of-surface-area-option-is-removed-from-the-generator-pv-component/1317/23)  
I talked to Grasshope in this topic, and he tried to help me on private, but we weren’t able to solve the issue.

---

<div class="post-metadata">

**Author:** ![mostapha](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/mostapha/32/15244_2.png) [@mostapha](https://discourse.ladybug.tools/u/mostapha)\
**Post date:** [July 24, 2018, 9:08pm UTC](https://discourse.ladybug.tools/t/pv-simulation-doesnt-work/3313/3 "2018-07-24T21:08:00Z")

</div>

@AntonSzilasi, @chris what is the latest update on PV integration with EnergyPlus/OpenStudio? Anything that I can do to help? We either need to fix this or remove it. This has been a recurrent issue and is one of the "top 3 things people keep repeatedly complaining about\* " and needs to be addressed.

\* [https://blog.codinghorror.com/complaint-driven-development/](https://blog.codinghorror.com/complaint-driven-development/)

---

<div class="post-metadata">

**Author:** ![ligiana.fonseca](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/ligiana.fonseca/32/5583_2.png) [@ligiana.fonseca](https://discourse.ladybug.tools/u/ligiana.fonseca)\
**Post date:** [July 24, 2018, 11:23pm UTC](https://discourse.ladybug.tools/t/pv-simulation-doesnt-work/3313/4 "2018-07-24T23:23:38Z")

</div>

Thanks for the attention Mostapha 😀  
I didn’t want to bother you, guys… I tried to learn a little bit of programming, but for me, it was not easy at all… I know that it takes a lot of time, and there is so much to think about, and you need so much concentration to make things work…  
Anyway, I’d like to congratulate you for so much effort put into the development of this tool and for helping us, users, with questions that sometimes seem simple or obvious.

---

<div class="post-metadata">

**Author:** ![chris](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/chris/32/10179_2.png) [@chris](https://discourse.ladybug.tools/u/chris)\
**Post date:** [July 26, 2018, 11:51pm UTC](https://discourse.ladybug.tools/t/pv-simulation-doesnt-work/3313/5 "2018-07-26T23:51:12Z")

</div>

@mostapha ,  
I agree that this is a major complaint that, unlike some of the others, we can solve pretty easily by just nixing the HB PV generation and telling people to either use the LB Renewables components or the OpenStudio Measure that assigns PV. The HB PV generation would be nice to have but, if it’s clear that it’s not going to be maintained, we’re better off pointing people towards one of the two methods above that we know will work. We can give @AntonSzilasi a few more days to respond and, if we don’t hear anything, I’ll pull it out for the next stable release.

---

<div class="post-metadata">

**Author:** ![chris](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/chris/32/10179_2.png) [@chris](https://discourse.ladybug.tools/u/chris)\
**Post date:** [July 26, 2018, 11:52pm UTC](https://discourse.ladybug.tools/t/pv-simulation-doesnt-work/3313/6 "2018-07-26T23:52:51Z")

</div>

And you’re not bothering us @ligiana.fonseca . As the article Mostapha posted states, Compliant driven development is key to how we build the software 🙂 . You’re an integral part of the development process.

---

<div class="post-metadata">

**Author:** ![mostapha](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/mostapha/32/15244_2.png) [@mostapha](https://discourse.ladybug.tools/u/mostapha)\
**Post date:** [July 30, 2018, 10:34pm UTC](https://discourse.ladybug.tools/t/pv-simulation-doesnt-work/3313/7 "2018-07-30T22:34:17Z")

</div>

@AntonSzilasi has sent me a comment and he won’t be able to work on the components for the next 6 months or so. Now we have two solutions:

1. Remove the functionality! I think this will make a number of users upset including @Grasshope and @ligiana.fonseca.

2. Get it fixed with the help from @Grasshope and other users who know the current issues and I assume have figured out some temporary fixes for them. @Grasshope how does it sound to you. I haven’t used PV objects in EnergyPlus before and won’t have time to learn it from the scratch but if you can let me know the specific issues as long as the fix doesn’t involve a total rewriting of the whole component I [assume that I] can get it fix for you.

---

<div class="post-metadata">

**Author:** ![Grasshope](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/grasshope/32/4_2.png) [@Grasshope](https://discourse.ladybug.tools/u/Grasshope)\
**Post date:** [July 31, 2018, 1:26pm UTC](https://discourse.ladybug.tools/t/pv-simulation-doesnt-work/3313/8 "2018-07-31T13:26:48Z")

</div>

Dear @mostapha, @chris and @ligiana.fonseca,

Yes. I contacted Anton a while ago in this regard, and I fully understand his current commitment to his own project.

I’d be glad to work with you to fix the issues related to PV simulation through EnergyPlus in Honeybee.

Please give me a few days this week to wrap up some submissions here.

Later, I’ll try to reproduce and document succinctly the issues I encountered so far related to the use of **PV generator system** component and the **runOpenStudio** components for debugging purpose. Then, I’ll hear your suggestions on how to proceed from there.

Will this be OK for you guys?

Ji, aka @Grasshope

---

<div class="post-metadata">

**Author:** ![mostapha](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/mostapha/32/15244_2.png) [@mostapha](https://discourse.ladybug.tools/u/mostapha)\
**Post date:** [July 31, 2018, 2:32pm UTC](https://discourse.ladybug.tools/t/pv-simulation-doesnt-work/3313/9 "2018-07-31T14:32:33Z")

</div>

Absolutely! Looking forward to your update.

---

<div class="post-metadata">

**Author:** ![chris](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/chris/32/10179_2.png) [@chris](https://discourse.ladybug.tools/u/chris)\
**Post date:** [August 2, 2018, 12:10am UTC](https://discourse.ladybug.tools/t/pv-simulation-doesnt-work/3313/10 "2018-08-02T00:10:38Z")

</div>

@Grasshope ,

I am also looking forward to it.

---

<div class="post-metadata">

**Author:** ![hamed.sangin](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/hamed.sangin/32/7822_2.png) [@hamed.sangin](https://discourse.ladybug.tools/u/hamed.sangin)\
**Post date:** [August 2, 2018, 7:38am UTC](https://discourse.ladybug.tools/t/pv-simulation-doesnt-work/3313/11 "2018-08-02T07:38:53Z")

</div>

hi, again guys.  
is it possible to bring back the HB\_generator\_wind\_horizontalaxis component for the wind turbine to honeybee @chris @ligiana.fonseca@mostapha

---

<div class="post-metadata">

**Author:** ![ligiana.fonseca](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/ligiana.fonseca/32/5583_2.png) [@ligiana.fonseca](https://discourse.ladybug.tools/u/ligiana.fonseca)\
**Post date:** [August 18, 2018, 12:56pm UTC](https://discourse.ladybug.tools/t/pv-simulation-doesnt-work/3313/12 "2018-08-18T12:56:25Z")

</div>

Thank you very much @Grasshope, @mostapha and @chris!!!  
I am going towards the end of my research project, so I’m not going to catch the updates on time. But, I will still keep an eye in the discussions here, for there are other researchers working with Ladybug/Honeybee in the lab that I work 🙂

---

<div class="post-metadata">

**Author:** ![Grasshope](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/grasshope/32/4_2.png) [@Grasshope](https://discourse.ladybug.tools/u/Grasshope)\
**Post date:** [August 23, 2018, 9:49am UTC](https://discourse.ladybug.tools/t/pv-simulation-doesnt-work/3313/13 "2018-08-23T09:49:08Z")

</div>

Dear @mostapha @chris @ligiana.fonseca,

The attached Word file summarizes the preliminary output of a few tests to check the issue related to the PVgen components.

Seven scenarios with different combinations of the related components in different versions were tested. Only the first two can get the simulation run correctly, with the rest having various issues.

To summarize, **Combination A (Scenario 1)** using the older version of the components generates the requested output variables correctly.

 ![Image%2029](https://discourse.ladybug.tools/uploads/default/original/2X/5/5ccf164e26d168bf08f97990d900b600c2115cc6.png)

**Combination B (Scenario 7)** using the latest version of the components worked only when the code of PVgen was revised in two places to suppress the error output of “-1”. A few of the key output variables requested were missing.

 ![Image%2030](https://discourse.ladybug.tools/uploads/default/original/2X/c/c70d3a6e2fd4b4a568d58647205ad0ff881805f1.png)

The main issue is that with the same input, there is a 30% difference in terms of the result on PV electricity yield between these two scenarios.

 ![Image%2031](https://discourse.ladybug.tools/uploads/default/original/2X/a/a358414a2dba3dc38e57fba2638cd583be9960b7.png)

The GH files of the 7 scenarios are attached, too, for your reference. I have not tested them on a different computer to check if the errors can be reproduced yet.

Please take a look and advise in case I missed something critical here.

Thanks.

[Issues related to PVgen and exportToOpenStudio \_v011.docx](https://discourse.ladybug.tools/uploads/default/original/2X/4/4c1d4073beaaa2f3b874476c784d8d9f5d3581e5.docx) (1.8 MB)

[test\_PVgen\_s1.gh](https://discourse.ladybug.tools/uploads/default/original/2X/2/295ce99a62ab12f2035fb4793b781094d5fc9fed.gh) (1.1 MB)  
[test\_PVgen\_s2.gh](https://discourse.ladybug.tools/uploads/default/original/2X/d/d87f31f72d9d93deefa29596886134211ffaa3bc.gh) (1.1 MB)  
[test\_PVgen\_s3.gh](https://discourse.ladybug.tools/uploads/default/original/2X/f/f3412d93ae1f45b004dd917dc459470591986908.gh) (1.1 MB)  
[test\_PVgen\_s4.gh](https://discourse.ladybug.tools/uploads/default/original/2X/0/06ab74cca33ad77c93b1835ac3f9456d8982fc83.gh) (1.1 MB)  
[test\_PVgen\_s5.gh](https://discourse.ladybug.tools/uploads/default/original/2X/4/4661f3fd4de6d46ad901d7bf8e9b59b1ca7a67cd.gh) (1.1 MB)  
[test\_PVgen\_s6.gh](https://discourse.ladybug.tools/uploads/default/original/2X/1/183814fd4a4ab9b00d868a1a9bafd58ebccf9aa7.gh) (1.1 MB)  
[test\_PVgen\_s7.gh](https://discourse.ladybug.tools/uploads/default/original/2X/c/cb4739974c021e461e45b38067409d8945cc9c7e.gh) (1.1 MB)

---

<div class="post-metadata">

**Author:** ![hamed.sangin](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/hamed.sangin/32/7822_2.png) [@hamed.sangin](https://discourse.ladybug.tools/u/hamed.sangin)\
**Post date:** [November 26, 2018, 10:23pm UTC](https://discourse.ladybug.tools/t/pv-simulation-doesnt-work/3313/14 "2018-11-26T22:23:56Z")

</div>

@mostapha @chris @AntonSzilasi  
so we are not going see pv generation in future ?😥

---

<div class="post-metadata">

**Author:** ![chris](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/chris/32/10179_2.png) [@chris](https://discourse.ladybug.tools/u/chris)\
**Post date:** [November 27, 2018, 5:02am UTC](https://discourse.ladybug.tools/t/pv-simulation-doesnt-work/3313/15 "2018-11-27T05:02:44Z")

</div>

@hamed.sangin ,

The PV components now out of WIP as you can see in the latest release notes:

> [@Ladybug 0.0.67 and Honeybee 0.0.64 Release](https://discourse.ladybug.tools/t/ladybug-0-0-67-and-honeybee-0-0-64-release/4473):
>
> Wonderful LB+HB Community, We are happy to announce the latest release of Ladybug + Honeybee [Legacy Version]! This release marks the final version of the legacy plugins where @Chris and @Mostapha are adding new features. From now on, all new features that we implement will be on [the [+] plugins](https://github.com/ladybug-tools), for which you should expect a lot of development and improvements over this upcoming next year. We will still have stable releases of the legacy plugins in the future but the only changes that we will…

They have been fully tested by @Grasshope as you ca see on our github:

> <https://github.com/ladybug-tools/honeybee-legacy/issues/705>
>
> 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.

---

<div class="post-metadata">

**Author:** ![AntonSzilasi](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/antonszilasi/32/8_2.png) [@AntonSzilasi](https://discourse.ladybug.tools/u/AntonSzilasi)\
**Post date:** [January 21, 2021, 12:32am UTC](https://discourse.ladybug.tools/t/pv-simulation-doesnt-work/3313/16 "2021-01-21T00:32:33Z")

</div>

@chris does this mean that the PV components will only be in the legacy version?

---

<div class="post-metadata">

**Author:** ![chris](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/chris/32/10179_2.png) [@chris](https://discourse.ladybug.tools/u/chris)\
**Post date:** [January 21, 2021, 1:53am UTC](https://discourse.ladybug.tools/t/pv-simulation-doesnt-work/3313/17 "2021-01-21T01:53:00Z")

</div>

No. I will eventually add them to the LBT plugin. They aren’t the highest priority at the moment, though.

---

<div class="post-metadata">

**Author:** ![AntonSzilasi](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/antonszilasi/32/8_2.png) [@AntonSzilasi](https://discourse.ladybug.tools/u/AntonSzilasi)\
**Post date:** [January 22, 2021, 3:00am UTC](https://discourse.ladybug.tools/t/pv-simulation-doesnt-work/3313/18 "2021-01-22T03:00:07Z")

</div>

@chris reach out to me if you need help I may be able to get some time off from my day job

---

<div class="post-metadata">

**Author:** ![hamed.sangin](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/hamed.sangin/32/7822_2.png) [@hamed.sangin](https://discourse.ladybug.tools/u/hamed.sangin)\
**Post date:** [February 3, 2021, 10:18am UTC](https://discourse.ladybug.tools/t/pv-simulation-doesnt-work/3313/19 "2021-02-03T10:18:31Z")

</div>

I just want say appreciate to add HB PV generation feature on pervious HB version(legacy) and without t our thesis and paper wont be done.

> [@Energy performance of building integrated photovoltaic high-rise building: Case study, Tehran, Iran](https://discourse.ladybug.tools/t/energy-performance-of-building-integrated-photovoltaic-high-rise-building-case-study-tehran-iran/13008):
>
> hello dear, We published a paper in Energy and Buildings journal. Validation of Energy performance in Honeybee Plugin with ASHRAE 140-2017. Validation of PV simulation in Ladybug plugin with Mashhad station experimental data. Thanks for your sharing. and special thanks for ladybug tools teams. bouquetpray pray honeybee beetle butterfly spider[https://www.researchgate.net/publication/348355161\_Energy\_Performance\_of\_Building\_Integrated\_Photovoltaic\_high-rise\_building\_case\_study…](https://www.researchgate.net/publication/348355161_Energy_Performance_of_Building_Integrated_Photovoltaic_high-rise_building_case_study_Tehran_Iran)

P.S: we validated PV simulation result on ladybug.
