You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/libcadet/model/GeneralRateModelDG-InitialConditions.cpp
-9Lines changed: 0 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -303,15 +303,6 @@ void GeneralRateModelDG::consistentInitialState(const SimulationTime& simTime, d
303
303
304
304
Indexer idxr(_disc);
305
305
306
-
// initialization for inexact integration DG discretization of particle mass balance not supported. This would require the consideration of the additional algebraic constraints,
307
-
// but the general performance (stiffness due to the additional algebraic constraints) of this scheme does not justify the effort here.
308
-
for (unsignedint type = 0; type < _disc.nParType; type++) {
309
-
if (_disc.parExactInt[type] == false) {
310
-
LOG(Error) << "No consistent initialization for inexact integration DG discretization in particles (cf. par_exact_integration). If consistent initialization is required, change to exact integration.";
311
-
return;
312
-
}
313
-
}
314
-
315
306
// Step 1: Solve algebraic equations
316
307
317
308
// Step 1a: Compute quasi-stationary binding model state
// Add derivative with respect to dynamic states to Jacobian
203
-
if (_binding[parType]->reactionQuasiStationarity()[idxr.offsetBoundComp(ParticleTypeIndex{ parType }, ComponentIndex{ comp }) + bnd])
204
-
continue;
205
-
206
-
// surface diffusion + kinetic binding -> additional DG-discretized mass balance equation for solid, for which the (inexact integration) discretization special case also holds
if ((std::any_of(parExactInt.begin(), parExactInt.end(), [](bool value) { return !value; })))
213
-
LOG(Warning) << "Inexact integration method (cf. PAR_EXACT_INTEGRATION) in particles might add severe! stiffness to the system and disables consistent initialization!";
214
-
215
207
if (parPolyDeg.size() == 1)
216
208
{
217
209
// Multiplex number of particle shells to all particle types
0 commit comments