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

Dirtybomb

Extends:

Bomb → Dirtybomb

A simple dirtybomb. Assumes all nuclear material is released into the atmosphere

Constructor Summary

Public Constructor
public

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

Inherited Summary

From class Bomb
public static
public static
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
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

Public Constructors

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

Override:

Bomb#constructor

Params:

NameTypeAttributeDescription
nuclearMat NuclearMaterial
tntEqvMass number

Standardized TNT equivalent (kg)

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

Determines the type of puff that is used