PlasmaControl / DESC

Stellarator Equilibrium and Optimization Suite
MIT License
90 stars 26 forks source link

signed curvature #1039

Closed ddudt closed 2 months ago

ddudt commented 4 months ago

Our curvature compute quantities are always positive. It would be useful to define a signed curvature to distinguish between convex and concave shapes. This should be particularly easy to implement for the FourierPlanarCurve class. We could either:

dpanici commented 3 months ago

I think that having the quantity just for the FourierPlanarCurve makes sense, and then the Objective for it could just throw a NotImplementedError if any coil is passed in which is not a FourierPlanarCurve?

dpanici commented 3 months ago

Dot curvature vector with centroid to get signed curvature for every type