import DynamicGaussianPuff from 'dirtybomb/src/Dispersion/DynamicGaussianPuff.js'
DynamicGaussianPuff
Extends:
Direct Subclass:
Allows for atmospheric changes between puff movements
Constructor Summary
Public Constructor | ||
public |
constructor(atmosphere: Atmosphere, source: Source, massReleased: number, center: array) |
Method Summary
Public Methods | ||
public |
|
|
public |
getConcentration(x: number, y: number, z: number): number |
|
public |
|
|
public |
|
|
public |
|
|
public |
Brookhaven sigma The crosswind distance standard deviation for a distance x downwind. |
|
public |
Brookhaven sigma The vertical distance standard deviation for a distance x downwind. |
|
public |
|
|
public |
getVertDist(): number | * |
|
public |
getVirtHoriz(): number | * |
|
public |
step(deltaT: number): DynamicGaussianPuff Moves the puff along by t seconds |
Protected Methods | ||
protected |
A helper function for the StdZ calculation |
Inherited Summary
From class GaussianPlume | ||
public |
addSource(source: Source): GaussianPlume Adds a single source to the plume |
|
public |
getAtmosphere(): Atmosphere | *: Atmosphere |
|
public |
getConcentration(x: number, y: number, z: number): number Calculates the concentration at a given x,y,z coordinate. |
|
public |
Takes into account the wind and other factors into account. |
|
public |
Calculates the maximum concentration dispersed |
|
public |
Calculates the distance downwind of the maximum concentration |
|
public |
getMaxRise(x: number): number The max rise of the plume at x meters downwind |
|
public |
getMeanHeight(x: *): number |
|
public |
|
|
public |
getStatsForCoords(coords: Coord[]): Stat[] Same as getStatsForXs, but for 3d coordinates |
|
public |
getStatsForXs(xs: number[]): Stat[] Calculates the stdY, stdZ, and concentrations for a list of x coordinates directly downwind of the _source Useful in creating graphs / processing large amounts of data at once |
|
public |
Brookhaven sigma The crosswind distance standard deviation for a distance x downwind. |
|
public |
Brookhaven sigma The vertical distance standard deviation for a distance x downwind. |
|
public |
|
|
public |
setAtmosphere(atmosphere: Atmosphere): GaussianPlume: Atmosphere |
|
public |
setEffectiveSourceHeight(height: number): GaussianPlume Manually set the Effective Source Height |
|
public |
|
|
protected |
A helper function for the StdZ calculation |
|
protected |
A helper function for the StdZ calculation |
From class GaussianPuff | ||
public |
getCenterX(t: number): number The center at x meters downstream after t seconds |
|
public |
|
|
public |
|
Public Constructors
public constructor(atmosphere: Atmosphere, source: Source, massReleased: number, center: array) source
Override:
GaussianPuff#constructorParams:
Name | Type | Attribute | Description |
atmosphere | Atmosphere | ||
source | Source | ||
massReleased | number | ||
center | array |
|
Manually set the center, defaults to (0,0,0) |
Public Methods
public getConcentration(x: number, y: number, z: number): number source
Override:
GaussianPuff#getConcentrationpublic getStdY(): number source
Brookhaven sigma The crosswind distance standard deviation for a distance x downwind. To be used in a Gaussian distribution
Override:
GaussianPlume#getStdYpublic getStdZ(): number source
Brookhaven sigma The vertical distance standard deviation for a distance x downwind. To be used in a Gaussian distribution
Override:
GaussianPlume#getStdZpublic step(deltaT: number): DynamicGaussianPuff source
Moves the puff along by t seconds
Params:
Name | Type | Attribute | Description |
deltaT | number | seconds to increment by |
Protected Methods
protected _getStdYCoeffs(): STD_Y_COEFF source
A helper function for the StdZ calculation