From 5e9d67546b16be3a4a83a6a61346bbabd98f23f6 Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Thu, 12 Sep 2024 05:28:20 +0200 Subject: [PATCH] Fix DC Motor tutorial Fixes https://github.com/SciML/ModelingToolkitStandardLibrary.jl/issues/328 --- docs/src/tutorials/dc_motor_pi.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/tutorials/dc_motor_pi.md b/docs/src/tutorials/dc_motor_pi.md index cb712653d..420eb43d4 100644 --- a/docs/src/tutorials/dc_motor_pi.md +++ b/docs/src/tutorials/dc_motor_pi.md @@ -111,7 +111,7 @@ matrices_S, simplified_sys = Blocks.get_sensitivity( model, :y, op = Dict(unknowns(sys) .=> 0.0)) So = ss(matrices_S...) |> minreal # The output-sensitivity function as a StateSpace system matrices_T, simplified_sys = Blocks.get_comp_sensitivity( - model, :y, op = Dict(model.inertia.phi => 0.0, model.inertia.w => 0.0)) + model, :y, op = Dict(sys.inertia.phi => 0.0, sys.inertia.w => 0.0)) To = ss(matrices_T...)# The output complementary sensitivity function as a StateSpace system bodeplot([So, To], label = ["S" "T"], plot_title = "Sensitivity functions", plotphase = false)