Hello everyone !
I’m trying to solve a 3 coupled and non linear PDE equations as a first work later Iwill see how to use Catalyst to add sources and sinks processes. for now its just the transport of coupled PDE of gases.
I established my equations everything went well formula after formula till setting up the equations using examples provided in MethodeOlines docs
the error happens after invoking discretization as follow
# PDE system
@named pdesys = PDESystem(eq, bcs, domains, [t, x], [u(t, x), v(t, x),w(t,x)])
# Method of lines discretization
dx = 0.001
order = 4
discretization = MOLFiniteDifference([x => dx], t, approx_order=order, grid_align=center_align)
# Convert the PDE problem into an ODE problem
prob = discretize(pdesys, discretization)
Here is the error displayed
Activating project at ~/Documents/JULIA-2-GAS
ERROR: UndefVarError: similarterm
not defined in PDEBase
Suggestion: check for spelling errors or missing imports.
Stacktrace:
[1] ex2term(term::SymbolicUtils.BasicSymbolic{Real}, v::PDEBase.VariableMap)
@ PDEBase ~/.julia/packages/PDEBase/EWM3U/src/symbolic_utils.jl:276
[2] create_aux_variable!(eqs::Vector{…}, bcs::Vector{…}, boundarymap::Dict{…}, v::PDEBase.VariableMap, term::SymbolicUtils.BasicSymbolic{…})
@ MethodOfLines ~/.julia/packages/MethodOfLines/NV0bv/src/system_parsing/pde_system_transformation.jl:207
[3] transform_pde_system!(v::PDEBase.VariableMap, boundarymap::Dict{…}, sys::PDESystem, disc::MOLFiniteDifference{…})
@ MethodOfLines ~/.julia/packages/MethodOfLines/NV0bv/src/system_parsing/pde_system_transformation.jl:27
[4] symbolic_discretize(pdesys::PDESystem, discretization::MOLFiniteDifference{…})
@ PDEBase ~/.julia/packages/PDEBase/EWM3U/src/symbolic_discretize.jl:31
[5] discretize(pdesys::PDESystem, discretization::MOLFiniteDifference{…}; analytic::Nothing, kwargs::@Kwargs{})
@ PDEBase ~/.julia/packages/PDEBase/EWM3U/src/discretization_state.jl:57
[6] discretize(pdesys::PDESystem, discretization::MOLFiniteDifference{…})
@ PDEBase ~/.julia/packages/PDEBase/EWM3U/src/discretization_state.jl:54
[7] top-level scope
@ ~/Documents/JULIA-2-GAS/3-Diff-EQS.jl:348
Some type information was truncated. Use show(err)
to see complete types.
Naceur