Skip to content

Commit

Permalink
use Δ to name the laplacian
Browse files Browse the repository at this point in the history
  • Loading branch information
rveltz committed Jun 25, 2023
1 parent a31f2dc commit 848ac29
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions docs/src/tutorials/dde/HutchinsonDiff.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ X = -Lx .+ 2Lx/Nx*(0:Nx-1) |> collect
# boundary condition
Q = Neumann0BC(X[2]-X[1])
Dxx = sparse(CenteredDifference(2, 2, X[2]-X[1], Nx) * Q)[1]
Δ = sparse(CenteredDifference(2, 2, X[2]-X[1], Nx) * Q)[1]
nothing #hide
```

We are now ready to compute the bifurcation of the trivial (constant in space) solution:

```@example TUTHut
# bifurcation problem
pars = (a = 0.5, d = 1, τ = 1.0, Δ = Dxx, N = Nx)
pars = (a = 0.5, d = 1, τ = 1.0, Δ = Δ, N = Nx)
x0 = zeros(Nx)
prob = ConstantDDEBifProblem(Hutchinson, delaysF, x0, pars, (@lens _.a))
Expand Down
4 changes: 2 additions & 2 deletions examples/HutchinsonDiffusion.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ X = -Lx .+ 2Lx/Nx*(0:Nx-1) |> collect

# boundary condition
Q = Neumann0BC(X[2]-X[1])
Dxx = sparse(CenteredDifference(2, 2, X[2]-X[1], Nx) * Q)[1]
Δ = sparse(CenteredDifference(2, 2, X[2]-X[1], Nx) * Q)[1]

pars = (a = 0.5, d = 1, τ = 1.0, Δ = Dxx, N = Nx)
pars = (a = 0.5, d = 1, τ = 1.0, Δ = Δ, N = Nx)
x0 = zeros(Nx)

prob = ConstantDDEBifProblem(Hutchinson, delaysF, x0, pars, (@lens _.a))
Expand Down
4 changes: 2 additions & 2 deletions examples/TravisWebb.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ X = -Lx .+ 2Lx/Nx*(0:Nx-1) |> collect

# boundary condition
Q = Dirichlet0BC(X[2]-X[1]|>typeof)
Dxx = sparse(CenteredDifference(2, 2, X[2]-X[1], Nx) * Q)[1]
Δ = sparse(CenteredDifference(2, 2, X[2]-X[1], Nx) * Q)[1]

pars = (a = 0.5, τ = 1.0, Δ = Dxx, N = Nx)
pars = (a = 0.5, τ = 1.0, Δ = Δ, N = Nx)
x0 = zeros(Nx)

prob = ConstantDDEBifProblem(TW, delaysF, x0, pars, (@lens _.a))
Expand Down
2 changes: 1 addition & 1 deletion examples/humpries.jl
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ probpo = PeriodicOrbitOCollProblem(200, 2; N = 1)
end
)

plot(br, br_pocoll)
plot(br);plot!(br_pocoll, plotfold=false, ylabel = "amplitude")
################################################################################
using DifferentialEquations

Expand Down

0 comments on commit 848ac29

Please sign in to comment.