File:Fallout 30days 1mt burst 15mph mortality.svg

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Original file(SVG file, nominally 855 × 776 pixels, file size: 65 KB)

Captions

Captions

Add a one-line explanation of what this file represents

Summary

[edit]
Description
English: Fallout lethality contours for 1 MT burst, 100% fission. Wind speed 6.7 m/s.
Date
Source Own work
 
This W3C-unspecified plot was created with Matplotlib.
Author Merikanto

This image is generated with python, matplotlib, and python-glasstone package.

GLASSTONE

https://github.com/GOFAI/glasstone

Original sources of glasstone Python model are

Samuel Glasstone and Phillip J. Dolan, eds. The Effects of Nuclear Weapons, 3rd Ed. Washington, D.C.: GPO, 1977.

Ministerstvo oborony SSSR, Iadernoe oruzhie: Posobie dlia ofitserov, 4-oe izd. Moscow: Voenizdat, 1987.

    1. nuclear weapon fallout v 0006
    2. using python glasstone library 2017

import matplotlib.pyplot as plt from matplotlib import cm, colors, colorbar import matplotlib.lines as mlines import matplotlib.patches as mpatches import numpy as np from scipy.stats import lognorm from glasstone.fallout import WSEG10

    1. 1 dose , 2 mortality , 2 dose 1, 2, ...

tyyppi=2

  1. mitta=1100.0

mitta=360.0


    1. grid resolution

mdx=4

  1. yield in megatons

yld = 1

    1. wind speed m/s

ms=6.7

  1. fission fraction

ff = 1.0

  1. wind direction (in degrees with wind from north = 0)

wind_direction = 270

  1. wind shear (change in mph per kilofoot change in altitude)

wind_shear = 0.25


if tyyppi==1: paletti=['b','g','y','y', '#ff9900', '#ff9900','r','r'] kontours=[0.0005,0.05,0.1,0.3,1.5,3,5,10] laabeli1="Sv"

if tyyppi==2: paletti=('g', '#ff9900','r','#7F0000') kontours=[0.00000001,0.05, 0.5,1.0] laabeli1="%"

if tyyppi==3: kontours=[0.25,0.5,1,2,4,8,16] paletti=['g','g','g','y','y','r','r','r'] laabeli1="Sv"


kaptitail=" MT burst "+ str(round(ff*100))+ "% fission"

if tyyppi==1: kaptibase="WSEG-10 30-day total dose contours for "

if tyyppi==2: kaptibase="WSEG-10 30-day total death rate contours for "

if tyyppi==3: kaptibase="WSEG-10 30-day total dose contours for "


kaptioni=kaptibase+str(yld)+ kaptitail


wind_speed=ms/0.44704

maili=1.609

  1. ground zero x & y locations (st. mi)

gzx = 20 gzy=(mitta/2) ymax = (mitta*maili)+10

    1. wind speed (mph)

shear_si=round((wind_shear*0.44707*3.2808),3)

leka=[] pitu=len(kontours) for n in range(0, pitu): print n, kontours[n], paletti[n] meme=mlines.Line2D([], [], color=paletti[n], linewidth=5, marker='*',markersize=1, label=str(kontours[n])) leka.append(meme)

  1. print "Koebreak"
  2. exit(1)


print "TYP ", tyyppi print "Wait ..."

x = np.arange(-1, mitta, mdx) y = np.arange(-1, mitta, mdx) X, Y = np.meshgrid(x, y)

  1. use WSEG10's native units

w = WSEG10(gzx, gzy, yld, ff, wind_speed, wind_direction, wind_shear, dunits='mi', wunits='mph', yunits='MT', shearunits='mph/kilofoot') dose = np.vectorize(w.dose)

def fatality_fraction(x, y):

   erd = w.dose(x, y, dunits='mi', doseunits='Sv')
   if erd > 20.0:
       return 1.01
   else:
       return lognorm.cdf(erd, 0.42, scale=4.5)
   

deaths = np.vectorize(fatality_fraction)

if tyyppi==1: Z = dose(X, Y, dunits='mi', doseunits='Sv')

if tyyppi==2: Z = deaths(X, Y)

if tyyppi==3: Z = dose(X, Y, dunits='mi', doseunits='Sv')


fig = plt.figure() ax1 = fig.add_axes([0.1, 0.1, 0.9, 0.9])

x = np.arange(-1, mitta, mdx) y = np.arange(-1, mitta, mdx)

for n in range(1,len(x)): x[n]=x[n]*maili y[n]=y[n]*maili

X, Y = np.meshgrid(x, y)

CS = ax1.contour(X, Y, Z, kontours, colors=paletti, linewidths=2.5)

ax1.grid(True)

ax1.text(15, 80, kaptioni, size=14)

outs1=" Wind "+str(ms)+ " m/s shear "+str(shear_si)+" m/s per km"

ax1.text(15, 20, outs1, size=14)

ax1.set_ylim([-0.5, ymax]) ax1.set_ylabel("km") ax1.set_xlabel("km") ax1.xaxis.label.set_size(14) ax1.yaxis.label.set_size(14)

ax1.legend(handles=leka) plt.show()


Licensing

[edit]
I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current08:45, 16 October 2017Thumbnail for version as of 08:45, 16 October 2017855 × 776 (65 KB)Merikanto (talk | contribs)More resolution, code change
06:23, 16 October 2017Thumbnail for version as of 06:23, 16 October 2017720 × 758 (69 KB)Merikanto (talk | contribs)User created page with UploadWizard

There are no pages that use this file.

File usage on other wikis

The following other wikis use this file:

Metadata