Skip to content

Playpen to compute the period doubling route to chaos in Duffing's equation. Uses SUNDIALS and VTK.

License

Notifications You must be signed in to change notification settings

brorson/Duffings-Eq

Repository files navigation

This directory holds stuff I created while writing a program to integrate Duffing's equation using methods from the Sundials numerical library,

https://computing.llnl.gov/projects/sundials

The codes are:

test.cpp -- just a throw-away test of how to use the sciplot library as well as what parameters I need in order to build using g++.

runDuffingsEq.cpp -- program which integrates Duffing's equation over time and then makes plots of the time series.

sampleDuffingsEq.cpp -- sweeps through gamma values, periodically samples the time series and then makes a plot of fixed points vs. gamma. The goal is to plot the period-doubling cascade to chaos.

Bifurcation diagram


To build this stuff:

mkdir build
cd build
cmake -S .. -B ..
cd ..
make

Jan 2022.

About

Playpen to compute the period doubling route to chaos in Duffing's equation. Uses SUNDIALS and VTK.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published