pde2path demos
Clicking on the demo name changes to that directory; clicking the m file(s) opens them in the editor,
where they should be run cell-by-cell. For this to work, either run
setpde2path, or set
p2phome by hand, for instance by calling
p2phome=pwd in the
pde2path root
directory.
Contents
Scalar problems
- acsuite: a collection of demos for the Allen-Cahn equation in 1D, 2D, and 3D, using the OOPDE setting; described in "The OOPDE setting of pde2path - a tutotial via some Allen-Cahn models", available
here.
-
ac1D_simple,
cmds.m : Allen-Cahn eq. on 1D interval with homogeneous Neumann BC: a starting point for beginners.
-
ac1D,
cmds1.m :
1D Allen-Cahn eq. with Dirichlet BC, including mesh-adaption and fold continuation.
-
6 further demo-directories, including x-dependent terms,
quasilinear problems, and nonlinear BC, in 1D, 2D and 3D.
See the tutorial.
- acpbc: a variant
of acsuite with periodic BC, described in "Periodic boundary conditions in pde2path", available
here.
-
ac1Dpbc,
cmds.m :
1D Allen-Cahn eq. with periodic BC, including mesh-adaption and fold continuation.
-
3 further demo-directories, including x-dependent terms,
quasilinear problems, in 2D and 3D.
See the tutorial.
- The 'old' AC demos are here:
- acfold,
acfold_cmds.m : Allen-Cahn eq. on rectangle with homogeneous
DBC and fold continuation.
- acfront,
acfront_cmds.m :
Traveling wave continuation for Allen-Cahn eq.,
quasi 1D with NBC
- acgc,
acgccmds.m :
Allen-Cahn eq. on rectangle with DBC and global
coupling; -modyfied linear system solvers.
- achex,
ac6cmds.m :
Allen-Cahn eq. on hexagon with space dependent
BC (example for gnbcs.m)
- bratu,
bratu_cmds.m :
Bratu's problem on a rectangle
- nlbc,
nlbccmds.m :
Laplace(u)=0 on disk, with nonlinear BC
Systems
- schnakfold,
schnakcmds1.m : Fold continuation in the Schnakenberg problem; example for fuha.spjac in system. Examples of time integration in
schnakcmds2.m .
- schnaktravel,
schnak_cmds.m :
Traveling waves in the Schnakenberg problem;
example for cylinder geometry and fuha.qf and fuha.qjac in a 2-component system.
- gpsol,
gpcmds.m : Time harmonic (vector) Gross-Pitaeevsky in a rotating
frame; scalar, i.e., 2-component real system, and vector
(2 complex components) versions.
An example for space-dependent convection terms, mesh adaption very useful.
- chemtax,
chemcmds.m :
A quasilinear chemotaxis RD system.
- animalchem,
animalcmds.m : chemtax on a fun domain.
- rbconv,
rbconv_cmds.m :
A classical Rayleigh-Benard convection problem
- fCH:
"functionalized" Cahn Hilliard; an example where
adapative mesh adaption is vital, and fsolve is useful.
fchcmds1.m for pearling
bifurcations from a "straight" interface,
fchcmds2.m for pearling from a curved interface,
fchcmds3.m for meandering, and the use of "fsolve".
- nlb,
nlbcmds.m :
Nonlinear Bloch waves. An example for periodic
BC and customization of bifdetc and swibra due to multiplicity of eigenvalues.
- twofluid,
tf_cmds.m :
2D traveling waves in a cylinder, with mixed boundary conditions and
advection.
- vkplate,
vkcmds.m :
the Von Karman equations for the buckling of elastic plates, here written
as a (regularized) 6-component system.
- The following four demos are described in "Symmetries and freezing in pde2path", available
here.
- cGL,
cmds1.m :
a complex Ginzburg-Landau equation with various symmetries (translational and rotational). Basic example how to set up phase conditions.
- fhnfreeze,
cmds1.m : explains phase conditions and 'freezing' to obtain and continue
fronts in a Fitzhugh--Nagumo system.
- modfro,
cmds1.m : Modulated fronts, i.e., Hopf-bifurcation from traveling waves, in model for autocatalysis, a 2 component reaction-diffusion system.
- breathe,
cmds1.m : Standing pulses in another Fitzhugh--Nagumo type system.
Hopf
The first four demos are explained in "Hopf - algorithms ..", available
here,
and also in the associated tutorial; the last two deal, like modfro and
breathe, with Hopf bifurcation with symmetries and hence constraints,
and are explained in the Hopf tutorial
- cGL:
a complex Ginzburg-Landau equation as a simple example with
Hopf bifurcations,
1D cmds1d.m,
2D cmds2d.m,
and 3D cmds3d.m;
additionally
a good starting point for OOPDE.
- rot,
rotcmds_a.m:
Rotating patterns on a disk.
- brussel:
Interaction of Turing and Hopf mode in a Brusselator model, in 1D
bru1dcmds.m,
and 2D bru2dcmds.m.
- pollution,
pollcmds.m:
Hopf bifurcation in a canonical system for optimal pollution control.
(An OC problem, but canonical paths are not yet computed).
- mass-cons,
cmds1d.m:
Hopf bifurcation in a two component reaction diffusion toy model with
cross diffusion and mass conservation.
- kspbc,
cmds1.m:
Hopf bifurcation of standing (and traveling, cmds2.m) waves in the Kuramoto-Sivashinsky
(KS) equation with periodic BC. We thus have two symmetries, i.e., translational and boost invariance. Also an example how to set up 4th
order equations in pde2path.
Optimal Control (OC)
These are also explained in "Infinite time horizon spatially distributed optimal control problems with
pde2path – a user guide", available
here.
- sloc,
a "Shallow Lake" optimal control problem; scalar PDE, 2-component
canonical system;
1D bdcmds.m,
cpdemo.m,
2D bdcmds2D.m,
cpdemo2D.m
- vegoc:
A harvesting optimal control problem, 2-component PDE, 4-component
canonical system;
bd1d.m,
vegcpdemo.m
- lvoc:
A boundary control problem, 2-component PDE of Lottka-Volterra type;
Fishing on shore leads to a 4-component canonical system with
nonlinear BC.
bdcmds.m,
cpcmds.m