Giter Club home page Giter Club logo

glasstone's People

Contributors

gofai avatar sakurakhadag avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

glasstone's Issues

r_soviet_overpressure throws error when psi between 1.0-1.5

e.g., s = r_soviet_overpressure(float(20000), 1.0, float(0), False, "kT", "m", "psi")

Error does not appear to be yield or HOB dependent, purely overpressure below a certain threshold.

File "D:\data\SIOP\ottawa.py", line 19, in
s = r_soviet_overpressure(float(20000), 1.2, float(0), False, "kT", "m", "psi")
File "C:\Users\xxxx\AppData\Local\Programs\Python\Python310\lib\site-packages\glasstone-0.0.1-py3.10.egg\glasstone\overpressure.py", line 869, in r_soviet_overpressure
File "C:\Users\xxxx\AppData\Local\Programs\Python\Python310\lib\site-packages\glasstone-0.0.1-py3.10.egg\glasstone\overpressure.py", line 826, in _rsovietmach
File "C:\Users\xxxx\AppData\Local\Programs\Python\Python310\lib\site-packages\glasstone-0.0.1-py3.10.egg\glasstone\overpressure.py", line 771, in _rsoviet_mach_sh7
glasstone.utilities.ValueOutsideGraphError: -1.0738201869691235

Bug in dpt function in overpressure.py

Hi. I recentely found your code while looking for info on nuclear blast effects and I believe there is a bug in _dpt. The function uses the variable t at line 555 in the overpressure.py source but it is never defined (that I can see) before it is used. I presume its missing from the function argument list. ie the function definition should be ,
def _dpt(shob, sgr, x_m, ta_air, dp_q, pair, b, t):
The function reference in _dynamicpressureatscaledtime should also be corrected.

BTW if you are looking for a report that has a (mostly) legible copy of the DNA 1KT standard Fortran source, look for University of Toronto IAS Report UTIAS Technical Note. 259, April 1986 Title : "Quick Reproduction of Blast-wave Flow-Field Properties of Nuclear, TNT and ANFO Explosions" by Clinton P.T. Groth. I found a PDF vi Google Search

Future roadmap

Hi, was just curious at all if you were intending on continuing this project at all. Accuracy of models aside, there were a few code things that I'm happy to work on in another merge request if you aren't think of deprecating any of the work here.

Python 3 Compatibility

First up, nice package, I'm quite interested in the science behind this and it's great to see it implemented in Python!

I've just tested all of the examples in a Python 3, and a couple of them fail due to the calls to xrange and keys.sort(), which are now deprecated in the language. It's a pretty simple fix however, and doesn't break backwards compatibility to Python 2.7 or have any performance consequences. I can make a pull request if you wish, but the changes are straighforward (all are in radiation.py I believe).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.