Code Monkey home page Code Monkey logo

cancrusher's Introduction

cancrusher's People

Contributors

hcarter333 avatar

Watchers

 avatar James Cloos avatar

cancrusher's Issues

move_can produces negative radii

After 210 steps some of the can radii are negative and others are on the order of 1e18. This causes find_mutual_inductance to conk out.

Current Explodes Exponentially

Some of the currents calculated by calculate_current blow up exponentially. Here's a sample output

array([ 3.74652503e-05, 1.56855283e+02, -1.56188786e+02,
-7.84928314e+00, -7.84928314e+00, -1.56188786e+02,
1.56855283e+02])
array([ 2.58594657e-03, 1.20628550e+04, -1.46167635e+04,
2.04974350e+03, 2.04974350e+03, -1.46167635e+04,
1.20628550e+04])
array([ 4.63675506e-01, 2.58176042e+06, -3.63077052e+06,
9.47461236e+05, 9.47461236e+05, -3.63077052e+06,
2.58176042e+06])
array([ 2.95760429e+06, 2.40968714e+13, -3.82953652e+13,
1.32516296e+13, 1.32516296e+13, -3.82953652e+13,
2.40968714e+13])
array([ 3.02247784e+27, 2.99921103e+34, -5.20647322e+34,
2.09618219e+34, 2.09618219e+34, -5.20647322e+34,
2.99921103e+34])
array([ 6.04807121e+90, 7.29115901e+97, -1.33921318e+98,
5.84036823e+97, 5.84036823e+97, -1.33921318e+98,
7.29115901e+97])
main:101: RuntimeWarning: overflow encountered in double_scalars
main:126: RuntimeWarning: overflow encountered in square
array([ 8.51065105e+280, 1.17303217e+288, -2.23322018e+288,
1.01943075e+288, 1.01943075e+288, -2.23322018e+288,
1.17303217e+288])
array([ nan, nan, nan, nan, nan, nan, nan])
Traceback (click to the left of this block for traceback)
...
ZeroDivisionError: Symbolic division by zero

Comments after prints

Placing a comment after a simple name-only variable output in a cell will cause the variable output to not happen.

Simulator broken in sagecloud

The simulator hangs up in the sagecloud. There were two changes, unfortunately. I agreed to a sagecloud update yesterday and didn't immediately run the sim. I also modified the array that holds the current for graphing to initialize to zeroes.

Array initialization to zero

All arrays in IDL are initialized to zero. The original code may depend on this. Learn how to initialize arrays in numpy to zero easily.

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.