Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

elastic-tube-1d: Solvers do not support subcycling in implicit coupling

Aperta
#240 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
cpp, python
Ambito
backend

Direzione di ricerca

Inizia con il ciclo temporale indicato di FluidSolver.py alle righe 127-156, quindi confronta il suo checkpointing con quello di SolidSolver.py e dei solver C++. Riproduci un caso di subcycling e traccia il tempo del solver e lo stato del checkpoint attraverso le finestre di accoppiamento. Il lavoro è completato quando tutti i solver interessati ripristinano lo stato corretto senza dichiarare operazioni di checkpoint in punti in cui non sono state eseguite.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug good first issue

Looking at the FluidSolver.py, I noticed that a few things are a bit uncommon in the time loop:

https://github.com/precice/tutorials/blob/95eea58160af574f8f1ab4ace248d5be53d8e140/elastic-tube-1d/fluid-python/FluidSolver.py#L127-L156

It looks like the checkpointing assumes that the solver time step is equal to the coupling time window. More specifically, whenever preCICE does not ask the solver to read a checkpoint, the solver writes a checkpoint of the current solution. However, this also means that the checkpoint will be updated at every solver time step and the solver will not return to the right state when subcycling.

Two more problems:

  • There is no checkpointing of the time itself, we only have a time_it += 1.
  • We are essentially tricking preCICE, telling it that we read/wrote checkpoints at different points that we actually do. This makes the code difficult to follow.

The SolidSolver.py, as well as the C++ solvers, also have the same flaw.

Lingua principale
C
Stelle
143
Fork
169
Merge medio
1g 11h
PR unite (30g)
20

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di precice/tutorials

Tutte le issue di precice/tutorials

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.