Compare commits
2 Commits
e4cd16564c
...
8271b23e52
| Author | SHA1 | Date |
|---|---|---|
|
|
8271b23e52 | |
|
|
ecaaef4623 |
|
|
@ -16,7 +16,7 @@ using .Laplacian
|
||||||
# Arguments:
|
# Arguments:
|
||||||
`U`: activator matrix
|
`U`: activator matrix
|
||||||
`V`: inhibitor matrix
|
`V`: inhibitor matrix
|
||||||
`param_obs`: used parameters from FHNParams
|
`param_obs`: used parameters from CombinedPDEParams
|
||||||
`dx`: dx
|
`dx`: dx
|
||||||
`dt`: dt
|
`dt`: dt
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ using .Laplacian
|
||||||
# Arguments:
|
# Arguments:
|
||||||
`U`: activator matrix
|
`U`: activator matrix
|
||||||
`V`: inhibitor matrix
|
`V`: inhibitor matrix
|
||||||
`param_obs`: used parameters from FHNParams
|
`param_obs`: used parameters from CombinedPDEParams
|
||||||
`dx`: dx
|
`dx`: dx
|
||||||
"""
|
"""
|
||||||
function step_gray_scott!(U, V, params_obs::Observable; dx=1)
|
function step_gray_scott!(U, V, params_obs::Observable; dx=1)
|
||||||
|
|
|
||||||
|
|
@ -2,25 +2,6 @@
|
||||||
|
|
||||||
abstract type PDEParams end
|
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
|
struct CombinedPDEParams <: PDEParams
|
||||||
N::Int
|
N::Int
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue