Compare commits
No commits in common. "8271b23e52831467404707179dd33e89ec9a08ae" and "e4cd16564c4377ab90c9e688066ca4c91cd26fff" have entirely different histories.
8271b23e52
...
e4cd16564c
|
|
@ -16,7 +16,7 @@ using .Laplacian
|
|||
# Arguments:
|
||||
`U`: activator matrix
|
||||
`V`: inhibitor matrix
|
||||
`param_obs`: used parameters from CombinedPDEParams
|
||||
`param_obs`: used parameters from FHNParams
|
||||
`dx`: dx
|
||||
`dt`: dt
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ using .Laplacian
|
|||
# Arguments:
|
||||
`U`: activator matrix
|
||||
`V`: inhibitor matrix
|
||||
`param_obs`: used parameters from CombinedPDEParams
|
||||
`param_obs`: used parameters from FHNParams
|
||||
`dx`: dx
|
||||
"""
|
||||
function step_gray_scott!(U, V, params_obs::Observable; dx=1)
|
||||
|
|
|
|||
|
|
@ -2,6 +2,25 @@
|
|||
|
||||
abstract type PDEParams end
|
||||
|
||||
struct FHNParams <: PDEParams
|
||||
N::Int
|
||||
dx::Float64 # grid spacing
|
||||
Du::Float64
|
||||
Dv::Float64
|
||||
ϵ::Float64
|
||||
a::Float64
|
||||
b::Float64
|
||||
end
|
||||
|
||||
struct GSParams <: PDEParams
|
||||
N::Int # grid size
|
||||
dx::Float64 # grid spacing
|
||||
Du::Float64 # diffusion rate U
|
||||
Dv::Float64 # diffusion rate V
|
||||
F::Float64 # feed rate
|
||||
k::Float64 # kill rate
|
||||
|
||||
end
|
||||
|
||||
struct CombinedPDEParams <: PDEParams
|
||||
N::Int
|
||||
|
|
|
|||
Loading…
Reference in New Issue