-
-
Notifications
You must be signed in to change notification settings - Fork 232
Closed
Description
Hello all,
is there any example or test implementing a "BVPsystem"? I tried to implement like ODE but with no luck
@parameters r
@variables T(..)
D = Differential(r)
kc = 25.
ks = 385.
Tf = 350.
Rc = 0.005
Rs = 1.5 * Rc
h = 100.
Sc = 0.
Tinit = 298.
# 1D ODE and boundary conditions
eq = [0 ~ (1/r^2) * D( (1/r^2) * kc * D( T(r) ) ) + Sc,
0~ D(T(0)),
0~ D(T(Rs)) - h * (T(Rs) - Tf)]
# ODE system
sys = ODESystem(eq, T)
p=[]
T0 = [T => Tinit]
rspan=(0.0 , Rs)
prob = ODEProblem(sys, T0, rspan, p)
# Solve ODE problem
sol = solve(prob)
Metadata
Metadata
Assignees
Labels
No labels