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
15 muf*(n & fvc::interpolate(gradDU.T()))
16 + lambdaf*tr(fvc::interpolate(gradDU))*n
17 - (muf + lambdaf)*(n & fvc::interpolate(gradDU))
21 // divDSigmaExp = fvc::div
23 // muf*(mesh.Sf() & fvc::interpolate(gradDU.T()))
24 // + lambdaf*(mesh.Sf() & I*fvc::interpolate(tr(gradDU)))
25 // - (muf + lambdaf)*(mesh.Sf() & fvc::interpolate(gradDU))
28 else if(divDSigmaExpMethod == "decompose")
30 surfaceTensorField shearGradDU((I - n*n) & fvc::interpolate(gradDU));
32 divDSigmaExp = fvc::div
36 - (muf + lambdaf)*(fvc::snGrad(DU) & (I - n*n))
37 + lambdaf*tr(shearGradDU & (I - n*n))*n
38 + muf*(shearGradDU & n)
42 // divDSigmaExp = fvc::div
46 // - (muf + lambdaf)*(fvc::snGrad(DU)&(I - n*n))
47 // + lambdaf*tr(shearGradDU&(I - n*n))*n
48 // + muf*(shearGradDU&n)
52 else if(divDSigmaExpMethod == "laplacian")
55 - fvc::laplacian(mu + lambda, DU, "laplacian(DDU,DU)")
56 + fvc::div(mu*gradDU.T() + lambda*(I*tr(gradDU)), "div(sigma)");
60 FatalErrorIn(args.executable())
61 << "divDSigmaExp method " << divDSigmaExpMethod << " not found!"