Prematurely optimizing (Posts about particle-in-cell)https://stanczakdominik.github.io/enContents © 2022 <a href="https://matrix.to/#/@StanczakDominik:matrix.org">Dominik Stańczak-Marikin</a>
<a rel="license" href="https://creativecommons.org/licenses/by-nc-sa/4.0/">
<img alt="Creative Commons License BY-NC-SA"
style="border-width:0; margin-bottom:12px;"
src="/images/creativecommons.png"></a>Fri, 02 Sep 2022 19:30:13 GMTNikola (getnikola.com)http://blogs.law.harvard.edu/tech/rss- Post mortem for my engineering thesis code, PythonPIChttps://stanczakdominik.github.io/posts/post-mortem-for-my-engineering-thesis-code-pythonpic/Dominik Stańczak-Marikin<div><p>I'm giving a presentation on this less-than-glorious subject on Friday, so
I figured, hey, it might be a nice time to write a summary of what <a href="https://github.com/StanczakDominik/PythonPIC">that old
repository on my GitHub page</a> is. In a single video:</p>
<p></p><center><iframe width="800" height="450" src="https://www.youtube-nocookie.com/embed/rE4-X-jNoFw" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></center>
<p>Admittedly, this post is going to be rather personal - this messy little code
was basically my life for a few hundreds of hours.</p>
<p><a href="https://stanczakdominik.github.io/posts/post-mortem-for-my-engineering-thesis-code-pythonpic/" class="btn btn-outline-secondary">Read more…</a> (7 min remaining to read)</p></div>particle-in-cellplasmapythonsimulationhttps://stanczakdominik.github.io/posts/post-mortem-for-my-engineering-thesis-code-pythonpic/Wed, 03 Apr 2019 19:15:00 GMT
- On the recent "On the Boris solver in Particle-in-cell simulations" paperhttps://stanczakdominik.github.io/posts/on-the-recent-on-the-boris-solver-in-particle-in-cell-simulations-paper/Dominik Stańczak-Marikin<div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt">
</div><div class="inner_cell">
<div class="text_cell_render border-box-sizing rendered_html">
<p>I recently came across <a href="https://arxiv.org/abs/1809.04378">a pretty cool paper by Zenitani and Umeda named "On the Boris solver in particle-in-cell simulation"</a>. There are many splendid descriptions of the Boris solver on the Internet, so while I would rather not duplicate them, here's a brief overview. In PIC simulations, the Boris solver (or pusher) is the usual algorithm of choice for moving and accelerating particles in given electric and magnetic fields.</p>
<p>You may wonder, since the equations of motion are ordinary differential equations, what's wrong with using the usual Runge-Kutta 4 solver? As it turns out, that one has a pretty major flaw. It has great accuracy for short term calculations, but over time your particle's motion will lose energy. This is a deal breaker for periodic motion, and simulations of, for example, plasma waves need to conserve that energy to provide accurate results.</p>
<p>Boris came up with his solver in the 1950's, and in a single sentence: the algorithm splits the acceleration via electric field into two parts and sticks a rotation about the magnetic field between them. This turns out to conserve energy and will probably come up again on this blog as I read more about symplexicity.</p>
<p><a href="https://stanczakdominik.github.io/posts/on-the-recent-on-the-boris-solver-in-particle-in-cell-simulations-paper/" class="btn btn-outline-secondary">Read more…</a> (13 min remaining to read)</p></div></div></div>paperparticle-in-cellplasmapythonsimulationhttps://stanczakdominik.github.io/posts/on-the-recent-on-the-boris-solver-in-particle-in-cell-simulations-paper/Wed, 27 Mar 2019 08:00:00 GMT
- Particle in Cell methodshttps://stanczakdominik.github.io/posts/particle-in-cell-methods/Dominik Stańczak-Marikin<div><p>I think it might finally be about time to do some plasma physics
discussion on this blog, stay true to the name and so on…</p>
<p>Basically the only actual “scientific” work I have actually done with
plasmas up until now is writing a PIC simulation, PIC standing for
Particle-in-Cell. I thought I would take this opportunity to explain in
my own words what the concept is - I think it’s a clever one.</p>
<p><a href="https://stanczakdominik.github.io/posts/particle-in-cell-methods/" class="btn btn-outline-secondary">Read more…</a> (6 min remaining to read)</p></div>particle-in-cellpicplasmahttps://stanczakdominik.github.io/posts/particle-in-cell-methods/Tue, 19 Mar 2019 09:00:00 GMT