-
-
Notifications
You must be signed in to change notification settings - Fork 39
Closed
Description
Hi all, I've working on a 2D hydrogen flame model that I've described in #59. I've tried to change the diffusivity parameter kappa by using @parameters x y t kappa and defining the PDESystem using
@named pdesys = PDESystem(
eqs, # partial differential equations
bcs, # initial/boundary conditions
domains, # domain of the independent variables (i.e. spatial/time)
[x,y,t], # independent variables
[YF(x,y,t), YO(x,y,t), YP(x,y,t), T(x,y,t)], # dependent variables
[κ], # parameters
)
The error that I get is this:
Discretization failed at structural_simplify, please post an issue on https://github.com/SciML/MethodOfLines.jl with the failing code and system at low point count.
ERROR: ArgumentError: Dict(kv): kv needs to be an iterator of tuples or pairs
Stacktrace:
[1] Dict(kv::Vector{Any})
@ Base ./dict.jl:132
[2] symbolic_discretize(pdesys::PDESystem, discretization::MOLFiniteDifference{MethodOfLines.CenterAlignedGrid})
@ MethodOfLines ~/.julia/packages/MethodOfLines/9MLPx/src/discretization/MOL_discretization.jl:124
[3] discretize(pdesys::PDESystem, discretization::MOLFiniteDifference{MethodOfLines.CenterAlignedGrid})
@ MethodOfLines ~/.julia/packages/MethodOfLines/9MLPx/src/discretization/MOL_discretization.jl:146
[4] top-level scope
@ ~/Museum/uni/msc5/UQDDM/project/scripts/hydrogenFlame2.jl:142
caused by: BoundsError: attempt to access Num at index [2]
Stacktrace:
[1] indexed_iterate(I::Num, i::Int64, state::Nothing)
@ Base ./tuple.jl:95
[2] grow_to!(dest::Dict{Num, Float64}, itr::Vector{Any}, st::Int64)
@ Base ./dict.jl:153
[3] grow_to!(dest::Dict{Any, Any}, itr::Vector{Any})
@ Base ./dict.jl:145
[4] dict_with_eltype
@ ./abstractdict.jl:539 [inlined]
[5] Dict(kv::Vector{Any})
@ Base ./dict.jl:129
[6] symbolic_discretize(pdesys::PDESystem, discretization::MOLFiniteDifference{MethodOfLines.CenterAlignedGrid})
@ MethodOfLines ~/.julia/packages/MethodOfLines/9MLPx/src/discretization/MOL_discretization.jl:124
[7] discretize(pdesys::PDESystem, discretization::MOLFiniteDifference{MethodOfLines.CenterAlignedGrid})
@ MethodOfLines ~/.julia/packages/MethodOfLines/9MLPx/src/discretization/MOL_discretization.jl:146
[8] top-level scope
@ ~/Museum/uni/msc5/UQDDM/project/scripts/hydrogenFlame2.jl:142
Metadata
Metadata
Assignees
Labels
No labels