# An analytic Hopf-Cole solution to Burger's Equation w

t
w w
x
Ν w
xx
on a 2Π -periodic
domain
First, set the parameters for and examine an analytic solution to the heat equation u
t
Ν u
xx
on a 2Π -periodicdomain. This form
was taken from Equation World (http://eqworld.ipmnet.ru/en/solutions/lpde/lpde101.pdf).
A 1; ( Magnitude )
B 1; ( Phase Shift )
Const 100 / 99; ( Constant offset )
Ν 1 / 100; ( Diffusion coefficient )
Μ 3; ( Frequency )
u[x_, t_] : A Exp]Ν Μ
2
t| Cos[Μ x B] Const
Ensure the closed-form function is a solution:
D[u[x, t], t] Ν D[u[x, t], {x, 2}] // FullSimplify
0
Visually inspect the solution:
Plot3D[u[x, t], {x, 0, 2 Π}, {t, 0, 1}, PlotRange Full]
0
2
4
6
0.0
0.5
1.0
0.0
0.5
1.0
1.5
2.0
Employ the Hopf-Cole transformation to find w[x,t] in terms of u[x,t]:
w[x_, t_] 2 Ν
D[u[x, t], x]
u[x, t]
;
w[x, t] // FullSimplify
297 Sin1 3 x
50 100
9 t100
99 Cos1 3 x
Ensure the closed-form function is a solution:
D[w[x, t], t] w[x, t] D[w[x, t], x] Ν D[w[x, t], {x, 2}] // FullSimplify
0
Kick out the Burger' s problem initial condition for numerical use:
Kick out the Burger' s problem initial condition for numerical use:
w[x, 0] // FullSimplify
3 Sin1 3 x
50
100
99
Cos1 3 x
Visually inspect the solution:
Plot3D[w[x, t], {x, 0, 2 Π}, {t, 0, 1}, PlotRange Full]
0
2
4
6
0.0
0.5
1.0
0.4
0.2
0.0
0.2
0.4
The heat equation parameters were chosen to produce a valid Hopf-Cole solution avoiding divide-by-zero problems. Present
are (hopefully) features sharp enough to exercise shock-capturing numerics and diffusive effects noticable but small enough to
detect numerical dissipation.
2 BurgersAnalytic.nb

Sign up to vote on this title