This code was made for the final project of a computational physics class at UCLA. It was my introduction to computational plasma physics. ...
Python
-
particle in cell from scratch -
RK4 speeds in python, julia, and c++I wanted look more into Julia because it sounded like python but faster and better. So, I compared Julia to Python, and also threw C++ in there (do I regret that? Maybe)
-
code and graphic designI wanted to look into the intersection between graphic design and code. I found a program called Processing, where you can code in Java, C++ or Python. After trying a few simple things, this animation seemed to be pretty cool: There should have been a video here but your browser does not seem to support it. The code for it is below. There are two functions that automatically run, setup() (runs once like __init__) and draw() (continuously runs). So I just continuously increased the radius at which that ellipse is at, as well as it’s angle with a couple sines and cosines to make it dynamic. ...