You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi!
I´m running some simple simulations with LiiBRA and I couldn´t help to notice that the $SoC$ values I´m getting don´t seem to add up.
I have a power setpoint $P_{BESS}$ I´m running through the cell.
Unfortunately the $SOC^+$ I´m getting from Simulate.jl (in blue) doesn´t seem to be ok:
The battery is delivering power through out the simulation, but the $SOC$ doesn´t drop.
The shape of it doesn´t seem to be an integrator of the input but a mirror of it.
Everything else checks out, for example, the terminal voltage below:
* the $v_t^-$ comes from my previous estimate
And when printing the transition matrix of:
using LiiBRA
#---------- Cell Definition -----------------#
Cell =Construct("LG M50")
Cell.RA.Fs =4.0# Modify transfer function sampling frequency
Cell.RA.SamplingT =0.25# Modify final system sampling period
Cell.Neg.Ds =2.0e-14# Modify negative electrode diffusion constant
Cell.Const.T =298.15# Modify cell temperature
Ŝ =collect(1.0:-0.1:0) # List of SOC points for model generation
SOC =1.# Starting SOC#---------- Generate & Simulate Model -----------------#
A, B, C, D =Realise(Cell, Ŝ);
A[1]
[5×5 Matrix{Float64}:0.940359-3.89234e-161.29328e-162.85417e-160.01.89597e-160.9936497.42181e-173.1269e-160.0-1.78499e-161.68973e-160.9987223.43525e-160.02.98961e-161.67496e-16-3.68353e-160.9999330.00.00.00.00.01.0]
clearly the integrator state is x[:,end] but when checking Simulate.jl the state used is x[:,1]:
Thanks for catching this @DarioSlaifsteinSk. I've updated it and confirmed the Cell_SOC is now varying in the correct amplitude. Feel free to open further issues in the future and corresponding PR's – I'll review as I have time.
Hi!$SoC$ values I´m getting don´t seem to add up.
I´m running some simple simulations with
LiiBRA
and I couldn´t help to notice that theI have a power setpoint$P_{BESS}$ I´m running through the cell.
$SOC^+$ I´m getting from
Unfortunately the
Simulate.jl
(in blue) doesn´t seem to be ok:Everything else checks out, for example, the terminal voltage below:
$v_t^-$ comes from my previous estimate
* the
And when printing the transition matrix of:
clearly the integrator state is
x[:,end]
but when checkingSimulate.jl
the state used isx[:,1]
:How do you handle pull requests and such? So I can change it and push to the repo.
The text was updated successfully, but these errors were encountered: