Fusion-Power-Plant-Framework / bluemira

Bluemira is an integrated inter-disciplinary design tool for future fusion reactors. It incorporates several modules, some of which rely on other codes, to carry out a range of typical conceptual fusion reactor design activities.
https://bluemira.readthedocs.io/
GNU Lesser General Public License v2.1
67 stars 16 forks source link

Feature: arbitrary cross section current sources #1816

Closed je-cook closed 10 months ago

je-cook commented 1 year ago

Description of issue / requirement to address

Currently we only have analytical forms of rectangular cross section magnets following an arbitrary path.

It would be nice to be able to support analytical forms of other cross sections.

Proposed solution

This paper even though it is for permanent magnets may help with the generalisation: doi.org/10.1016/j.jmmm.2020.166894

EDIT (Matti): I have found a tractable formulation of a volumetric integral approach for vector potential and magnetic field here: https://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=4407584. Of the dozen or so approaches I ended up looking at, this was by far the most understandable and easy to implement. I have written a PR for this, but a lot remains to be done for me to be happy with this:

@kj5248

Alternative solutions

It is possible to just use an arrangement of BiotSavartFilaments to have a very similar result.

Additional context

This is useful for STEP, in that arbitrary cross-section conductors can be used, but I was interested in this stuff because I needed a general way to do volume integrals to calculate things like vector potential, and then self-inductance, etc. It's also potentially useful for stellarators, in that the conductors no longer need to be planar.

CoronelBuendia commented 1 year ago

I looked at this a while back: https://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=123865 I was scared by the lack of mention of singularities and how to treat them, but it's possible this could work, perhaps also including this stuff, which I had failed to note last time: https://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=101115