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

Bomb

Direct Subclass:

Dirtybomb

A simple bomb

Static Method Summary

Static Public Methods
public static
public static

Constructor Summary

Public Constructor
public

constructor(tntEqvMass: number, atmosphere: Atmosphere, isStatic: boolean)

Member Summary

Public Members
public get
public get

Based on kilotons of tnt nuclear explosions

public get

From eq 7 of CISAC Fallout Model Approximating this as the top of the stem cloud Perhaps will change this as a combination of all three cloud alt equations

public get
public get
public get

mass: number: *

public get
public get

Method Summary

Public Methods
public

Temperature of gas in shock wave front

public

Velocity of gas in behind shock wave front

public
public

Positive Shock Phase Duration

public

setAtmosphere(atm: *): Bomb

public

setMass(mass: *): Bomb

Static Public Methods

public static tntEquivalent(qExp: number, mass: number): number source

Params:

NameTypeAttributeDescription
qExp number

explosive energy (MJ/kg)

mass number

(kg)

Return:

number

public static tntEquivalentFactor(qExp: number): number source

Params:

NameTypeAttributeDescription
qExp number

explosive energy (MJ/kg)

Return:

number

Public Constructors

public constructor(tntEqvMass: number, atmosphere: Atmosphere, isStatic: boolean) source

Params:

NameTypeAttributeDescription
tntEqvMass number

Standardized TNT equivalent kg (kg)

atmosphere Atmosphere
  • optional
  • default: Bomb.STANDARD_ATM
isStatic boolean
  • optional
  • default: true

Determines the type of puff that is used

Public Members

public get atmosphere: Atmosphere: * source

Return:

Atmosphere

public get blastRadius: number: * source

Based on kilotons of tnt nuclear explosions

Return:

number

(m)

public get cloudHeight: number: * source

From eq 7 of CISAC Fallout Model Approximating this as the top of the stem cloud Perhaps will change this as a combination of all three cloud alt equations

Return:

number

See:

public get cloudRadius: number: * source

Return:

number

(m)

public get dispersion: DynamicGaussianPuff | GaussianPuff: * source

Return:

DynamicGaussianPuff | GaussianPuff

Depending on if the dispersion is static

public get mass: number: * source

Return:

number

public get source: Source: * source

Return:

Source

public get weaponYield: number: * source

Return:

number

Public Methods

public getGasTemp(r: number): number source

Temperature of gas in shock wave front

Params:

NameTypeAttributeDescription
r number

distance from origin (m)

Return:

number

temperature (K)

See:

public getGasVelocity(r: number): number source

Velocity of gas in behind shock wave front

Params:

NameTypeAttributeDescription
r number

distance from origin (m)

Return:

number

velocity (m/s)

See:

public getOverpressureAt(r: number): number source

Params:

NameTypeAttributeDescription
r number

distance from origin (m)

Return:

number

pressure (atm)

See:

public getPosShockPhaseDuration(r: number): number source

Positive Shock Phase Duration

Params:

NameTypeAttributeDescription
r number

distance from origin (m)

Return:

number

duration (s)

See:

public setAtmosphere(atm: *): Bomb source

Params:

NameTypeAttributeDescription
atm *

Return:

Bomb

public setMass(mass: *): Bomb source

Params:

NameTypeAttributeDescription
mass *

Return:

Bomb