You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now that we have created a `parcels.FieldSet` object from the hydrodynamic data, we need to provide our second input:
62
62
the virtual particles for which we will calculate the trajectories.
63
63
64
-
We need to create a `parcels.ParticleSet` object with the particles' initial time and position. The `parcels.ParticleSet`
64
+
We need to create a {py:obj}`parcels.ParticleSet` object with the particles' initial time and position. The `parcels.ParticleSet`
65
65
object also needs to know about the `FieldSet` in which the particles "live". Finally, we need to specify the type of
66
-
`parcels.Particle` we want to use. The default particles have `time`, `z`, `lat`, and `lon`, but you can easily add
67
-
other `Variables` such as size, temperature, or age to create your own particles to mimic plastic or an [ARGO float](../user_guide/examples/tutorial_Argofloats.ipynb).
66
+
{py:obj}`parcels.ParticleClass` we want to use. The default particles have `time`, `z`, `lat`, and `lon`, but you can easily add
67
+
other {py:obj}`parcels.Variable`s such as size, temperature, or age to create your own particles to mimic plastic or an [ARGO float](../user_guide/examples/tutorial_Argofloats.ipynb).
After setting up the input data and particle start locations and times, we need to specify what calculations to do with
93
-
the particles. These calculations, or numerical integrations, will be performed by what we call a `Kernel`, operating on
93
+
the particles. These calculations, or numerical integrations, will be performed by what we call a {py:obj}`parcels.Kernel`, operating on
94
94
all particles in the `ParticleSet`. The most common calculation is the advection of particles through the velocity field.
95
-
Parcels comes with a number of standard kernels, from which we will use the Runge-Kutta advection kernel `AdvectionRK2`:
96
-
97
-
```{note}
98
-
TODO: link to a list of included kernels
99
-
```
95
+
Parcels comes with a number of common {py:obj}`parcels.kernels`, from which we will use the Runge-Kutta advection kernel {py:obj}`parcels.kernels.AdvectionRK2`:
@@ -117,18 +113,14 @@ the `outputdt` argument so that it captures the smallest timescales of our inter
117
113
118
114
## Run Simulation: `ParticleSet.execute()`
119
115
120
-
Finally, we can run the simulation by _executing_ the `ParticleSet` using the specified list of `kernels`.
116
+
Finally, we can run the simulation by _executing_ the `ParticleSet` using the specified list of `kernels`. This is done using the {py:meth}`parcels.ParticleSet.execute()` method.
121
117
Additionally, we need to specify:
122
118
123
119
- the `runtime`: for how long we want to simulate particles.
124
120
- the `dt`: the timestep with which to perform the numerical integration in the `kernels`. Depending on the numerical
125
121
integration scheme, the accuracy of our simulation will depend on `dt`. Read [this notebook](https://github.com/Parcels-code/10year-anniversary-session2/blob/8931ef69577dbf00273a5ab4b7cf522667e146c5/advection_and_windage.ipynb)
126
122
to learn more about numerical accuracy.
127
123
128
-
```{note}
129
-
TODO: add Michaels 10-years Parcels notebook to the user guide
0 commit comments