|
Tempus Version of the Day
Time Integration
|
This example provides a minimal application code for integrating the van der Pol problem using a hand-written Forward Euler time loop. It does not yet use Tempus, Thyra, or other Trilinos abstractions for the state or time integration algorithm.
The purpose of this example is to establish the baseline structure used throughout the tutorial sequence. Later examples introduce Tempus and Trilinos capabilities one step at a time while preserving the same basic problem setup whenever possible.
The scaled explicit first-order ODE is
![\begin{eqnarray*}
\dot{x}_0(t) & = & x_1(t) \\
\dot{x}_1(t) & = & \left[(1-x_0^2)x_1-x_0\right]/\epsilon
\end{eqnarray*}](form_452.png)
with initial conditions

For the model definition and additional details, see Tempus_Test::VanDerPolModel and van der Pol Model.
This example demonstrates the basic structure of an application-level time integration loop:
The regression check at the end of the run is secondary to the tutorial discussion and can be ignored on a first reading.
In this version:
The next example replaces raw arrays with Thyra vectors while preserving the same overall algorithmic structure.