new ArrowProvider(windDataProvider, optionsopt)
Manages Arrow calculation
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
windDataProvider |
WindDataProvider | The wind data file. | |||||||||||||||||||||||||||||||||||||
options |
Object |
<optional> |
Object with the following properties:
Properties
|
- Source:
Methods
addTimestep()
Appends a timestep to this arrowprovider
- Source:
(private) completeTimeStepWithArrows(time)
Adds all possible arrows for this timestep
Parameters:
Name | Type | Description |
---|---|---|
time |
int | timestep for calculation |
- Source:
getArrows(time) → {list}
Returns a list of arrows on the given timestep
Parameters:
Name | Type | Description |
---|---|---|
time |
int | timestep to return arrows for |
- Source:
Returns:
list of Arrow instances
- Type
- list
(private) getSamplePoints() → {list}
Returns a list of points, that are uniformly distributed for timestepseeding
- Source:
Returns:
list of Point instances
- Type
- list
(private) initArrows()
Initizialize arrows for the first n timesteps
- Source:
(private) PropagateArrowsOneStep(dt, time)
takes all arrows from time-dt and propagates them to time
Parameters:
Name | Type | Description |
---|---|---|
dt |
int | direction of propagation |
time |
int | timestep for calculation |
- Source: