Skip to content

Commit 4604722

Browse files
committed
Less stiff example
1 parent 75c44d1 commit 4604722

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

examples/serial_inductor.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ include("electrical_components.jl")
22

33
@named source = ConstantVoltage(V=10.0)
44
@named resistor = Resistor(R=1.0)
5-
@named inductor1 = Inductor(L=8.0e-9)
6-
@named inductor2 = Inductor(L=2.0e-9)
5+
@named inductor1 = Inductor(L=1.0e-2)
6+
@named inductor2 = Inductor(L=2.0e-2)
77
@named ground = Ground()
88

99
eqs = [

test/components.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,6 @@ u0 = [
4141
]
4242
prob = ODEProblem(sys, u0, (0, 10.0))
4343
sol = solve(prob, Rodas4())
44+
45+
prob = ODAEProblem(sys, u0, (0, 10.0))
46+
sol = solve(prob, Tsit5())

0 commit comments

Comments
 (0)