-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Module-level documentation and "Welcome" page.
- Loading branch information
Showing
5 changed files
with
115 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Quick start | ||
|
||
If it's your first time using EcologicalNetworksDynamics, | ||
exploring this example might be useful to you | ||
so that you understand how the package works. | ||
Try pasting the following code blocks in a Julia REPL. | ||
|
||
The first step is to create the structure of the trophic interactions. | ||
|
||
```@example quickstart | ||
using EcologicalNetworksDynamics, Plots | ||
fw = FoodWeb([1 => 2, 2 => 3]) # 1 eats 2, and 2 eats 3 | ||
``` | ||
|
||
Then, you can generate the parameter of the model (mostly species traits) with: | ||
|
||
```@example quickstart | ||
p = ModelParameters(fw) | ||
``` | ||
|
||
For instance, we can access the species metabolic rate (``x``). | ||
|
||
```@example quickstart | ||
p.biorates.x | ||
``` | ||
|
||
At this step we are ready to run simulations, | ||
we just need to provide initial conditions for species biomasses. | ||
|
||
```@example quickstart | ||
B0 = [1, 1, 1] # the 3 species start with a biomass of 1 | ||
out = simulate(p, B0) | ||
``` | ||
|
||
Lastly, we can plot the biomass trajectories. | ||
|
||
```@example quickstart | ||
plot(out) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters