Group Abstract Group Abstract

Message Boards Message Boards

0
|
2.8K Views
|
2 Replies
|
3 Total Likes
View groups...
Share
Share this post:

State space equation obtained with Systemmodeler command

Posted 2 years ago

I use Boolean signals to control the opening and closing of the switch. The state space equation obtained by using the Systemmodeler command is inconsistent with the correct result. What is the reason? Or how did the number 100000 in the result come from?

1) Buck circuit with Boolean switch enter image description here

2) State space equation with boolean switch enter image description here

3) Buck circuit without Boolean switch enter image description here

4) State space equation without Boolean switch (correct) enter image description here

My code:

spacemodel = SystemModelLinearize["Model2", 
    Method -> {"SymbolicDerivative", 
        "SymbolicParameters" -> {"r", "l", "c", "k1", "k2"}}];
rule1 = {QuantityVariable["r", IndependentPhysicalQuantity[""]] -> r, 
   QuantityVariable["l", IndependentPhysicalQuantity[""]] -> l, 
   QuantityVariable["c", IndependentPhysicalQuantity[""]] -> c, 
   QuantityVariable["k1", IndependentPhysicalQuantity[""]] -> k1, 
   QuantityVariable["k2", IndependentPhysicalQuantity[""]] -> k2};
A = spacemodel[[1, 1]] /. rule1 // UnitSimplify // FullSimplify
B = spacemodel[[1, 2]] /. rule1 // UnitSimplify // FullSimplify
Attachments:
POSTED BY: James James
2 Replies
POSTED BY: Sergio Vargas
Posted 2 years ago

Thank you, sir!

POSTED BY: James James
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard