With the freshly released PyPSA v0.21 you can also give
network.statistics.curtailment()
which is a convenience function to do the same thing. :)
Best,
Johannes
Am 07/11/2022 um 22:49 schrieb Alexander Priven:
> Thanks Johannes, this was very helpful!
>
> Alex
>
> On Sat, Nov 5, 2022 at 5:42 AM Johannes Hampp
> <
johanne...@zeu.uni-giessen.de
> <mailto:
johanne...@zeu.uni-giessen.de>> wrote:
>
> Hi Alex,
>
> For each VRE generator a time-series is usually attached with the
> maximum available feed-in from the generators (`p_max_pu`). After you
> solve the optimisation/dispatch problem, you can retrieve each
> generator's dispatch during each timestep:
>
> n.generators_t["p_max_pu"] # avail. feed-in per gen./timestep [per unit]
>
> if you weigh it with n.generators["p_nom_opt"], the capacity for each
> generator, then you get the curtailment per generator by calculating
> the
> difference to:
>
> n.generators_t["p"] # dispatch per gen./timestep
>
>
> Best,
> Johannes
>
>
> Best regards,
> Johannes Hampp (he/him)
>
> Justus Liebig University Giessen (JLU)
> Center for international Development and Environmental Research (ZEU)
>
> mailto:
johanne...@zeu.uni-giessen.de
> <mailto:
johanne...@zeu.uni-giessen.de>
>
> Senckenbergstr. 3
> DE-35392 Giessen
>
https://uni-giessen.de/zeu <
https://uni-giessen.de/zeu>
>
> Am 04/11/2022 um 20:07 schrieb Alexander Priven:
> > Hi all,
> >
> > I am running a multi year optimization model with multiple
> generators
> > using thermal and VRE energy along with batteries.
> >
> > I am examining the effect that adding new battery capacity has on
> VRE
> > generation, specifically how decreasing battery capacity curtails
> VRE
> > production.
> > I was wondering if pypsa is able to produce an output which shows
> how
> > much generation has been curtailed for each investment year on a
> > generator by generator basis?
> >
> > Thank you,
> > Alex
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "pypsa" group.
> > To unsubscribe from this group and stop receiving emails from it,
> send
> > an email to
pypsa+un...@googlegroups.com
> <mailto:
pypsa%2Bunsu...@googlegroups.com>
> > <mailto:
pypsa+un...@googlegroups.com
> <mailto:
pypsa%2Bunsu...@googlegroups.com>>.
> > To view this discussion on the web, visit
> >
>
https://groups.google.com/d/msgid/pypsa/64648696-41ab-4799-9434-4725897ba06an%40googlegroups.com <
https://groups.google.com/d/msgid/pypsa/64648696-41ab-4799-9434-4725897ba06an%40googlegroups.com> <
https://groups.google.com/d/msgid/pypsa/64648696-41ab-4799-9434-4725897ba06an%40googlegroups.com?utm_medium=email&utm_source=footer <
https://groups.google.com/d/msgid/pypsa/64648696-41ab-4799-9434-4725897ba06an%40googlegroups.com?utm_medium=email&utm_source=footer>>.
>