OOF2: The Manual

Name

Forward Euler (ForwardEuler) — Fully explicit first order time stepping.

Synopsis

ForwardEuler()

Details

Description

The Forward Euler method is the simplest method of numerically integrating ordinary differential equations. The individual steps are very quick to compute, but the method is often unstable, requiring very small step sizes. It is first order in time, meaning that it makes an error of order (Δt)2 on each step.

Given a vector ϕn of unknowns (i.e. Field values in OOF2) at time tn , and the first order differential equation

dϕdt=f(ϕ,t)
(6.138)

the Forward Euler estimate for ϕn+1 is

ϕn+1=ϕn+Δtf(ϕn,tn)
(6.139)

where Δt=tn+1tn .

ForwardEuler can be applied to equations with second order time derivatives

d2ϕdt2=g(ϕ,t)
(6.140)

by defining new variables

ψ=dϕdt
(6.141)

and solving the augmented set of first order equations

dψdt =g(ϕ,t)
dϕdt =ψ
(6.142)

ForwardEuler works equally well for linear and nonlinear equations. Because the method is explicit, equation (6.139) doesn't require a nonlinear solver even if f is nonlinear.

See Also