1/24/2024 0 Comments Fieldlines![]() One could easily see why it should be zero in the center of the sphere by using symmetry, it requires a little bit more to see why it goes the same in some other points, by noticing that while the field drops with, the surface enclosed by opposing cones is. It’s easy to see that what I said about the gravitational field in the previous post applies to the electric field, too, by the same symmetry considerations: for a thin shell of charge with charge density distributed spherically symmetric, the field outside is as if all the charge is in the center of the sphere, while inside the field is zero. It says that the electric charges are the sources and sinks for the electric field, the electric flux through a closed surface is proportional with the charge inside. is the charge density and is obviously the electric field vector. Where Q is the total charge in the volume V, S is the surface around the volume V. We end up with Gauss law:īy applying Gauss theorem it can be written in integral form: This is electrostatics, so we can drop anything that has a time derivative in there, electric current and obviously, magnetic field. They are also on the header picture of this blog, on the right. A quick look at Maxwell equations shouldn’t hurt, either. The Physicsįor such a simple application, one could start with Coulomb’s law and a simple definition for the potential. This project was also an opportunity for some tests on the methods I implemented. Otherwise the implemented numerical methods (except Euler and perhaps midpoint) are overkill. I implemented Runge-Kutta instead – it includes Euler as a particular case, though – to present more numerical methods and to have something for later, hopefully I’ll reuse the code. The program presented is one of the few cases where the Euler method would be ok, it does not need much precision since it’s only for visualization purposes. Also there is some more multithreading involved. The numerical methods might be a little more difficult, though. The program is simpler because there is no OpenGL. Here is a video of the program in action: Something still simple for now, a program to visualize the electric field in 2D. So here it is, something linked to Maxwell and with his equations. The first post on this blog dealt with Newtonian mechanics, it seems natural to follow it with another big name in physics and another important field.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |