PAN File Solver

252 views
Skip to first unread message

Junaid Fatehi

unread,
Jan 2, 2021, 7:12:21 PM1/2/21
to pvlib-python
I wrote a solver to determine the resistance values and diode ideality tempco.  It is based off 2 papers by Kenneth Sauer et all.  It uses lmfit for the least squares minimization.  I'm sure the minimization can be done in scipy but lmfit makes it really easy.  Please feel free to use.

https://github.com/jhfatehi/pv/blob/main/pan_solver.py

I don't work in the PV industry anymore so I don't have access to Pvsyst or flash test data.  The following still needs to be done.
  1. Agreement with Pvsyst Pmp values for the same modeling values needs to be verified to determine if Pvsyst diode model is implemented properly in the solver.
  2. I tested the solver with model generated data and got the same modeling parameters back.  The solver still needs to be tested with real measurement data.
Junaid Fatehi

cwh...@sandia.gov

unread,
Jan 4, 2021, 5:23:45 PM1/4/21
to pvlib-python
Hi Junaid,

Thanks for sharing this. Any objections to porting this to a pvlib function? We'd maintain attribution in the code documentation. I think it would be a nice complement to the functions already in pvlib.ivtools.sdm.

Cheers,

Cliff

Junaid Fatehi

unread,
Jan 4, 2021, 5:47:19 PM1/4/21
to cwh...@sandia.gov, pvlib-python
No objection.  Please go ahead.  Reach out if you have any questions.

--
You received this message because you are subscribed to a topic in the Google Groups "pvlib-python" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pvlib-python/b1mf4Y1qHBY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pvlib-python...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pvlib-python/6819ec71-d435-46c5-b82c-3f8382db8a94n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages