PROCESS has three separate TF temperature margin variables. For CROCO two are calculated differently
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
Línea de trabajo
Start in tfcoil_variables.py, where tmargmin, temp_margin and temp_tf_superconductor_margin are declared, then find every read and write of temp_margin and tmargmin across the codebase. Compare the CROCO path, which sets temp_margin via superconductors.current_sharing_rebco and temp_tf_superconductor_margin via calculate_superconductor_temperature_margin. The issue needs a maintainer decision on which name survives before any edit. Done means one temperature-margin variable remains, with the availability routine and the margin constraint still giving the same results.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Echoes of #527
//tfcoil_variables.py
tmargmin: float = 0.0
"""minimum allowable temperature margin : TFC AND CS (K)"""
temp_margin: float = 0.0
"""temperature margin (K)"""
temp_tf_superconductor_margin: float = 0.0
"""TF coil superconductor temperature margin (K)"""
For CICC, temp_margin = temp_tf_superconductor_margin. No-brainer.
For CROCO, it's a horror show, with the two being calculated one after the other with different superconducting parameterisations.
temp_margin is calculated with one hard-coded REBCO current density parameterisation:
# Temperature margin
current_sharing_t = superconductors.current_sharing_rebco(
b_tf_inboard_peak, j_superconductor
)
tmarg = current_sharing_t - temp_tf_peak
self.data.tfcoil.temp_margin = (
tmarg # Only used in the availabilty routine - see comment to Issue #526
)
temp_tf_superconductor_margin is calculated with an input-based current density parameterisation:
if self.data.tfcoil.i_str_wp == 0:
strain = self.data.tfcoil.str_tf_con_res
else:
strain = self.data.tfcoil.str_wp
self.data.tfcoil.temp_tf_superconductor_margin = (
self.calculate_superconductor_temperature_margin(
i_tf_superconductor=self.data.tfcoil.i_tf_sc_mat,
j_superconductor=d_sc_tf.j_tf_superconductor,
b_tf_inboard_peak=self.data.tfcoil.b_tf_inboard_peak_with_ripple,
strain=strain,
bc20m=d_sc_tf.b_tf_superconductor_critical_zero_temp_strain,
tc0m=d_sc_tf.temp_tf_superconductor_critical_zero_field_strain,
c0=1.0e10,
temp_tf_coolant_peak_field=self.data.tfcoil.tftmp,
data=self.data,
)
)
temp_margin is only used in the availability calculations, not in the temperature margin constraint.
tmargmin appears to exist for backwards compatibility only, and applies to both TF and CS.
temp_tf_superconductor_margin is the most explicit name, and the one used most frequently. Please could we simplify these down, it's rather confusing.
- Lenguaje dominante
- Python
- Estrellas
- 74
- Forks
- 29
- Merge medio
- 3 d 7 h
- PR fusionados (30 d)
- 43
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de ukaea/PROCESS
-
Add variable types and descriptions to `plasma_main_page()`Posiblemente ocupada @timothy-nunn la tomó hace 5 días. Abiertopapercut
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
ukaea/PROCESS#4669 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Blocked Command Line Interface Input/Output Files
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
ukaea/PROCESS#4161 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
:bug: `--mfile` arg does not work as expectedPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. AbiertoCommand Line Interface
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
ukaea/PROCESS#4011 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
VaryRun example file no longer finding converging IN.DATPosiblemente ocupada @clmould la tomó hoy. AbiertoExamples Testing
ukaea/PROCESS#4715 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Constraints of order unityPosiblemente ocupada @timothy-nunn la tomó hace 5 días. AbiertoConvergence
ukaea/PROCESS#4704 · 3 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de ukaea/PROCESS
Issues similares
-
area/config comp/tools P2 platform/telegram type/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
NousResearch/hermes-agent#145412 ·
Los mantenedores suelen responder en 1 día
-
[oblt-aw][autodoc] Update docs for security org scaffolding and Docs AI menu permission changesPosiblemente ocupada @github-actions la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
Community project: hosted MOSS-Image studio with a visual JSON layout builder (no ComfyUI needed)Abierto
Dificultad 1/5 1-3 horas Aptitud para principiantes 65/100
OpenMOSS/MOSS-Image#27 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
deepspeedai/DeepSpeed#8925 · 1 comentario ·
Los mantenedores suelen responder en 3 días
-
external integration integration-submission
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
langchain-ai/docs#7077 ·
Los mantenedores suelen responder en 1 día