Fixed URL for libccmio-2.6.1 (bug report #5 by Thomas Oliveira)
[foam-extend-3.2.git] / applications / solvers / solidMechanics / elasticIncrAcpSolidFoam / calculateDivDSigmaExp.H
blobb797708ae2989f9a0042541f8c9b51fee64a6347
1 if(divDSigmaExpMethod == "standard")
3     divDSigmaExp = fvc::div
4     (
5         mu*gradDU.T() + lambda*(I*tr(gradDU)) - (mu + lambda)*gradDU,
6         "div(sigma)"
7     );
9 else if(divDSigmaExpMethod == "surface")
11     divDSigmaExp = fvc::div
12     (
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))
16     );
18 else if(divDSigmaExpMethod == "decompose")
20     snGradDU = fvc::snGrad(DU);
22     surfaceTensorField shearGradDU = ((I - n*n) & fvc::interpolate(gradDU));
24     divDSigmaExp = fvc::div
25     (
26         mesh.magSf()*
27         (
28           - (muf + lambdaf)*(snGradDU & (I - n*n))
29           + lambdaf*tr(shearGradDU & (I - n*n))*n
30           + muf*(shearGradDU & n)
31         )
32     );
34 else if(divDSigmaExpMethod == "expLaplacian")
36     divDSigmaExp =
37       - fvc::laplacian(mu + lambda, DU, "laplacian(DDU,DU)")
38       + fvc::div(mu*gradDU.T() + lambda*(I*tr(gradDU)), "div(sigma)");
40 else
42     FatalErrorIn(args.executable())
43         << "divDSigmaExp method " << divDSigmaExpMethod << " not found!"
44         << abort(FatalError);