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⁢ϕd⁢t=f⁢(ϕ,t)
(6.138)

the Forward Euler estimate for ϕn+1 is

ϕn+1=ϕn+Δ⁢t⁢f⁢(ϕn,tn)
(6.139)

where Δ⁢t=tn+1−tn .

ForwardEuler can be applied to equations with second order time derivatives

d2⁢ϕd⁢t2=g⁢(ϕ,t)
(6.140)

by defining new variables

ψ=d⁢ϕd⁢t
(6.141)

and solving the augmented set of first order equations

d⁢ψd⁢t =g⁢(ϕ,t)
d⁢ϕd⁢t =ψ
(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