PlanktonIndividuals.jl
This package simulates the behavior of an ensemble of phytoplankton individuals.
Use Examples
1. Simple Flow Fields In Two Dimensions
using PlanktonIndividuals
p = dirname(pathof(PlanktonIndividuals))
#include(joinpath(p,"../examples/vertical_2D_example.jl"))
include(joinpath(p,"../examples/horizontal_2D_example.jl"))
2. Closer Look Into One Grid Box
using PlanktonIndividuals
p = dirname(pathof(PlanktonIndividuals))
include(joinpath(p,"../examples/0D_experiment.jl"))
3. Turbulent Flow Fields In Three Dimensions
Here Oceananigans.jl is used to generate velocity fields and then use those to drive the individual-based model.
using PlanktonIndividuals
p = dirname(pathof(PlanktonIndividuals))
include(joinpath(p,"../examples/surface_mixing_3D_example.jl"))
Unit Testing
The test suite includes zero-, one-, two-, and three-dimensional simulations using input files from samples/
.
using Pkg; Pkg.test("PlanktonIndividuals")
Installation
To add PlanktonIndividuals.jl
to your Julia environment:
using Pkg; Pkg.add("PlanktonIndividuals.jl")
or if you cloned the repository via git
directly:
using Pkg;
p=PackageSpec(path="PlanktonIndividuals.jl")
Pkg.develop()