27.3.4 Solving the System of Coupled ODEs Using the Forward Euler Method

As an illustration, we will solve the system of coupled ODEs given by Eq. 27.43 using the Euler method. For the sake of simplicity, we assume unitless numbers for the variables using

D = 1

k = 1

m = 5

S = 1

h = 0.5

As we can see from Fig. 27.12, this is an underdamped oscillation. We start with the initial values F(…,0) at t = 0 which are given by

F(s,0) = 1

F(v,0) = 1

from which we can calculate the initial values X(…,0) at t = 0 using Eq. 27.43a and Eq. 27.43b to find

Xs0=v0=Fv0Xv0=-1mkFv0+DFs0=-150+1=-0.2

si142_e

Calculating the First Step. We now apply the forward Euler method ...

Get Microfluidics: Modeling, Mechanics and Mathematics now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.