We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Here is the code
julia> @time p = petlion( NMC_LGM50; N_p = 10, # discretizations in the cathode N_s = 10, # discretizations in the separator N_n = 10, # discretizations in the anode N_r_p = 10, # discretizations in the solid cathode particles N_r_n = 10, # discretizations in the solid anode particles temperature = false, # temperature enabled or disabled jacobian = :AD, # :AD (automatic-differenation) for convenience or :symbolic for speed ) 1.747106 seconds (6.21 M allocations: 380.034 MiB, 24.34% compilation time) PETLION model{jacobian_AD}: Cathode: NMC_LGM50, rxn_BV, & OCV_NMC Anode: LiC6_LGM50, rxn_BV, & OCV_LiC6 System: D_s_eff, rxn_rate, D_eff_LGM50, K_eff_LGM50, & thermodynamic_factor_linear ---Options--- Temperature: false Solid diffusion: Fickian, finite_difference Aging: stress Total capacity: 48.42 Ah/m², anode-limited Voltage bounds: [2.5 V, 4.2 V] SOC bounds: [0.0, 1.0] ---Node Points--- Pos. electrode: 10 Pos. particles: 10 Separator: 10 Neg. electrode: 10 Neg. particles: 10
julia> sol = simulate(p, I=1, SOC=0, V_max=4.1) ERROR: MethodError: no method matching check_stop_dfilm(::PETLION.model{PETLION.jacobian_AD{PETLION.var"#148#150"{Int64, PETLION.var"#386#387", PETLION.var"#384#385"}, SparseDiffTools.ForwardColorJacCache{Vector{ForwardDiff.Dual{ForwardDiff.Tag{PETLION.res_FD{PETLION.var"#148#150"{Int64, PETLION.var"#386#387", PETLION.var"#384#385"}}, Float64}, Float64, 10}}, Vector{ForwardDiff.Dual{ForwardDiff.Tag{PETLION.res_FD{PETLION.var"#148#150"{Int64, PETLION.var"#386#387", PETLION.var"#384#385"}}, Float64}, Float64, 10}}, Vector{Float64}, Vector{Vector{NTuple{10, Float64}}}, Vector{Int64}, SparseArrays.SparseMatrixCSC{Float64, Int64}}}, false, :Fickian, :finite_difference, :stress}, ::PETLION.run_constant{PETLION.method_I, Int64}, ::solution, ::Vector{Float64}, ::Vector{Float64}, ::PETLION.boundary_stop_conditions_immutable, ::Float64, ::Float64)
Closest candidates are: check_stop_dfilm(::PETLION.model{<:PETLION.AbstractJacobian, <:Any, <:Any, <:Any, false}, ::Any, ::Any, ::Any, ::Any, ::Any, ::Any, ::Any) @ PETLION C:\Users\Administrator.julia\packages\PETLION\hsg08\src\checks.jl:204 check_stop_dfilm(::R4, ::R3, ::Any, ::R2, ::R2, ::R5, ::Float64, ::Float64) where {R2<:(AbstractVector{<:Number}), R3<:PETLION.AbstractRun, R4<:(PETLION.model{<:PETLION.AbstractJacobian, <:Any, <:Any, <:Any, :SEI}), R5<:PETLION.boundary_stop_conditions_immutable} @ PETLION C:\Users\Administrator.julia\packages\PETLION\hsg08\src\checks.jl:205
Stacktrace: [1] #check_simulation_stop!#258 @ C:\Users\Administrator.julia\packages\PETLION\hsg08\src\checks.jl:25 [inlined] [2] check_simulation_stop! @ C:\Users\Administrator.julia\packages\PETLION\hsg08\src\checks.jl:1 [inlined] [3] initialize_simulation! @ C:\Users\Administrator.julia\packages\PETLION\hsg08\src\model_evaluation.jl:230 [inlined] [4] initialize_simulation! @ C:\Users\Administrator.julia\packages\PETLION\hsg08\src\model_evaluation.jl:175 [inlined] [5] simulate(p::PETLION.model{PETLION.jacobian_AD{PETLION.var"#148#150"{Int64, PETLION.var"#386#387", PETLION.var"#384#385"}, SparseDiffTools.ForwardColorJacCache{Vector{ForwardDiff.Dual{ForwardDiff.Tag{PETLION.res_FD{PETLION.var"#148#150"{Int64, PETLION.var"#386#387", PETLION.var"#384#385"}}, Float64}, Float64, 10}}, Vector{ForwardDiff.Dual{ForwardDiff.Tag{PETLION.res_FD{PETLION.var"#148#150"{Int64, PETLION.var"#386#387", PETLION.var"#384#385"}}, Float64}, Float64, 10}}, Vector{Float64}, Vector{Vector{NTuple{10, Float64}}}, Vector{Int64}, SparseArrays.SparseMatrixCSC{Float64, Int64}}}, false, :Fickian, :finite_difference, :stress}, tf::Float64; sol::solution, initial_states::Nothing, res_I_guess::Nothing, SOC::Int64, outputs::Tuple{Symbol, Symbol}, abstol::Float64, reltol::Float64, abstol_init::Float64, reltol_init::Float64, maxiters::Int64, check_bounds::Bool, reinit::Bool, verbose::Bool, interp_final::Bool, tstops::Vector{Float64}, tdiscon::Vector{Float64}, interp_bc::Symbol, save_start::Bool, stop_function::PETLION.var"#26#28", calc_integrator::Bool, V_max::Float64, V_min::Float64, SOC_max::Float64, SOC_min::Float64, T_max::Float64, c_s_n_max::Float64, I_max::Float64, I_min::Float64, η_plating_min::Float64, c_e_min::Float64, dfilm_max::Float64, inputs::Base.Pairs{Symbol, Int64, Tuple{Symbol}, NamedTuple{(:I,), Tuple{Int64}}}) @ PETLION C:\Users\Administrator.julia\packages\PETLION\hsg08\src\model_evaluation.jl:64 [6] simulate @ C:\Users\Administrator.julia\packages\PETLION\hsg08\src\model_evaluation.jl:11 [inlined] [7] top-level scope @ REPL[106]:1
The text was updated successfully, but these errors were encountered:
adding aging=false resolves the issue
Sorry, something went wrong.
No branches or pull requests
Here is the code
julia> @time p = petlion(
NMC_LGM50;
N_p = 10, # discretizations in the cathode
N_s = 10, # discretizations in the separator
N_n = 10, # discretizations in the anode
N_r_p = 10, # discretizations in the solid cathode particles
N_r_n = 10, # discretizations in the solid anode particles
temperature = false, # temperature enabled or disabled
jacobian = :AD, # :AD (automatic-differenation) for convenience or :symbolic for speed
)
1.747106 seconds (6.21 M allocations: 380.034 MiB, 24.34% compilation time)
PETLION model{jacobian_AD}:
Cathode: NMC_LGM50, rxn_BV, & OCV_NMC
Anode: LiC6_LGM50, rxn_BV, & OCV_LiC6
System: D_s_eff, rxn_rate, D_eff_LGM50, K_eff_LGM50, & thermodynamic_factor_linear
---Options---
Temperature: false
Solid diffusion: Fickian, finite_difference
Aging: stress
Total capacity: 48.42 Ah/m², anode-limited
Voltage bounds: [2.5 V, 4.2 V]
SOC bounds: [0.0, 1.0]
---Node Points---
Pos. electrode: 10
Pos. particles: 10
Separator: 10
Neg. electrode: 10
Neg. particles: 10
julia> sol = simulate(p, I=1, SOC=0, V_max=4.1)
ERROR: MethodError: no method matching check_stop_dfilm(::PETLION.model{PETLION.jacobian_AD{PETLION.var"#148#150"{Int64, PETLION.var"#386#387", PETLION.var"#384#385"}, SparseDiffTools.ForwardColorJacCache{Vector{ForwardDiff.Dual{ForwardDiff.Tag{PETLION.res_FD{PETLION.var"#148#150"{Int64, PETLION.var"#386#387", PETLION.var"#384#385"}}, Float64}, Float64, 10}}, Vector{ForwardDiff.Dual{ForwardDiff.Tag{PETLION.res_FD{PETLION.var"#148#150"{Int64, PETLION.var"#386#387", PETLION.var"#384#385"}}, Float64}, Float64, 10}}, Vector{Float64}, Vector{Vector{NTuple{10, Float64}}}, Vector{Int64}, SparseArrays.SparseMatrixCSC{Float64, Int64}}}, false, :Fickian, :finite_difference, :stress}, ::PETLION.run_constant{PETLION.method_I, Int64}, ::solution, ::Vector{Float64}, ::Vector{Float64}, ::PETLION.boundary_stop_conditions_immutable, ::Float64, ::Float64)
Closest candidates are:
check_stop_dfilm(::PETLION.model{<:PETLION.AbstractJacobian, <:Any, <:Any, <:Any, false}, ::Any, ::Any, ::Any, ::Any, ::Any, ::Any, ::Any)
@ PETLION C:\Users\Administrator.julia\packages\PETLION\hsg08\src\checks.jl:204
check_stop_dfilm(::R4, ::R3, ::Any, ::R2, ::R2, ::R5, ::Float64, ::Float64) where {R2<:(AbstractVector{<:Number}), R3<:PETLION.AbstractRun, R4<:(PETLION.model{<:PETLION.AbstractJacobian, <:Any, <:Any, <:Any, :SEI}), R5<:PETLION.boundary_stop_conditions_immutable}
@ PETLION C:\Users\Administrator.julia\packages\PETLION\hsg08\src\checks.jl:205
Stacktrace:
[1] #check_simulation_stop!#258
@ C:\Users\Administrator.julia\packages\PETLION\hsg08\src\checks.jl:25 [inlined]
[2] check_simulation_stop!
@ C:\Users\Administrator.julia\packages\PETLION\hsg08\src\checks.jl:1 [inlined]
[3] initialize_simulation!
@ C:\Users\Administrator.julia\packages\PETLION\hsg08\src\model_evaluation.jl:230 [inlined]
[4] initialize_simulation!
@ C:\Users\Administrator.julia\packages\PETLION\hsg08\src\model_evaluation.jl:175 [inlined]
[5] simulate(p::PETLION.model{PETLION.jacobian_AD{PETLION.var"#148#150"{Int64, PETLION.var"#386#387", PETLION.var"#384#385"}, SparseDiffTools.ForwardColorJacCache{Vector{ForwardDiff.Dual{ForwardDiff.Tag{PETLION.res_FD{PETLION.var"#148#150"{Int64, PETLION.var"#386#387", PETLION.var"#384#385"}}, Float64}, Float64, 10}}, Vector{ForwardDiff.Dual{ForwardDiff.Tag{PETLION.res_FD{PETLION.var"#148#150"{Int64, PETLION.var"#386#387", PETLION.var"#384#385"}}, Float64}, Float64, 10}}, Vector{Float64}, Vector{Vector{NTuple{10, Float64}}}, Vector{Int64}, SparseArrays.SparseMatrixCSC{Float64, Int64}}}, false, :Fickian, :finite_difference, :stress}, tf::Float64; sol::solution, initial_states::Nothing, res_I_guess::Nothing, SOC::Int64, outputs::Tuple{Symbol, Symbol}, abstol::Float64, reltol::Float64, abstol_init::Float64, reltol_init::Float64, maxiters::Int64, check_bounds::Bool, reinit::Bool, verbose::Bool, interp_final::Bool, tstops::Vector{Float64}, tdiscon::Vector{Float64}, interp_bc::Symbol, save_start::Bool, stop_function::PETLION.var"#26#28", calc_integrator::Bool, V_max::Float64, V_min::Float64, SOC_max::Float64, SOC_min::Float64, T_max::Float64, c_s_n_max::Float64, I_max::Float64, I_min::Float64, η_plating_min::Float64, c_e_min::Float64, dfilm_max::Float64, inputs::Base.Pairs{Symbol, Int64, Tuple{Symbol}, NamedTuple{(:I,), Tuple{Int64}}})
@ PETLION C:\Users\Administrator.julia\packages\PETLION\hsg08\src\model_evaluation.jl:64
[6] simulate
@ C:\Users\Administrator.julia\packages\PETLION\hsg08\src\model_evaluation.jl:11 [inlined]
[7] top-level scope
@ REPL[106]:1
The text was updated successfully, but these errors were encountered: