code-saturne / code-saturne/code_saturne

Bug for the initialization of mixture_fraction and mixture_fraction_variance

Aperta
#81 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
C++
Stelle
307
Fork
102
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Hi,

There are a bug for the initialization for mixture_fraction and mixture_fraction_variance on the master branch. To solve it, update the zone_id in InitializationView.py:

line 331
zone_id = str(self.zone.getCodeNumber())
exp = self.init.getCombustionFormula(zone_id, self.scalar_combustion)

line 346
zone_id = str(self.zone.getCodeNumber())
exp = self.init.getCombustionFormula(zone_id, self.scalar_combustion)

line 521
zone_id = str(self.zone.getCodeNumber())
exp, req, sym = self.init.getCombustionFormulaComponents(zone_id, self.scalar_combustion)

line 525
dialog = QMegEditorView(parent=self,
function_type="ini",
zone_name=self.zone.getLabel(),
variable_name=name,
expression=exp,
required=req,
symbols=sym,
examples=exa)

and line 535
self.init.setCombustionFormula(zone_id, self.scalar_combustion, str(result))

Cheers

Yohann

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.