MarcBerliner / PETLION.jl

High-performance simulations of the Porous Electrode Theory for Li-ion batteries
MIT License
65 stars 11 forks source link

How to Change Temperature in CC-CV #100

Closed lico0001 closed 1 year ago

lico0001 commented 1 year ago

Hello MarcBerliner, how to simulate under different battery temperature and ambient temperature, and whether there is a relevant input parameter interface? If there is no such interface, can the simulation be performed by modifying these two temperatures in the PETLION source code? Are the simulation results obtained after this modification accurate? Looking forward to your reply, thanks.

MarcBerliner commented 1 year ago

You can specify the initial temperature (or the constant temperature if run isothermally) with p.θ[:T₀] = 25+273.15 and the ambient temperature with p.θ[:T_amb] = 25+273.15.

lico0001 commented 1 year ago

Thank you MarcBerliner. Got it.