Skip to content

Add support for iam.schlick to ModelChain #2828

Closed

Description

@cbcrespo

As part of my GSoC 2026 project (#2750), I am working on adding support for diffuse irradiance components and component-specific optical loss calculations to ModelChain. This includes adding support for diffuse IAM models to ModelChain.

While planning this work, I noticed that all direct IAM models currently available in pvlib.iam are supported by ModelChain except for schlick. As noted by @kandersolar, there is no particular reason for this, it's just that no one's gotten around to it. So I would like to implement this.

This is relatively straightforward to implement, but I think there is one particular point worth discussing: whether schlick should be included in ModelChain's infer_aoi_model.

infer_aoi_model is used when the user does not provide an aoi_model, and selects an IAM model based on the parameters available in the PVSystem. The current priority order is: physical, sapm, ashrae, martin_ruiz, interp.

If included, schlick would presumably be in last place since it requires no parameters. This would also mean that the existing ValueError raised when no IAM model can be inferred would no longer occur, since schlick would always be available as a default. Therefore, this ValueError could be removed.

Activity

  1. AdamRJensen commented on Jul 23, 2026

    @AdamRJensen
    Member

    @cbcrespo I think for now you can start with a PR that adds it as an option, and then later we can decide if it needs to be included in the inferring. I'm somewhat hesitant in adding to the inferring algorithm, as there's no information to infer from (it just because the default if no information is given).

    Perhaps @wholmgren, @cwhanse, or @adriesse could shed some light on this?

    Edit: Since @kandersolar mentioned that the Schlink model is "not widely used and something of an oddity" #2811 (comment) then I don't think it is a good idea to have this become the default model in case that no information can be inferred. I think the current behavior of raising a ValueError is preferred.

  2. adriesse commented on Jul 23, 2026

    @adriesse
    Member

    The Schlick model is not useful for PV modeling so it should not become a default or anything like that.

  3. ramaroesilva commented on Aug 3, 2026

    @ramaroesilva
    Contributor

    The Schlick model is not useful for PV modeling so it should not become a default or anything like that.

    thanks for the remark @adriesse! would you mind expanding a bit on this? would like to learn more on the "why".

  4. adriesse commented on Aug 3, 2026

    @adriesse
    Member

    @ramaroesilva there should be some record somewhere of the (much too) long discussions we had about this model. I think the onus is on an advocate of this model to make a case for its usefulness rather than the other way around. Sorry to be so blunt, but I don't want to sink more time into this one!

  5. ramaroesilva commented on Aug 4, 2026

    @ramaroesilva
    Contributor

    No wrongdoing there @adriesse 😉 My interest was on learning from you, not really on having a trial session on whether the function should be default or not (and on that I will fully support the opinion of those with more experience).

    And thanks for mentioning this had been discussed before in the pvlib issue/PR archive, will take a look!

  6. added this to the v0.16.0 milestone on Aug 7, 2026
  7. added
    GSoC
    on Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    GSoCenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions