-
Notifications
You must be signed in to change notification settings - Fork 0
DataLoader
Interface used to provide windfield and other data for a simulation run.
__init__() -> DataLoader
Constructor for inheritance.
step() -> bool
This function should update the internal structure of your class for the next windfield-timestep. Return True
if successful, False
otherwise.
windfield() -> bool
Should return a list of either two or three (depending on space) windfields in order (x, y, [z]) for the current windfield-timestep.
additionalVolumes() -> dict[str: numpy.ndarray(dtype=float)]
Should return a dictionary mapping the variable identifiers to volumes. It is expected that the identifiers stay constant during the entire simulation run.
constants() -> dict[str: numpy.ndarray(dtype=float)]
Should return a dictionary mapping the variable identifiers to compute constants for each particle. It is expected that the identifiers stay constant during the entire simulation run.
uplift() -> numpy.ndarray(dtype=float)
When using a different UpLiftMode than Off, this has to provide an array with the number of particles in your simulation fitting the space dimension.
- Space
- Integrator
- BorderMode
- CurvatureMode
- AbortReason
- AbortMode
- UpLiftMode
- WindfieldMode
- ConstantsMode
- AdditionalVolumeMode
- pgt.py : pygranite toolkit
- 2D : Visualization
- 3D : Visualization
- 3D : Reverse Computation
- 3D : Topography Test
- 3D : Total Curvature
- 3D : Individual Curvature
- 3D : Length
- 3D : Lift
- 3D : GPU Custom Computations