question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

implement transient moving-average thermal model

See original GitHub issue

New Feature Implement the transient moving-average model proposed by Matt Prillman

Describe the solution you’d like a new function pvlib.temperature.prillman(times, ...)

Describe alternatives you’ve considered see also #1080

Additional context see https://github.com/NREL/ssc/issues/261

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (11 by maintainers)

github_iconTop GitHub Comments

3reactions
jforbesscommented, Dec 2, 2020

I recently became aware of np.nditer, which sped up my rolling window apply greatly. I think you should be able to use it for this exponential weighted function, basically applied as a for loop with an efficiently stored/accessed array. I was doing a simple calc on 20 years of 525600 long series, and it was quite snappy, relative to the rolling window apply which was a long enough process that the full 20 year calc was at least tens of minutes if not an hour. Sorry I don’t have more quantified values.

1reaction
cwhansecommented, Jan 24, 2022

I think we should just require regular sampling.

I don’t see that as a major problem. This function operates on the output of a temperature model (applies a form of exponential smoothing). It is likely that a user calculated that output with a regular time index. Even if not, the smoothing basically justifies interpolation on the input cell temperature and wind speed to a regular index, in the following sense: output from applying the function to interpolated input is likely to be very similar to output when applying the function to the non-regular input then interpolating the output.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Moving-Average Transient Model for Predicting the - KEEP
The transient thermal model development presented in this thesis begins ... Default Steady-State Moving-Average Model Implementation for a Summer Day 76.
Read more >
(PDF) Transient Weighted Moving-Average Model of ...
This model is informed by 3-D finite-element analyses, which are used to calculate the effect of wind speed and module unit mass on...
Read more >
Transient Weighted Moving-Average Model of Photovoltaic ...
Abstract: Accurate modeling of photovoltaic (PV) performance requires the precise calculation of module temperature.
Read more >
Transient Weighted Moving Average Model of ... - OSTI.gov
Implementation of the model first requires calculation of the steady-state temperature predictions being used in the analysis. Then, the model calculates an ...
Read more >
Verification and Validation of a Transient Heat Exchanger Model
Transient Heat Exchanger Model BE ACCEPTED IN PARTIAL FULFILLMENT OF ... centered moving average, and always use an odd subset of data ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found