- Posts: 8
Questions about the understanding of the General Electrochemical Model in SAM
- Arthur800
- Topic Author
Less
More
14 Dec 2021 18:46 #10397
by Arthur800
Questions about the understanding of the General Electrochemical Model in SAM was created by Arthur800
Hello, I am studying the workings of the Battery model so I can develop my own specific PV + BESS (Lithium-Ion) dispatch schemes, for my masters research. My current task is to have a good grasp on the electrochemical model that governs the general operation process of SAM's available battery modes (Shepherd Model). From my current understanding, each cell is modelled as a dependent voltage source in series (with constant parameters A,B,K), with a constant resistance R0, and a terminal voltage. Thing is, I'm having difficulties to comprehend in which order the algorithm calculates each of the electric quantities. If the equation gives terminal voltage as a function of q = integral(idt) at each hourly time step, where would the current value come from? I know that the algorithm sets as inputs global maximum and minimum states of charge and maximum current flow rates by hourly step, but what would be the "initializing steps" for each iteration? For now, I am supposing that for each step, a maximum charge quantity is set to be discharged from or charged into the battery, which relates to the quantities by P = VI. SAM would then solve the system of the equivalent circuit and P = VI? I'm a bit confused by these initial conditions, and I'd very glad if I could obtain some clarifications.
Please Log in or Create an account to join the conversation.
- pgilman
Less
More
- Posts: 5423
15 Dec 2021 17:30 #10402
by pgilman
Replied by pgilman on topic Questions about the understanding of the General Electrochemical Model in SAM
Hi Arthur,
I assume you are aware of the battery model references listed on the SAM website, but will provide a link here for the benefit of anyone else who may be interested:
sam.nrel.gov/battery-storage/battery-publications.html
I think the source code relevant to your question is here:
github.com/NREL/ssc/blob/develop/shared/lib_battery_voltage.cpp#L325
You can find code for other parts of the battery model in the following folders:
github.com/NREL/ssc/tree/develop/shared
github.com/NREL/ssc/tree/develop/ssc
If it would be helpful for you to build your own version of SAM so you can explore the source code in a development environment, you can find instructions here:
github.com/NREL/SAM/wiki
Best regards,
Paul.
I assume you are aware of the battery model references listed on the SAM website, but will provide a link here for the benefit of anyone else who may be interested:
sam.nrel.gov/battery-storage/battery-publications.html
I think the source code relevant to your question is here:
github.com/NREL/ssc/blob/develop/shared/lib_battery_voltage.cpp#L325
You can find code for other parts of the battery model in the following folders:
github.com/NREL/ssc/tree/develop/shared
github.com/NREL/ssc/tree/develop/ssc
If it would be helpful for you to build your own version of SAM so you can explore the source code in a development environment, you can find instructions here:
github.com/NREL/SAM/wiki
Best regards,
Paul.
Please Log in or Create an account to join the conversation.
- Arthur800
- Topic Author
Less
More
- Posts: 8
16 Dec 2021 16:52 #10410
by Arthur800
Replied by Arthur800 on topic Questions about the understanding of the General Electrochemical Model in SAM
Thanks for the reply. It was exactly this piece of source code that I had some dificulty finding on Github, and this has helped me greatly!
Please Log in or Create an account to join the conversation.
Moderators: pgilman