Skip to content

Boundary Value Problem #924

@kkakosim

Description

@kkakosim

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions