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).
@@ -117,18 +117,14 @@ the `outputdt` argument so that it captures the smallest timescales of our inter
117
117
118
118
## Run Simulation: `ParticleSet.execute()`
119
119
120
-
Finally, we can run the simulation by _executing_ the `ParticleSet` using the specified list of `kernels`.
120
+
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
121
Additionally, we need to specify:
122
122
123
123
- the `runtime`: for how long we want to simulate particles.
124
124
- the `dt`: the timestep with which to perform the numerical integration in the `kernels`. Depending on the numerical
125
125
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
126
to learn more about numerical accuracy.
127
127
128
-
```{note}
129
-
TODO: add Michaels 10-years Parcels notebook to the user guide
0 commit comments