-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chaotic behavior: Modelica.Electrical.Analog.Examples.ChuaCircuit #4477
Comments
You can test my models at https://github.com/AHaumer/ChaoticCircuits |
@AHaumer, the Chua circuit is designed on purpose to produce chaotic behaviour. There is nothing wrong with that, in fact, it was a fundamental discovery of 20th-century mathematics that you could get such kind of pseudo-random behaviour out of fully deterministic behavioural descriptions of systems dynamics. Of course the default experiment annotation should allow to actually see that. And, BTW, it would be interesting not only to look at time plots of individual variables, but also to phase plots that allow to see the strange attractor that characterizes this system: I'm not worried at all by the sensitivity of the solution to the solver parameters etc., because that's the whole point of this system. The only thing we should be careful about is to avoid using such chaotic motion for regression testing and cross-tool checking. For that, we need to use a much shorter simulation interval, over which the trajectory instability does not have enough time to develop. |
Regarding the values of the parameters, I checked the reference cited in the documentation. Indeed, the values of the parameters are:
As a consequence, the simulation interval should be a few ms, rather than 50,000 s. I'm not sure why the circuit parameter were scaled that way, we should probably ask @christophclauss. Since we have a proper reference to a published paper, we should use the same parameters that are given there. |
I am rather sure about the parameters (maybe not 100% those from the paper but they work). |
See discussion in the language group #3473 about verificationExperiment annotation. |
I wonder whether the results of the above mentioned example can be compared between different simulators.
The default parameter settings lead to chaotic behavior. The results are extremely sensitive not only to parameters and initial conditions but also to tolerance and details of the solver.
Choosing other parameter settings would either lead to periodic behavior or to a fix point.
The parameters are extremely unrealistic and can't be validated with a real circuit:
Who can get an inductance of 18 H and capacitances of 100 F and 10 F?
@casella mentioned another chaotic oscillator in another discussion (#4771).
Inspired by that, I implemented a few chaotic circuits with realistic parameters.
They are even of didactic interest,
I wonder whether we should:
I'm pretty sure that examples with chaotic behavior are nice demos but a very bad base for comparing results between different tools.
@casella @HansOlsson @christiankral What's your opinion?
The text was updated successfully, but these errors were encountered: