Equilibrium - Make the magnetic-axis search's singular-Jacobian threshold relative

Abierto
#608 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 3 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
38/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
julia

Línea de trabajo

Start with Equilibrium/Axisymmetric/Direct.jl to inspect the Newton search and its singular_det check. Then check FastInterpolations' implementation or documentation for whether 2-D cubic_interp is C² or C¹. Done means the singular-Jacobian threshold scales with the equilibrium, and the fallback accounts for interpolation behavior that can make Newton cycle.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

The Newton search for the magnetic axis (Equilibrium/Axisymmetric/Direct.jl) treats the Hessian of ψ as singular below singular_det = 1e-20, an absolute threshold in the units of ψ_RR·ψ_ZZ. Its meaning therefore depends on the device size and the field strength.

Proposal: compare the determinant with a scale built from the equilibrium, for example (ψ_axis − ψ_boundary)²/L⁴ with L the minor radius, so the same relative threshold applies to a compact device and to an ITER-sized one. Also confirm whether FastInterpolations' 2-D cubic_interp is C² or only C¹. If only C¹, the Hessian jumps at grid nodes and an axis near a node can make Newton cycle, which the fallback should then expect.

Lenguaje dominante
Julia
Estrellas
11
Forks
7
Merge medio
4 d 3 h
PR fusionados (30 d)
70

Preparar el entorno

  • Sin Dockerfile ni archivo de Docker Compose
  • Tiene una plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de OpenFUSIONToolkit/GPEC

Todos los issues de OpenFUSIONToolkit/GPEC

Issues similares

Más issues de Julia

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.