Skip to content

Charge from min SoC #47

@DarioSlaifsteinSk

Description

@DarioSlaifsteinSk

When a simulation (HPPC, CC, Simulate) hits the lower limit of the $SoC$ array it can't pick up that value and charge the Cell.
With $SoC_{min}=10$ % it works:

using LiiBRA

#---------- Cell Definition -----------------#
Sₑ = 4
Sₛ = 2
Cell = Construct("LG M50")
Spatial!(Cell, Sₑ, Sₛ)
Ŝ = collect(1.0:-0.1:0.1)
SOC = 0.1
Cell.Const.T = 298.15
A,B,C,D = Realise(Cell,Ŝ);

γ = 10; # the duration of the pulse in seconds
λ = -5. # the current in Amperes
Results, tₑ = CC(Cell,Ŝ,SOC,λ,γ,A,B,C,D);
julia> Results.Cell_SOC
10×1 Matrix{Float64}:
 0.1
 0.1
 0.10026952208487283
 0.10053904416974567
 0.1008085662546185
 0.10107808833949135
 0.10134761042436416
 0.10161713250923698
 0.10188665459410984
 0.10215617667898266

But not with $SoC_{min}=0%$

julia> Results.Cell_SOC
10×1 Matrix{Float64}:
 0.0
 0.0
 0.0
 0.0
 0.0
 0.0
 0.0
 0.0
 0.0
 0.0

Btw, with Ŝ = collect(1.0:-0.1:0.0), SOC=0.0:

julia> A,B,C,D = Realise(Cell,Ŝ);
System has non-real eigenvalues at SOC:0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions