Skip to content

Handling of coordinate conversions outside LCFS in eq.map_coordinates #2259

Description

@amicitas

I am trying to use desc to help me convert real-space coordinates to flux-space coordinates for a synthetic diagnostic implementation. For points that fall within the last closed flux surface (LCFS) desc seems to work quite well using eq.map_coordinates. However, since I am starting from real-space, I need to sample points from a much wider area and currently desc is both inefficient and unpredictable for points outside the LCFS (see attached figure for W7-X).

Are there any known solutions to improve handling of eq.map_coordinates for handling of inverse coordinate transforms outside the LCFS? What I would like is a fast calculation of NaN or a mask for requests outside of the LCFS, rather than the slow and unpredictable result from the solver.

Sam Lazerson and I were able to implement such a filter within the LIBSTELL library (stelltools.f90/mirtools.f90), but I don't know if that approach works within desc.

-- Novimir

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions