Tearing - Tell a limited plasma from a padded g-file before placing surfaces past the boundary

Abierto
#529 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
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Área
backend

Línea de trabajo

Start with the g-file reader, which currently drops the limiter contour, and with the overlap scan that places surfaces past ψ_N = 1 when separatrix_q_law fires on a limited plasma. First keep the limiter contour when it is present, then have the scan check whether the boundary touches the limiter and skip any surface past ψ_N = 1 in that case, with a message saying so. Done when a limited EFIT-style test file with a nearby X-point produces no phantom surface and no overlap warning.

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

Descripción

separatrix_q_law builds a law whenever a poloidal-field minimum on the outermost surface leads to a saddle and the law reproduces the traced shear. A limited plasma with an X-point nearby passes both: one EFIT reconstruction checked gives an X-point at ψ_N = 1.093 and a shear ratio of 0.86. The overlap scan then treats it like a padded diverted file. It places one rational past ψ_N = 1, where no closed surface exists, and warns that no overlap could be established.

Today the domain is unchanged, so this is only a spurious warning. But if the kinetic profiles extend past ψ_N = 1 (p-files often reach about 1.12), that phantom surface would be scored and could move the cut one rational inward.

The size of the gap cannot distinguish the two cases, since a plasma close to diverting can have an X-point just outside ψ_N = 1. The reliable discriminator is the g-file's limiter contour, which GPEC's reader does not keep: a boundary touching the limiter is limited, and no surface past it should be placed.

Done when:

  • The reader keeps the limiter contour, where present.
  • The scan places no surface past ψ_N = 1 when the boundary touches the limiter, and says so.
  • A test with a limited EFIT-style file that has an X-point nearby.

🤖 Generated with Claude Code

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

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.