SpectraSim Documentation
Parameter · 05 Boundary Conditions

Maximum K evaluations

perforate.k_max_updates Step 05 · Boundary Conditions

The largest number of evaluations of KK for a perforated tube with the grazing correction, including the one at the end of the upwind start-up phase. After the last one (or after the first check that moves KK by less than 2 %) the run continues to convergence with the KK it has.

Last updated

Theory

Evaluation 1 is made at the end of the upwind phase and costs no extra restart. Evaluations 2 ... nmaxn_{max} are checks during the final phase, one every K check interval iterations; each restarts the solver only if KK moved by more than 2 %. With several perforated tubes one schedule applies to all of them: the largest nmaxn_{max} among them.

The pressure-drop window of the convergence rule starts the settle iterations after the LAST real restart, so every restart delays the earliest possible convergence. The list of evaluations (iteration, target and relaxed KK, and whether a restart was made) is kept in logs/perforate_k.json (_rounds).

Equations

nchecks≤nmax−1,iwindow=irestart,last+nsettlen_{checks} \le n_{max} - 1, \qquad i_{window} = i_{restart,last} + n_{settle}
(1)
wheremeaningunit
nmaxn_{max}Maximum number of evaluations (this setting)-
nchecksn_{checks}Checks made during the final phase-
iwindowi_{window}First iteration the convergence window may use-
irestart,lasti_{restart,last}Iteration of the last restart (the scheme switch when KK never restarted)-
nsettlen_{settle}Settle iterations after a restartiterations

Default and rule

Default
5
Rule

5.

Source

A run-control rule of the program. On the two-baffle test muffler the first check already moved KK by only 0.09 %, so the checks ended after two of the five evaluations. The number is a cap, not a tuned value.

Valid range 1-50

Values

1-50. With 1, only the evaluation at the end of the upwind phase is made.

Continued runs

A run continued with Continue run (resume) performs its final phase without KK checks.