-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
julia> dictionary_api(Dict())
Entered coil 1
ERROR: InexactError: Int64(NaN)
Stacktrace:
[1] Int64 at ./float.jl:710 [inlined]
[2] convert(::Type{Int64}, ::Float64) at ./number.jl:7
[3] δM(::IronProjectile, ::Unitful.Quantity{Float64,� �^-1,Unitful.FreeUnits{(A, m^-1),� �^-1,nothing}}, ::Unitful.Quantity{Float64,� �^-1,Unitful.FreeUnits{(A, m^-1),� �^-1,nothing}}, ::Unitful.Quantity{Float64,� �^-1,Unitful.FreeUnits{(A, m^-1),� �^-1,nothing}}, ::Unitful.Quantity{Float64,� �^-1 �^-1,Unitful.FreeUnits{(A, m^-1, s^-1),� �^-1 �^-1,nothing}}) at /root/.julia/packages/CoilGun/d5pWP/src/Magnetization.jl:11
[4] ∂Magnetization_∂HField(::IronProjectile, ::Unitful.Quantity{Float64,� �^-1,Unitful.FreeUnits{(A, m^-1),� �^-1,nothing}}, ::Unitful.Quantity{Float64,� �^-1,Unitful.FreeUnits{(A, m^-1),� �^-1,nothing}}, ::Unitful.Quantity{Float64,� �^-1,Unitful.FreeUnits{(A, m^-1),� �^-1,nothing}}, ::Unitful.Quantity{Float64,� �^-1 �^-1,Unitful.FreeUnits{(A, m^-1, s^-1),� �^-1 �^-1,nothing}}) at /root/.julia/packages/CoilGun/d5pWP/src/Magnetization.jl:48
[5] coilProblem!(::Array{Float64,1}, ::Array{Float64,1}, ::Scenario, ::Float64) at /root/.julia/packages/CoilGun/d5pWP/src/solver.jl:68
[6] ODEFunction at /root/.julia/packages/DiffEqBase/T5smF/src/diffeqfunction.jl:248 [inlined]
[7] ode_determine_initdt(::Array{Float64,1}, ::Float64, ::Float64, ::Float64, ::Float64, ::Float64, ::typeof(DiffEqBase.ODE_DEFAULT_NORM), ::DiffEqBase.ODEProblem{Array{Float64,1},Tuple{Float64,Float64},true,Scenario,DiffEqBase.ODEFunction{true,typeof(CoilGun.coilProblem!),LinearAlgebra.UniformScaling{Bool},Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing},Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}},DiffEqBase.StandardODEProblem}, ::OrdinaryDiffEq.ODEIntegrator{OrdinaryDiffEq.Rodas4{0,false,DiffEqBase.DefaultLinSolve,DataType},true,Array{Float64,1},Nothing,Float64,Scenario,Float64,Float64,Float64,Array{Array{Float64,1},1},DiffEqBase.ODESolution{Float64,2,Array{Array{Float64,1},1},Nothing,Nothing,Array{Float64,1},Array{Array{Array{Float64,1},1},1},DiffEqBase.ODEProblem{Array{Float64,1},Tuple{Float64,Float64},true,Scenario,DiffEqBase.ODEFunction{true,typeof(CoilGun.coilProblem!),LinearAlgebra.UniformScaling{Bool},Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing},Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}},DiffEqBase.StandardODEProblem},OrdinaryDiffEq.Rodas4{0,false,DiffEqBase.DefaultLinSolve,DataType},OrdinaryDiffEq.InterpolationData{DiffEqBase.ODEFunction{true,typeof(CoilGun.coilProblem!),LinearAlgebra.UniformScaling{Bool},Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing},Array{Array{Float64,1},1},Array{Float64,1},Array{Array{Array{Float64,1},1},1},OrdinaryDiffEq.Rodas4Cache{Array{Float64,1},Array{Float64,1},Array{Float64,1},Array{Float64,2},Array{Float64,2},OrdinaryDiffEq.RodasTableau{Float64,Float64},DiffEqBase.TimeGradientWrapper{DiffEqBase.ODEFunction{true,typeof(CoilGun.coilProblem!),LinearAlgebra.UniformScaling{Bool},Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing},Array{Float64,1},Scenario},DiffEqBase.UJacobianWrapper{DiffEqBase.ODEFunction{true,typeof(CoilGun.coilProblem!),LinearAlgebra.UniformScaling{Bool},Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing},Float64,Scenario},DiffEqBase.DefaultLinSolve,FiniteDiff.JacobianCache{Array{Float64,1},Array{Float64,1},Array{Float64,1},UnitRange{Int64},Nothing,Val{:forward},Float64},FiniteDiff.GradientCache{Nothing,Array{Float64,1},Array{Float64,1},Float64,Val{:forward},Float64,Val{true}}}},DiffEqBase.DEStats},DiffEqBase.ODEFunction{true,typeof(CoilGun.coilProblem!),LinearAlgebra.UniformScaling{Bool},Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing},OrdinaryDiffEq.Rodas4Cache{Array{Float64,1},Array{Float64,1},Array{Float64,1},Array{Float64,2},Array{Float64,2},OrdinaryDiffEq.RodasTableau{Float64,Float64},DiffEqBase.TimeGradientWrapper{DiffEqBase.ODEFunction{true,typeof(CoilGun.coilProblem!),LinearAlgebra.UniformScaling{Bool},Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing},Array{Float64,1},Scenario},DiffEqBase.UJacobianWrapper{DiffEqBase.ODEFunction{true,typeof(CoilGun.coilProblem!),LinearAlgebra.UniformScaling{Bool},Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing},Float64,Scenario},DiffEqBase.DefaultLinSolve,FiniteDiff.JacobianCache{Array{Float64,1},Array{Float64,1},Array{Float64,1},UnitRange{Int64},Nothing,Val{:forward},Float64},FiniteDiff.GradientCache{Nothing,Array{Float64,1},Array{Float64,1},Float64,Val{:forward},Float64,Val{true}}},OrdinaryDiffEq.DEOptions{Float64,Float64,Float64,Float64,typeof(DiffEqBase.ODE_DEFAULT_NORM),typeof(LinearAlgebra.opnorm),DiffEqBase.CallbackSet{Tuple{},Tuple{}},typeof(DiffEqBase.ODE_DEFAULT_ISOUTOFDOMAIN),typeof(DiffEqBase.ODE_DEFAULT_PROG_MESSAGE),typeof(DiffEqBase.ODE_DEFAULT_UNSTABLE_CHECK),DataStructures.BinaryHeap{Float64,DataStructures.LessThan},DataStructures.BinaryHeap{Float64,DataStructures.LessThan},Nothing,Nothing,Int64,Tuple{},Tuple{},Tuple{}},Array{Float64,1},Float64,Nothing,OrdinaryDiffEq.DefaultInit}) at /root/.julia/packages/OrdinaryDiffEq/yn1YB/src/initdt.jl:23
[8] auto_dt_reset! at /root/.julia/packages/OrdinaryDiffEq/yn1YB/src/integrators/integrator_interface.jl:297 [inlined]
[9] handle_dt!(::OrdinaryDiffEq.ODEIntegrator{OrdinaryDiffEq.Rodas4{0,false,DiffEqBase.DefaultLinSolve,DataType},true,Array{Float64,1},Nothing,Float64,Scenario,Float64,Float64,Float64,Array{Array{Float64,1},1},DiffEqBase.ODESolution{Float64,2,Array{Array{Float64,1},1},Nothing,Nothing,Array{Float64,1},Array{Array{Array{Float64,1},1},1},DiffEqBase.ODEProblem{Array{Float64,1},Tuple{Float64,Float64},true,Scenario,DiffEqBase.ODEFunction{true,typeof(CoilGun.coilProblem!),LinearAlgebra.UniformScaling{Bool},Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing},Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}},DiffEqBase.StandardODEProblem},OrdinaryDiffEq.Rodas4{0,false,DiffEqBase.DefaultLinSolve,DataType},OrdinaryDiffEq.InterpolationData{DiffEqBase.ODEFunction{true,typeof(CoilGun.coilProblem!),LinearAlgebra.UniformScaling{Bool},Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing},Array{Array{Float64,1},1},Array{Float64,1},Array{Array{Array{Float64,1},1},1},OrdinaryDiffEq.Rodas4Cache{Array{Float64,1},Array{Float64,1},Array{Float64,1},Array{Float64,2},Array{Float64,2},OrdinaryDiffEq.RodasTableau{Float64,Float64},DiffEqBase.TimeGradientWrapper{DiffEqBase.ODEFunction{true,typeof(CoilGun.coilProblem!),LinearAlgebra.UniformScaling{Bool},Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing},Array{Float64,1},Scenario},DiffEqBase.UJacobianWrapper{DiffEqBase.ODEFunction{true,typeof(CoilGun.coilProblem!),LinearAlgebra.UniformScaling{Bool},Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing},Float64,Scenario},DiffEqBase.DefaultLinSolve,FiniteDiff.JacobianCache{Array{Float64,1},Array{Float64,1},Array{Float64,1},UnitRange{Int64},Nothing,Val{:forward},Float64},FiniteDiff.GradientCache{Nothing,Array{Float64,1},Array{Float64,1},Float64,Val{:forward},Float64,Val{true}}}},DiffEqBase.DEStats},DiffEqBase.ODEFunction{true,typeof(CoilGun.coilProblem!),LinearAlgebra.UniformScaling{Bool},Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing},OrdinaryDiffEq.Rodas4Cache{Array{Float64,1},Array{Float64,1},Array{Float64,1},Array{Float64,2},Array{Float64,2},OrdinaryDiffEq.RodasTableau{Float64,Float64},DiffEqBase.TimeGradientWrapper{DiffEqBase.ODEFunction{true,typeof(CoilGun.coilProblem!),LinearAlgebra.UniformScaling{Bool},Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing},Array{Float64,1},Scenario},DiffEqBase.UJacobianWrapper{DiffEqBase.ODEFunction{true,typeof(CoilGun.coilProblem!),LinearAlgebra.UniformScaling{Bool},Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing},Float64,Scenario},DiffEqBase.DefaultLinSolve,FiniteDiff.JacobianCache{Array{Float64,1},Array{Float64,1},Array{Float64,1},UnitRange{Int64},Nothing,Val{:forward},Float64},FiniteDiff.GradientCache{Nothing,Array{Float64,1},Array{Float64,1},Float64,Val{:forward},Float64,Val{true}}},OrdinaryDiffEq.DEOptions{Float64,Float64,Float64,Float64,typeof(DiffEqBase.ODE_DEFAULT_NORM),typeof(LinearAlgebra.opnorm),DiffEqBase.CallbackSet{Tuple{},Tuple{}},typeof(DiffEqBase.ODE_DEFAULT_ISOUTOFDOMAIN),typeof(DiffEqBase.ODE_DEFAULT_PROG_MESSAGE),typeof(DiffEqBase.ODE_DEFAULT_UNSTABLE_CHECK),DataStructures.BinaryHeap{Float64,DataStructures.LessThan},DataStructures.BinaryHeap{Float64,DataStructures.LessThan},Nothing,Nothing,Int64,Tuple{},Tuple{},Tuple{}},Array{Float64,1},Float64,Nothing,OrdinaryDiffEq.DefaultInit}) at /root/.julia/packages/OrdinaryDiffEq/yn1YB/src/solve.jl:451
[10] __init(::DiffEqBase.ODEProblem{Array{Float64,1},Tuple{Float64,Float64},true,Scenario,DiffEqBase.ODEFunction{true,typeof(CoilGun.coilProblem!),LinearAlgebra.UniformScaling{Bool},Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing},Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}},DiffEqBase.StandardODEProblem}, ::OrdinaryDiffEq.Rodas4{0,false,DiffEqBase.DefaultLinSolve,DataType}, ::Tuple{}, ::Tuple{}, ::Tuple{}, ::Type{Val{true}}; saveat::Tuple{}, tstops::Tuple{}, d_discontinuities::Tuple{}, save_idxs::Nothing, save_everystep::Bool, save_on::Bool, save_start::Bool, save_end::Bool, callback::Nothing, dense::Bool, calck::Bool, dt::Float64, dtmin::Nothing, dtmax::Float64, force_dtmin::Bool, adaptive::Bool, gamma::Rational{Int64}, abstol::Nothing, reltol::Nothing, qmin::Rational{Int64}, qmax::Int64, qsteady_min::Int64, qsteady_max::Rational{Int64}, qoldinit::Rational{Int64}, fullnormalize::Bool, failfactor::Int64, beta1::Nothing, beta2::Nothing, maxiters::Int64, internalnorm::typeof(DiffEqBase.ODE_DEFAULT_NORM), internalopnorm::typeof(LinearAlgebra.opnorm), isoutofdomain::typeof(DiffEqBase.ODE_DEFAULT_ISOUTOFDOMAIN), unstable_check::typeof(DiffEqBase.ODE_DEFAULT_UNSTABLE_CHECK), verbose::Bool, timeseries_errors::Bool, dense_errors::Bool, advance_to_tstop::Bool, stop_at_next_tstop::Bool, initialize_save::Bool, progress::Bool, progress_steps::Int64, progress_name::String, progress_message::typeof(DiffEqBase.ODE_DEFAULT_PROG_MESSAGE), userdata::Nothing, allow_extrapolation::Bool, initialize_integrator::Bool, alias_u0::Bool, alias_du0::Bool, initializealg::OrdinaryDiffEq.DefaultInit, kwargs::Base.Iterators.Pairs{Symbol,Any,Tuple{Symbol,Symbol,Symbol},NamedTuple{(:default_set, :second_time, :alg_hints),Tuple{Bool,Bool,Array{Symbol,1}}}}) at /root/.julia/packages/OrdinaryDiffEq/yn1YB/src/solve.jl:414
[11] __solve(::DiffEqBase.ODEProblem{Array{Float64,1},Tuple{Float64,Float64},true,Scenario,DiffEqBase.ODEFunction{true,typeof(CoilGun.coilProblem!),LinearAlgebra.UniformScaling{Bool},Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing},Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}},DiffEqBase.StandardODEProblem}, ::OrdinaryDiffEq.Rodas4{0,false,DiffEqBase.DefaultLinSolve,DataType}; kwargs::Base.Iterators.Pairs{Symbol,Any,Tuple{Symbol,Symbol,Symbol},NamedTuple{(:default_set, :second_time, :alg_hints),Tuple{Bool,Bool,Array{Symbol,1}}}}) at /root/.julia/packages/OrdinaryDiffEq/yn1YB/src/solve.jl:4
[12] __solve(::DiffEqBase.ODEProblem{Array{Float64,1},Tuple{Float64,Float64},true,Scenario,DiffEqBase.ODEFunction{true,typeof(CoilGun.coilProblem!),LinearAlgebra.UniformScaling{Bool},Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing},Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}},DiffEqBase.StandardODEProblem}, ::Nothing; default_set::Bool, kwargs::Base.Iterators.Pairs{Symbol,Any,Tuple{Symbol,Symbol},NamedTuple{(:second_time, :alg_hints),Tuple{Bool,Array{Symbol,1}}}}) at /root/.julia/packages/DifferentialEquations/fpohE/src/default_solve.jl:7
[13] #__solve#471 at /root/.julia/packages/DiffEqBase/T5smF/src/solve.jl:258 [inlined]
[14] solve_call(::DiffEqBase.ODEProblem{Array{Float64,1},Tuple{Float64,Float64},true,Scenario,DiffEqBase.ODEFunction{true,typeof(CoilGun.coilProblem!),LinearAlgebra.UniformScaling{Bool},Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing},Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}},DiffEqBase.StandardODEProblem}; merge_callbacks::Bool, kwargs::Base.Iterators.Pairs{Symbol,Array{Symbol,1},Tuple{Symbol},NamedTuple{(:alg_hints,),Tuple{Array{Symbol,1}}}}) at /root/.julia/packages/DiffEqBase/T5smF/src/solve.jl:92
[15] #solve_up#461 at /root/.julia/packages/DiffEqBase/T5smF/src/solve.jl:117 [inlined]
[16] #solve#460 at /root/.julia/packages/DiffEqBase/T5smF/src/solve.jl:102 [inlined]
[17] solveScenario(::Scenario) at /root/.julia/packages/CoilGun/d5pWP/src/solver.jl:78
[18] solve_senario at /root/.julia/packages/CoilGun/d5pWP/src/api/default_components.jl:142 [inlined]
[19] dictionary_api(::Dict{Any,Any}) at /root/.julia/packages/CoilGun/d5pWP/src/api/api.jl:44
[20] top-level scope at REPL[4]:1
julia>
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels