PlasmaControl / DESC

Stellarator Equilibrium and Optimization Suite
MIT License
86 stars 22 forks source link

Using a Distance Field (Possible interpolated) for `PlasmaVesselDistance` when the surface is fixed #749

Open dpanici opened 9 months ago

dpanici commented 9 months ago

If the vessel surface is fixed, then it might be much faster to compute a `distance field` of the min distance to the vessel from a set of points inside of the vessel volume, then spline that data (as a function of, say R,phi,Z), then use that splined data to determine the min distance instead of calculating it explicitly at each step. Our surfaces are continuous in space, so I would think the minimum distance maybe is likely continuous as a function of (R,phi,Z) space as well so the spline should be a good fit of it.

dpanici commented 2 months ago

Also apploicable to plasma coil distance objectives