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:
61
+
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`
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
64
+
We need to create a `parcels.ParticleSet` object with the particles' initial time and position. The `parcels.ParticleSet`
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
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).
The output files are in `.zarr`[format](https://zarr.readthedocs.io/en/stable/), which can be read by `xarray`.
115
-
See the [Parcels output tutorial](./tutorial_output.ipynb) for more information on the zarr format. We want to choose
114
+
The output files are in `.zarr`[format](https://zarr.readthedocs.io/en/stable/), which can be read by `xarray`.
115
+
See the [Parcels output tutorial](./tutorial_output.ipynb) for more information on the zarr format. We want to choose
116
116
the `outputdt` argument so that it captures the smallest timescales of our interest.
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`.
121
121
Additionally, we need to specify:
122
122
123
123
- the `runtime`: for how long we want to simulate particles.
124
-
- the `dt`: the timestep with which to perform the numerical integration in the `kernels`. Depending on the numerical
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
-
to learn more about numerical accuracy.
124
+
- the `dt`: the timestep with which to perform the numerical integration in the `kernels`. Depending on the numerical
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
+
to learn more about numerical accuracy.
127
127
128
128
```{note}
129
129
TODO: add Michaels 10-years Parcels notebook to the user guide
0 commit comments