Fixed URL for libccmio-2.6.1 (bug report #5 by Thomas Oliveira)
[foam-extend-3.2.git] / applications / solvers / solidMechanics / elasticOrthoAcpSolidFoam / calculateDivSigmaExp.H
blob275471c0f83803e799cc6d0f66b98ae7609e4474
1 if(divSigmaExpMethod == "standard")
3     //- calculating the full gradient has good convergence and no high freq oscillations
4     divSigmaExp = fvc::div(C && epsilon) - fvc::div(K & gradU);
6 else if(divSigmaExpMethod == "surface")
8     //- this form seems to have the best convergence
9     divSigmaExp = fvc::div
10     (
11         mesh.magSf()*
12         (
13             (n & (Cf && fvc::interpolate(symm(gradU))))
14           - (n & (Kf & fvc::interpolate(gradU)))
15         )
16     );
18 else if(divSigmaExpMethod == "laplacian")
20     //- causes high freq oscillations and slow convergence
21     divSigmaExp = fvc::div(sigma) - fvc::laplacian(K, U);
23 else
25     FatalErrorIn(args.executable())
26         << "divSigmaExp method " << divSigmaExpMethod << " not found!" << endl;