Hi Pontus,
The LFP/Graphite battery does not have an algebraic model for battery life, so you’ll have to use the calendar cycling model for that battery type. The calendar cycling model does not account for thermal effects on battery life. In actual batteries, temperature has both permanent and transient capacity effects on battery life due, but unfortunately only the LMO/LTO and NMC/Gr models in SAM include those effects.
For the battery life model in BatteryStateful, the state variables are carried over, and so at any time step there is information about how many cycles have elapsed, intermediate variables for tracking cycles via the rainflow algorithm, and recent temperatures of the battery, etc. For the algebraic life models, they are “integrated” at the end of every day: during the day BatteryStateful will have state variables about the elapsed SOC, temps, etc of that day and at the end of the day, those values are integrated into a capacity loss. It’s really the same thing as for the normal battery model, except in BatteryStateful, you get all the state variables so you can technically rewind to a previous state (which would have different elapsed SOC, elapsed temps, different elapsed time, different capacity, etc) by restoring those variables to that previous state.
Best regards,
Paul.