2 scalar t = runTime.value();
3 scalar tNext = t + runTime.deltaT().value();
5 instantList Times = runTime.times();
7 sigma = dimensionedSymmTensor("zero", dimForce/dimArea, symmTensor::zero);
16 for (label i=1; i<Times.size(); i++)
18 runTime.setTime(Times[i], i);
20 if(runTime.timeIndex() != i)
22 FatalErrorIn(args.executable())
23 << "The strain increment DEpsilon must be stored for "
24 << "each calculated time step. "
28 IOobject DEpsilonHeader
36 // Check DEpsilon exists
37 if (DEpsilonHeader.headerOk())
39 volSymmTensorField DEpsilonOld(DEpsilonHeader, mesh);
41 scalar tau = runTime.value() - m*runTime.deltaT().value();
45 sigma += 2.0*rheology.mu(t)*DEpsilonOld
46 + rheology.lambda(t)*(I*tr(DEpsilonOld));
48 DSigmaCorr += 2.0*rheology.mu(tNext)*DEpsilonOld
49 + rheology.lambda(tNext)*(I*tr(DEpsilonOld));
53 sigma += 2.0*rheology.mu(t - tau)*DEpsilonOld
54 + rheology.lambda(t - tau)*(I*tr(DEpsilonOld));
56 DSigmaCorr += 2.0*rheology.mu(tNext - tau)*DEpsilonOld
57 + rheology.lambda(tNext - tau)*(I*tr(DEpsilonOld));
62 Info << "No DEpsilon" << endl;
71 scalar tau = runTime.value() - m*runTime.deltaT().value();
73 sigma += 2.0*rheology.mu(t - tau)*DEpsilon
74 + rheology.lambda(t - tau)*(I*tr(DEpsilon));
76 DSigmaCorr += 2.0*rheology.mu(tNext - tau)*DEpsilon
77 + rheology.lambda(tNext - tau)*(I*tr(DEpsilon));