SMath Studio Forum
»
SMath Studio
»
Samples
»
Simple simulation of dynamic systems with optional controller
Rank: Member Groups: Registered
Joined: 27/08/2013(UTC) Posts: 19 Was thanked: 9 time(s) in 5 post(s)
|
A general purpose, simple ODE solver function that uses Euler integration to simulate (possibly non-linear) multi-inputs dynamic systems, with "embedded" provision for state feedback controller. In its most general form, the function implements a system of the form: where dot notation indicates time derivative. A few examples are provided. Edited by user 08 October 2013 15:35:39(UTC)
| Reason: Added function for discrete time systems.
|
3 users thanked mb10 for this useful post.
|
on 05/10/2013(UTC), on 06/10/2013(UTC), on 06/10/2013(UTC)
|
|
Rank: Advanced Member Groups: Registered
Joined: 15/04/2012(UTC) Posts: 1,990 Was thanked: 1128 time(s) in 724 post(s)
|
I like the way to plot vectors, was not aware of this. mkraska attached the following image(s): |
|
|
|
|
Rank: Member Groups: Registered
Joined: 27/08/2013(UTC) Posts: 19 Was thanked: 9 time(s) in 5 post(s)
|
It is an (undocumented?) feature I discovered by chance. Notice the "staircased" behaviour.
The X-Y plot plug-in has a similar property: in that case it seems that ANY variable name, not just "x", can be used as a subscript to obtain vector plot.
|
1 user thanked mb10 for this useful post.
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 15/04/2012(UTC) Posts: 1,990 Was thanked: 1128 time(s) in 724 post(s)
|
Originally Posted by: mb10 It is an (undocumented?) feature.
Not undocumented any more. SVN Activebook updated. |
|
2 users thanked mkraska for this useful post.
|
on 06/10/2013(UTC), on 06/10/2013(UTC)
|
|
Rank: Member Groups: Registered
Joined: 27/08/2013(UTC) Posts: 19 Was thanked: 9 time(s) in 5 post(s)
|
Attachment updated with a function for handling discrete time systems (see 1st post).
|
|
|
|
SMath Studio Forum
»
SMath Studio
»
Samples
»
Simple simulation of dynamic systems with optional controller
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.