{ Info << "\nCalculate total stress" << endl; scalar t = runTime.value(); scalar tNext = t + runTime.deltaT().value(); instantList Times = runTime.times(); // Info << "Number of times: " << Times.size() << endl; sigma = dimensionedSymmTensor("zero", dimForce/dimArea, symmTensor::zero); DSigmaCorr = dimensionedSymmTensor ( "zero", dimForce/dimArea, symmTensor::zero ); for (label i=1; i=2) { runTime++; } scalar tau = runTime.value() - m*runTime.deltaT().value(); sigma += 2.0*rheology.mu(t - tau)*Depsilon + rheology.lambda(t - tau)*(I*tr(Depsilon)); DSigmaCorr += 2.0*rheology.mu(tNext - tau)*Depsilon + rheology.lambda(tNext - tau)*(I*tr(Depsilon)); DSigmaCorr -= sigma; //Info << "Current time = " << runTime.timeName() << endl; }