1 if(divDSigmaExpMethod == "standard")
3 divDSigmaExp = fvc::div
5 mu*gradDU.T() + lambda*(I*tr(gradDU)) - (mu + lambda)*gradDU,
9 else if(divDSigmaExpMethod == "surface")
11 divDSigmaExp = fvc::div
13 muf*(mesh.Sf() & fvc::interpolate(gradDU.T()))
14 + lambdaf*(mesh.Sf() & I*fvc::interpolate(tr(gradDU)))
15 - (muf + lambdaf)*(mesh.Sf() & fvc::interpolate(gradDU))
18 else if(divDSigmaExpMethod == "decompose")
20 surfaceTensorField shearGradDU = ((I - n*n) & fvc::interpolate(gradDU));
22 divDSigmaExp = fvc::div
26 - (muf + lambdaf)*(fvc::snGrad(DU) & (I - n*n))
27 + lambdaf*tr(shearGradDU & (I - n*n))*n
28 + muf*(shearGradDU & n)
32 else if(divDSigmaExpMethod == "laplacian")
35 - fvc::laplacian(mu + lambda, DU, "laplacian(DDU,DU)")
36 + fvc::div(mu*gradDU.T() + lambda*(I*tr(gradDU)), "div(sigma)");
40 FatalErrorIn(args.executable())
41 << "divDSigmaExp method " << divDSigmaExpMethod << " not found!"