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

DynamicGaussianPuff

Extends:

GaussianPlumeGaussianPuff → DynamicGaussianPuff

Direct Subclass:

DynamicGaussianDecayPuff

Allows for atmospheric changes between puff movements

Constructor Summary

Public Constructor
public

constructor(atmosphere: Atmosphere, source: Source, massReleased: number, center: array)

Member Summary

Public Members
public get
public get
public get
public get

path: *

public get
public get

stdY: number: *

Brookhaven sigma The crosswind distance standard deviation for a distance x downwind.

public get

stdZ: number: *

Brookhaven sigma The vertical distance standard deviation for a distance x downwind.

public get

time: number: *

public get

vertDist: number | *: *

public get

virtHoriz: number | *: *

Method Summary

Public Methods
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 get
public get
public get
public

Adds a single source to the plume

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

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

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

The center at x meters downstream after t seconds

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 Members

public get center: Vector: * source

Return:

Vector

public get distanceFromStart: number: * source

Return:

number

public get distanceTraveled: number: * source

Return:

number

public get path: * source

public get start: Vector: * source

Return:

Vector

public get stdY: number: * source

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

Return:

number

crosswind standard deviation at x meters downwind (m)

public get stdZ: number: * source

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

Return:

number

public get time: number: * source

Return:

number

public get vertDist: number | *: * source

Return:

number | *

public get virtHoriz: number | *: * source

Return:

number | *

Public Methods

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