3 Info<< "Time: " << runTime.timeName() << nl << endl;
5 # include "readSolidMechanicsControls.H"
7 volScalarField mu = rheology.mu(0);
8 volScalarField lambda = rheology.lambda(0);
10 Info << "mu = " << average(mu.internalField()) << endl;
11 Info << "lambda = " << average(lambda.internalField()) << endl;
14 lduMatrix::solverPerformance solverPerf;
15 scalar initialResidual = 0;
24 fvm::laplacian(2*mu+lambda, DU, "laplacian(DDU,DU)")
28 + lambda*(I*tr(gradDU))
29 - (mu + lambda)*gradDU,
34 solverPerf = DUEqn.solve();
40 initialResidual = solverPerf.initialResidual();
43 gradDU = fvc::grad(DU);
47 solverPerf.initialResidual() > convergenceTolerance
51 Info << "Solving for " << DU.name() << " using "
52 << solverPerf.solverName() << " solver"
53 << ", Initial residula = " << initialResidual
54 << ", Final residual = " << solverPerf.initialResidual()
55 << ", No outer iterations " << iCorr
56 << ", Relative error: " << err << endl;
60 # include "calculateDSigma.H"
72 scalar t = runTime.value();
73 scalar tNext = t + runTime.deltaT().value();
74 DSigmaCorr += 2.0*rheology.mu(tNext)*Depsilon
75 + rheology.lambda(tNext)*(I*tr(Depsilon));
79 # include "calculateStress.H"
81 # include "writeHistory.H"
85 Info<< "ExecutionTime = "
86 << runTime.elapsedCpuTime()