You are browsing as a guest. Sign up (or log in) to start making projects!

1h 54m 20s logged

Dev log #3

I found a bug that made every 2D current in the simulator wrong by a factor of about 245, WAY too big.

The cause, i believe, was one missing conversion. The code turns an internal number into a real current, and in 2D that conversion needs an extra length factor that I never included. In 1D it happened to be right, which is why it went un-noticed.

I fixed it and then wrote a test that compares a 2D current against Ohm’s law, worked out by hand with no solver involved. This test was missing before.

The reassuring part: I measure the turn-on voltage two completely different ways. They used to differ by 180 mV, which I didnt pay much attention to previously. After the fix they agree to about 2 mV. I did not tune anything to make that happen, so I might have to start believing in miracles.

I also fixed two divide-by-zero crashes in the surface mobility code that were blocking a whole test combination.

Also updated the README numbers and the decisions log. The full test suite is still running, and I will push to github once done.

0
78

Comments 0

No comments yet. Be the first!