dirtybomb
Version:
A dirty bomb model
1,588 lines • 1.75 MB
JSON
{
"type": "Program",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "Literal",
"value": "use strict",
"raw": "\"use strict\"",
"range": [
102,
114
],
"loc": {
"start": {
"line": 8,
"column": 0
},
"end": {
"line": 8,
"column": 12
}
}
},
"range": [
102,
115
],
"loc": {
"start": {
"line": 8,
"column": 0
},
"end": {
"line": 8,
"column": 13
}
},
"leadingComments": [
{
"type": "Block",
"value": "*\n * Created by austin on 6/6/16.\n * @file GaussianPlume.js\n * Assumes:\n * Single point source\n ",
"range": [
0,
100
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 6,
"column": 3
}
}
}
]
},
{
"type": "ImportDeclaration",
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"local": {
"type": "Identifier",
"name": "Source",
"range": [
124,
130
],
"loc": {
"start": {
"line": 10,
"column": 7
},
"end": {
"line": 10,
"column": 13
}
}
},
"range": [
124,
130
],
"loc": {
"start": {
"line": 10,
"column": 7
},
"end": {
"line": 10,
"column": 13
}
}
},
{
"type": "ImportSpecifier",
"local": {
"type": "Identifier",
"name": "SourceType",
"range": [
138,
148
],
"loc": {
"start": {
"line": 11,
"column": 4
},
"end": {
"line": 11,
"column": 14
}
}
},
"imported": {
"type": "Identifier",
"name": "SourceType",
"range": [
138,
148
],
"loc": {
"start": {
"line": 11,
"column": 4
},
"end": {
"line": 11,
"column": 14
}
}
},
"range": [
138,
148
],
"loc": {
"start": {
"line": 11,
"column": 4
},
"end": {
"line": 11,
"column": 14
}
}
}
],
"source": {
"type": "Literal",
"value": "./Source",
"raw": "'./Source'",
"range": [
156,
166
],
"loc": {
"start": {
"line": 12,
"column": 7
},
"end": {
"line": 12,
"column": 17
}
}
},
"range": [
117,
167
],
"loc": {
"start": {
"line": 10,
"column": 0
},
"end": {
"line": 12,
"column": 18
}
}
},
{
"type": "ImportDeclaration",
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"local": {
"type": "Identifier",
"name": "Atmosphere",
"range": [
175,
185
],
"loc": {
"start": {
"line": 13,
"column": 7
},
"end": {
"line": 13,
"column": 17
}
}
},
"range": [
175,
185
],
"loc": {
"start": {
"line": 13,
"column": 7
},
"end": {
"line": 13,
"column": 17
}
}
}
],
"source": {
"type": "Literal",
"value": "./Atmosphere",
"raw": "'./Atmosphere'",
"range": [
191,
205
],
"loc": {
"start": {
"line": 13,
"column": 23
},
"end": {
"line": 13,
"column": 37
}
}
},
"range": [
168,
206
],
"loc": {
"start": {
"line": 13,
"column": 0
},
"end": {
"line": 13,
"column": 38
}
},
"trailingComments": [
{
"type": "Block",
"value": "*\n * @typedef {Object} Stat\n * @property {number} x - meters downwind\n * @property {number} y - meters crosswind\n * @property {number} z - meters vertical\n * @property {number} stdY\n * @property {number} stdZ\n * @property {number} concentration - micrograms / cubic meter\n ",
"range": [
208,
485
],
"loc": {
"start": {
"line": 15,
"column": 0
},
"end": {
"line": 23,
"column": 3
}
}
},
{
"type": "Block",
"value": "*\n * @typedef {Object} Coord\n * @property {number} x - meters downwind \n * @property {number} y - meters crosswind \n * @property {number} z - meters vertical \n ",
"range": [
487,
651
],
"loc": {
"start": {
"line": 25,
"column": 0
},
"end": {
"line": 30,
"column": 3
}
}
},
{
"type": "Block",
"value": "*\n * @typedef {Object} STD_Y_COEFF\n * @property {number} c\n * @property {number} d\n ",
"range": [
653,
741
],
"loc": {
"start": {
"line": 32,
"column": 0
},
"end": {
"line": 36,
"column": 3
}
}
},
{
"type": "Block",
"value": "*\n * 0 - 6 for atm stab grade\n * [x < 10000, x >= 10000]\n * @type {STD_Y_COEFF}\n ",
"range": [
742,
828
],
"loc": {
"start": {
"line": 37,
"column": 0
},
"end": {
"line": 41,
"column": 3
}
}
}
]
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "STD_Y_COEFFS",
"range": [
835,
847
],
"loc": {
"start": {
"line": 42,
"column": 6
},
"end": {
"line": 42,
"column": 18
}
}
},
"init": {
"type": "ArrayExpression",
"elements": [
{
"type": "ArrayExpression",
"elements": [
{
"type": "ObjectExpression",
"properties": [
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "c",
"range": [
858,
859
],
"loc": {
"start": {
"line": 43,
"column": 6
},
"end": {
"line": 43,
"column": 7
}
}
},
"value": {
"type": "Literal",
"value": 0.495,
"raw": ".495",
"range": [
861,
865
],
"loc": {
"start": {
"line": 43,
"column": 9
},
"end": {
"line": 43,
"column": 13
}
}
},
"kind": "init",
"method": false,
"shorthand": false,
"computed": false,
"range": [
858,
865
],
"loc": {
"start": {
"line": 43,
"column": 6
},
"end": {
"line": 43,
"column": 13
}
}
},
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "d",
"range": [
867,
868
],
"loc": {
"start": {
"line": 43,
"column": 15
},
"end": {
"line": 43,
"column": 16
}
}
},
"value": {
"type": "Literal",
"value": 0.873,
"raw": ".873",
"range": [
870,
874
],
"loc": {
"start": {
"line": 43,
"column": 18
},
"end": {
"line": 43,
"column": 22
}
}
},
"kind": "init",
"method": false,
"shorthand": false,
"computed": false,
"range": [
867,
874
],
"loc": {
"start": {
"line": 43,
"column": 15
},
"end": {
"line": 43,
"column": 22
}
}
}
],
"range": [
857,
875
],
"loc": {
"start": {
"line": 43,
"column": 5
},
"end": {
"line": 43,
"column": 23
}
}
},
{
"type": "ObjectExpression",
"properties": [
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "c",
"range": [
878,
879
],
"loc": {
"start": {
"line": 43,
"column": 26
},
"end": {
"line": 43,
"column": 27
}
}
},
"value": {
"type": "Literal",
"value": 0.606,
"raw": ".606",
"range": [
881,
885
],
"loc": {
"start": {
"line": 43,
"column": 29
},
"end": {
"line": 43,
"column": 33
}
}
},
"kind": "init",
"method": false,
"shorthand": false,
"computed": false,
"range": [
878,
885
],
"loc": {
"start": {
"line": 43,
"column": 26
},
"end": {
"line": 43,
"column": 33
}
}
},
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "d",
"range": [
887,
888
],
"loc": {
"start": {
"line": 43,
"column": 35
},
"end": {
"line": 43,
"column": 36
}
}
},
"value": {
"type": "Literal",
"value": 0.851,
"raw": ".851",
"range": [
890,
894
],
"loc": {
"start": {
"line": 43,
"column": 38
},
"end": {
"line": 43,
"column": 42
}
}
},
"kind": "init",
"method": false,
"shorthand": false,
"computed": false,
"range": [
887,
894
],
"loc": {
"start": {
"line": 43,
"column": 35
},
"end": {
"line": 43,
"column": 42
}
}
}
],
"range": [
877,
895
],
"loc": {
"start": {
"line": 43,
"column": 25
},
"end": {
"line": 43,
"column": 43
}
}
}
],
"range": [
856,
896
],
"loc": {
"start": {
"line": 43,
"column": 4
},
"end": {
"line": 43,
"column": 44
}
}
},
{
"type": "ArrayExpression",
"elements": [
{
"type": "ObjectExpression",
"properties": [
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "c",
"range": [
904,
905
],
"loc": {
"start": {
"line": 44,
"column": 6
},
"end": {
"line": 44,
"column": 7
}
}
},
"value": {
"type": "Literal",
"value": 0.31,
"raw": ".310",
"range": [
907,
911
],
"loc": {
"start": {
"line": 44,
"column": 9
},
"end": {
"line": 44,
"column": 13
}
}
},
"kind": "init",
"method": false,
"shorthand": false,
"computed": false,
"range": [
904,
911
],
"loc": {
"start": {
"line": 44,
"column": 6
},
"end": {
"line": 44,
"column": 13
}
}
},
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "d",
"range": [
913,
914
],
"loc": {
"start": {
"line": 44,
"column": 15
},
"end": {
"line": 44,
"column": 16
}
}
},
"value": {
"type": "Literal",
"value": 0.897,
"raw": ".897",
"range": [
916,
920
],
"loc": {
"start": {
"line": 44,
"column": 18
},
"end": {
"line": 44,
"column": 22
}
}
},
"kind": "init",
"method": false,
"shorthand": false,
"computed": false,
"range": [
913,
920
],
"loc": {
"start": {
"line": 44,
"column": 15
},
"end": {
"line": 44,
"column": 22
}
}
}
],
"range": [
903,
921
],
"loc": {
"start": {
"line": 44,
"column": 5
},
"end": {
"line": 44,
"column": 23
}
}
},
{
"type": "ObjectExpression",
"properties": [
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "c",
"range": [
924,
925
],
"loc": {
"start": {
"line": 44,
"column": 26
},
"end": {
"line": 44,
"column": 27
}
}
},
"value": {
"type": "Literal",
"value": 0.523,
"raw": ".523",
"range": [
927,
931
],
"loc": {
"start": {
"line": 44,
"column": 29
},
"end": {
"line": 44,
"column": 33
}
}
},
"kind": "init",
"method": false,
"shorthand": false,
"computed": false,
"range": [
924,
931
],
"loc": {
"start": {
"line": 44,
"column": 26
},
"end": {
"line": 44,
"column": 33
}
}
},
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "d",
"range": [
933,
934
],
"loc": {
"start": {
"line": 44,
"column": 35
},
"end": {
"line": 44,
"column": 36
}
}
},
"value": {
"type": "Literal",
"value": 0.84,
"raw": ".840",
"range": [
936,
940
],
"loc": {
"start": {
"line": 44,
"column": 38
},
"end": {
"line": 44,
"column": 42
}
}
},
"kind": "init",
"method": false,
"shorthand": false,
"computed": false,
"range": [
933,
940
],
"loc": {
"start": {
"line": 44,
"column": 35
},
"end": {
"line": 44,
"column": 42
}
}
}
],
"range": [
923,
941
],
"loc": {
"start": {
"line": 44,
"column": 25
},
"end": {
"line": 44,
"column": 43
}
}
}
],
"range": [
902,
942
],
"loc": {
"start": {
"line": 44,
"column": 4
},
"end": {
"line": 44,
"column": 44
}
}
},
{
"type": "ArrayExpression",
"elements": [
{
"type": "ObjectExpression",
"properties": [
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "c",
"range": [
950,
951
],
"loc": {
"start": {
"line": 45,
"column": 6
},
"end": {
"line": 45,
"column": 7
}
}
},
"value": {
"type": "Literal",
"value": 0.197,
"raw": ".197",
"range": [
953,
957
],
"loc": {
"start": {
"line": 45,
"column": 9
},
"end": {
"line": 45,
"column": 13
}
}
},
"kind": "init",
"method": false,
"shorthand": false,
"computed": false,
"range": [
950,
957
],
"loc": {
"start": {
"line": 45,
"column": 6
},
"end": {
"line": 45,
"column": 13
}
}
},
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "d",
"range": [
959,
960
],
"loc": {
"start": {
"line": 45,
"column": 15
},
"end": {
"line": 45,
"column": 16
}
}
},
"value": {
"type": "Literal",
"value": 0.908,
"raw": ".908",
"range": [
962,
966
],
"loc": {
"start": {
"line": 45,
"column": 18
},
"end": {
"line": 45,
"column": 22
}
}
},
"kind": "init",
"method": false,
"shorthand": false,
"computed": false,
"range": [
959,
966
],
"loc": {
"start": {
"line": 45,
"column": 15
},
"end": {
"line": 45,
"column": 22
}
}
}
],
"range": [
949,
967
],
"loc": {
"start": {
"line": 45,
"column": 5
},
"end": {
"line": 45,
"column": 23
}
}
},
{
"type": "ObjectExpression",
"properties": [
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "c",
"range": [
970,
971
],
"loc": {
"start": {
"line": 45,
"column": 26
},
"end": {
"line": 45,
"column": 27
}
}
},
"value": {
"type": "Literal",
"value": 0.285,
"raw": ".285",
"range": [
973,
977
],
"loc": {
"start": {
"line": 45,
"column": 29
},
"end": {
"line": 45,
"column": 33
}
}
},
"kind": "init",
"method": false,
"shorthand": false,
"computed": false,
"range": [
970,
977
],
"loc": {
"start": {
"line": 45,
"column": 26
},
"end": {
"line": 45,
"column": 33
}
}
},
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "d",
"range": [
979,
980
],
"loc": {
"start": {
"line": 45,
"column": 35
},
"end": {
"line": 45,
"column": 36
}
}
},
"value": {
"type": "Literal",
"value": 0.867,
"raw": ".867",
"range": [
982,
986
],
"loc": {
"start": {
"line": 45,
"column": 38
},
"end": {
"line": 45,
"column": 42
}
}
},
"kind": "init",
"method": false,
"shorthand": false,
"computed": false,
"range": [
979,
986
],
"loc": {
"start": {
"line": 45,
"column": 35
},
"end": {
"line": 45,
"column": 42
}
}
}
],
"range": [
969,
987
],
"loc": {
"start": {
"line": 45,
"column": 25
},
"end": {
"line": 45,
"column": 43
}
}
}
],
"range": [
948,
988
],
"loc": {
"start": {
"line": 45,
"column": 4
},
"end": {
"line": 45,
"column": 44
}
}
},
{
"type": "ArrayExpression",
"elements": [
{
"type": "ObjectExpression",
"properties": [
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "c",
"range": [
996,
997
],
"loc": {
"start": {
"line": 46,
"column": 6
},
"end": {
"line": 46,
"column": 7
}
}
},
"value": {
"type": "Literal",
"value": 0.122,
"raw": ".122",
"range": [
999,
1003
],
"loc": {
"start": {
"line": 46,
"column": 9
},
"end": {
"line": 46,
"column": 13
}
}
},
"kind": "init",
"method": false,
"shorthand": false,
"computed": false,
"range": [
996,
1003
],
"loc": {
"start": {
"line": 46,
"column": 6
},
"end": {
"line": 46,
"column": 13
}
}
},
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "d",
"range": [
1005,
1006
],
"loc": {
"start": {
"line": 46,
"column": 15
},
"end": {
"line": 46,
"column": 16
}
}
},
"value": {
"type": "Literal",
"value": 0.916,
"raw": ".916",
"range": [
1008,
1012
],
"loc": {
"start": {
"line": 46,
"column": 18
},
"end": {
"line": 46,
"column": 22
}
}
},
"kind": "init",
"method": false,
"shorthand": false,
"computed": false,
"range": [
1005,
1012
],
"loc": {
"start": {
"line": 46,
"column": 15
},
"end": {
"line": 46,
"column": 22
}
}
}
],
"range": [
995,
1013
],
"loc": {
"start": {
"line": 46,
"column": 5
},
"end": {
"line": 46,
"column": 23
}
}
},
{
"type": "ObjectExpression",
"properties": [
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "c",
"range": [
1016,
1017
],
"loc": {
"start": {
"line": 46,
"column": 26
},
"end": {
"line": 46,
"column": 27
}
}
},
"value": {
"type": "Literal",
"value": 0.193,
"raw": ".193",
"range": [
1019,
1023
],
"loc": {
"start": {
"line": 46,
"column": 29
},
"end": {
"line": 46,
"column": 33
}
}
},
"kind": "init",
"method": false,
"shorthand": false,
"computed": false,
"range": [
1016,
1023
],
"loc": {
"start": {
"line": 46,
"column": 26
},
"end": {
"line": 46,
"column": 33
}
}
},
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "d",
"range": [
1025,
1026
],
"loc": {
"start": {
"line": 46,
"column": 35
},
"end": {
"line": 46,
"column": 36
}
}
},
"value": {
"type": "Literal",
"value": 0.865,
"raw": ".865",
"range": [
1028,
1032
],
"loc": {
"start": {
"line": 46,
"column": 38
},
"end": {
"line": 46,
"column": 42
}
}
},
"kind": "init",
"method": false,
"shorthand": false,
"computed": false,
"range": [
1025,
1032
],
"loc": {
"start": {
"line": 46,
"column": 35
},
"end": {
"line": 46,
"column": 42
}
}
}
],
"range": [
1015,
1033
],
"loc": {
"start": {
"line": 46,
"column": 25
},
"end": {
"line": 46,
"column": 43
}
}
}
],
"range": [
994,
1034
],
"loc": {
"start": {
"line": 46,
"column": 4
},
"end": {
"line": 46,
"column": 44
}
}
},
{
"type": "ArrayExpression",
"elements": [
{
"type": "ObjectExpression",
"properties": [
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "c",
"range": [
1042,
1043
],
"loc": {
"start": {
"line": 47,
"column": 6
},
"end": {
"line": 47,
"column": 7
}
}
},
"value": {
"type": "Literal",
"value": 0.122,
"raw": ".122",
"range": [
1045,
1049
],
"loc": {
"start": {
"line": 47,
"column": 9
},
"end": {
"line": 47,
"column": 13
}
}
},
"kind": "init",
"method": false,
"shorthand": false,
"computed": false,
"range": [
1042,
1049
],
"loc": {
"start": {
"line": 47,
"column": 6
},
"end": {
"line": 47,
"column": 13
}
}
},
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "d",
"range": [
1051,
1052
],
"loc":