function bickley_jet¶
- deeptime.data.bickley_jet(n_particles: int, n_jobs: Optional[int] = None, seed: Optional[int] = None) BickleyJetDataset ¶
Simulates the Bickley jet for a number of particles. The implementation is based on [1] with parameters
in a domain . The resulting dataset describes the temporal evolution of
n_particles
over 401 timesteps in . The domain is periodic in x-direction. The dataset offers methods to wrap the domain into three-dimensional space onto the surface of a cylinderwith the option to further discretize the three-dimensional dataspace via binning. This way the discontinuity introduced by 2D periodicity is treated.
(Source code, png, hires.png, pdf)
- Parameters:
n_particles (int) – Number of particles which are propagated.
n_jobs (int or None, default=None) – Number of threads to use for simulation.
seed (int or None, optional, default=None) – Random seed used for initialization of particle positions at .
- Returns:
dataset – Dataset over all the generated frames.
- Return type:
BickleyJetDataset
See also
BickleyJet
Underlying trajectory generator.
Examples
>>> import deeptime >>> dataset = deeptime.data.bickley_jet(n_particles=5, n_jobs=1) >>> # shape is 401 frames for 5 particles in two dimensions >>> print(dataset.data.shape) (401, 5, 2)
>>> # returns a timelagged dataset for first and last frame >>> endpoints = dataset.endpoints_dataset() >>> endpoints.data.shape (5, 2)
>>> # maps the endpoints dataset onto a cylinder of radius 5 >>> endpoints_3d = endpoints.to_3d(radius=5.) >>> endpoints_3d.data.shape (5, 3)
>>> # bins the data uniformly with 10 bins per axis >>> endpoints_3d_clustered = endpoints_3d.cluster(n_bins=10) >>> # 5 particles and 10*10*10 bins >>> endpoints_3d_clustered.data.shape (5, 1000)
References