Just made a short post about how to simulate electrostatic nonuniform charge density distributions with FEniCS; that is spatially varying charge density distributions. This could be useful for simulating things like particle beams which are commonly assumed to have Gaussian (or similar) distributions. This is a small extension of a previous post about how to simulate uniform charge density distributions.

@Rovine you could use node if you've already looked at JavaScript.

I needed to perform a numerical integral of a function I knew very little about. I tried to get decent resolution by having small slices in my integration.

Python was pretty slow to perform the integration, so I thought I'd have a look at writing it in c++. I haven't used c++ for ages, but eventually I got it working.

I then needed to plot the result of my integration against measured data, so I wanted access to my c++ functions in python, where I do my plotting.

Finally got my c++ functions imported into python using PyBind11 and I must say, it works amazingly well, I think it's well documented and the examples were great. Vectorising my functions so that I can run them for a whole numpy array of values was genuinely super-easy. I'm very impressed! Thanks to all the devs =]

@freemo works for me too now, thank you very much :)

@freemo I'm getting a gitlab 404 on video.qoto.org I'm afraid.

@mngrif nim is pretty interesting, you write something with a python-like syntax but its converted to c and compiled.

@Rovine well my aim isn't really to learn about blogging platforms so I wouldn't try anything too experimental, although I would consider a self hosted WordPress blog. Do you have a preferred host?

@freemo When I first saw this all I could think was "this is why nobody uses the divide symbol", all ambiguity disappears when it's written as a fraction.

@mycroft I suppose in some areas of education its necessary, I'm coming from a physics & math background.

@mycroft I wish people wouldn't use PowerPoint for teaching, I understand that its easier for teachers but I find it very unhelpful for actually learning.

@piggo Which of these features is Firefox lacking?

@Trillenial With a $50 telescope you can see other planets, all of them are clearly circular, what does he say about that? Its just a coincidence that they all happen to be showing their flat face to the earth?

My latest post is about using boundary conditions to assume symmetry in a finite element electrostatics problem.

To demonstrate Neumann boundaries I solve the Laplace equation for a coaxial geometry using 1/4 of the cross section. I then find the fields of a differential pair transmission line using half the cross section and a Dirichlet boundary.

This is all done with FEniCS, the open source finite element solver. #physics #python #opensource #ham #radio #fenics

https://comphysblog.wordpress.com/2019/07/15/assuming-symmetry-with-boundary-conditions/

This blog is dedicated to physics and computing, with a current focus on solving electromagnetic problems using open source tools.

I work in particle beam diagnostics and am a PhD student studying the interaction of particle beams with their surroundings as well as the associated dynamics.

I'm Interested in anything related to particle accelerators, beam dynamics, detectors, electromagnetism and computing for science. I also enjoy tennis, fountain pens, fantasy & sci-fi books and board games.

Joined Aug 2018