Home Reference Source Test Repository
import DynamicGaussianPuff from 'dirtybomb/src/Dispersion/DynamicGaussianPuff.js'
public class | source

DynamicGaussianPuff

Extends:

GaussianPlumeGaussianPuff → DynamicGaussianPuff

Direct Subclass:

src/Dispersion/DynamicGaussianDecayPuff.js~DynamicGaussianDecayPuff

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
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
public
public

Moves the puff along by t seconds

Protected Methods
protected

A helper function for the StdZ calculation

Inherited Summary

From class GaussianPlume
public

Adds a single source to the plume

public
public

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

The max rise of the plume at x meters downwind

public
public

getSource(): Source | *

public

getStatsForCoords(coords: Coord[]): Stat[]

Same as getStatsForXs, but for 3d coordinates

public

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
public

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

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#constructor

Params:

NameTypeAttributeDescription
atmosphere Atmosphere
source Source
massReleased number
center array
  • optional

Manually set the center, defaults to (0,0,0)

Public Methods

public getCenter(): Vector source

Return:

Vector

public getConcentration(x: number, y: number, z: number): number source

Override:

GaussianPuff#getConcentration

Params:

NameTypeAttributeDescription
x number

downwind (m)

y number

crosswind (m)

z number

height (m)

Return:

number

See:

public getDistanceFromStart(): number source

Return:

number

public getDistanceTraveled(): number source

Return:

number

public getStart(): Vector source

Return:

Vector

public getStdY(): number source

Brookhaven sigma The crosswind distance standard deviation for a distance x downwind. To be used in a Gaussian distribution

Override:

GaussianPlume#getStdY

Return:

number

crosswind standard deviation at x meters downwind (m)

public getStdZ(): number source

Brookhaven sigma The vertical distance standard deviation for a distance x downwind. To be used in a Gaussian distribution

Override:

GaussianPlume#getStdZ

Return:

number

public getTime(): number source

Return:

number

public getVertDist(): number | * source

Return:

number | *

public getVirtHoriz(): number | * source

Return:

number | *

public step(deltaT: number): DynamicGaussianPuff source

Moves the puff along by t seconds

Params:

NameTypeAttributeDescription
deltaT number

seconds to increment by

See:

Protected Methods

protected _getStdYCoeffs(): STD_Y_COEFF source

A helper function for the StdZ calculation

Override:

GaussianPlume#_getStdYCoeffs

Return:

STD_Y_COEFF