All examples

| Home | Libraries | People | FAQ | More

### All examples

The following table gives an overview over all examples.

Table 1.4. Examples Overview

File | Brief Description
--- | ---
bind_member_functions.cpp | This examples shows how member functions can be used as system functions in odeint.
bind_member_functions_cpp11.cpp | This examples shows how member functions can be used as system functions in odeint with `std::bind` in C++11.
bulirsch_stoer.cpp | Shows the usage of the Bulirsch-Stoer method.
chaotic_system.cpp | The chaotic system examples integrates the Lorenz system and calculates the Lyapunov exponents.
elliptic_functions.cpp | Example calculating the elliptic functions using Bulirsch-Stoer and Runge-Kutta-Dopri5 Steppers with dense output.
fpu.cpp | The Fermi-Pasta-Ulam (FPU) example shows how odeint can be used to integrate lattice systems.
generation_functions.cpp | Shows skeletal code on how to implement own factory functions.
harmonic_oscillator.cpp | The harmonic oscillator examples gives a brief introduction to odeint and shows the usage of the classical Runge-Kutta-solvers.
harmonic_oscillator_units.cpp | This examples shows how Boost.Units can be used with odeint.
heun.cpp | The Heun example shows how an custom Runge-Kutta stepper can be created with odeint generic Runge-Kutta method.
list_lattice.cpp | Example of a phase lattice integration using `std::list` as state type.
lorenz_point.cpp | Alternative way of integrating lorenz by using a self defined point3d data type as state type.
my_vector.cpp | Simple example showing how to get odeint to work with a self-defined vector type.
phase_oscillator_ensemble.cpp | The phase oscillator ensemble example shows how globally coupled oscillators can be analyzed and how statistical measures can be computed during integration.
resizing_lattice.cpp | Shows the strength of odeint's memory management by simulating a Hamiltonian system on an expanding lattice.
simple1d.cpp | Integrating a simple, one-dimensional ODE showing the usage of integrate- and generate-functions.
solar_system.cpp | The solar system example shows the usage of the symplectic solvers.
stepper_details.cpp | Trivial example showing the usability of the several stepper classes.
stiff_system.cpp | The stiff system example shows the usage of the stiff solvers using the Jacobian of the system function.
stochastic_euler.cpp | Implementation of a custom stepper - the stochastic euler - for solving stochastic differential equations.
stuart_landau.cpp | The Stuart-Landau example shows how odeint can be used with complex state types.
two_dimensional_phase_lattice.cpp | The 2D phase oscillator example shows how a two-dimensional lattice works with odeint and how matrix types can be used as state types in odeint.
van_der_pol_stiff.cpp | This stiff system example again shows the usage of the stiff solvers by integrating the van der Pol oscillator.
gmpxx/lorenz_gmpxx.cpp | This examples integrates the Lorenz system by means of an arbitrary precision type.
mtl/gauss_packet.cpp | The MTL-Gauss-packet example shows how the MTL can be easily used with odeint.
mtl/implicit_euler_mtl.cpp | This examples shows the usage of the MTL implicit Euler method with a sparse matrix type.
thrust/phase_oscillator_ensemble.cu | The Thrust phase oscillator ensemble example shows how globally coupled oscillators can be analyzed with Thrust and CUDA, employing the power of modern graphic devices.
thrust/phase_oscillator_chain.cu | The Thrust phase oscillator chain example shows how chains of nearest neighbor coupled oscillators can be integrated with Thrust and odeint.
thrust/lorenz_parameters.cu | The Lorenz parameters examples show how ensembles of ordinary differential equations can be solved by means of Thrust to study the dependence of an ODE on some parameters.
thrust/relaxation.cu | Another examples for the usage of Thrust.
ublas/lorenz_ublas.cpp | This example shows how the ublas vector types can be used with odeint.
vexcl/lorenz_ensemble.cpp | This example shows how the VexCL - a framework for OpenCL computation - can be used with odeint.
openmp/lorenz_ensemble_simple.cpp | OpenMP Lorenz attractor parameter study with continuous data.
openmp/lorenz_ensemble.cpp | OpenMP Lorenz attractor parameter study with split data.
openmp/lorenz_ensemble_nested.cpp | OpenMP Lorenz attractor parameter study with nested `vector_space_algebra`.
openmp/phase_chain.cpp | OpenMP nearest neighbour coupled phase chain with continuous state.
openmp/phase_chain_omp_state.cpp | OpenMP nearest neighbour coupled phase chain with split state.
mpi/phase_chain.cpp | MPI nearest neighbour coupled phase chain.
2d_lattice/spreading.cpp | This examples shows how a `vector< vector< T > >` can be used a state type for odeint and how a resizing mechanism of this state can be implemented.
quadmath/black_hole.cpp | This examples shows how gcc libquadmath can be used with odeint. It provides a high precision floating point type which is adapted to odeint in this example.
molecular_dynamics.cpp | A very basic molecular dynamics simulation with the Velocity-Verlet method.