2013-10-11 13:31:14 +00:00
|
|
|
if(divDSigmaExpMethod == "standard")
|
2014-04-10 16:45:26 +00:00
|
|
|
{
|
2013-10-11 13:31:14 +00:00
|
|
|
divDSigmaExp = fvc::div
|
2014-04-10 16:45:26 +00:00
|
|
|
(
|
2015-05-17 14:25:35 +00:00
|
|
|
mu*gradDU.T() + lambda*(I*tr(gradDU)) - (mu + lambda)*gradDU,
|
2014-04-10 16:45:26 +00:00
|
|
|
"div(sigma)"
|
|
|
|
);
|
|
|
|
}
|
|
|
|
else if(divDSigmaExpMethod == "surface")
|
2014-06-01 18:12:52 +00:00
|
|
|
{
|
2014-04-10 16:45:26 +00:00
|
|
|
divDSigmaExp = fvc::div
|
|
|
|
(
|
|
|
|
mesh.magSf()*
|
|
|
|
(
|
|
|
|
muf*(n & fvc::interpolate(gradDU.T()))
|
|
|
|
+ lambdaf*tr(fvc::interpolate(gradDU))*n
|
|
|
|
- (muf + lambdaf)*(n & fvc::interpolate(gradDU))
|
|
|
|
)
|
|
|
|
);
|
|
|
|
|
2013-10-11 13:31:14 +00:00
|
|
|
// divDSigmaExp = fvc::div
|
2015-05-17 14:25:35 +00:00
|
|
|
// (
|
2015-05-17 15:11:30 +00:00
|
|
|
// muf*(mesh.Sf() & fvc::interpolate(gradDU.T()))
|
2015-05-17 14:25:35 +00:00
|
|
|
// + lambdaf*(mesh.Sf() & I*fvc::interpolate(tr(gradDU)))
|
|
|
|
// - (muf + lambdaf)*(mesh.Sf() & fvc::interpolate(gradDU))
|
|
|
|
// );
|
2014-04-10 16:45:26 +00:00
|
|
|
}
|
|
|
|
else if(divDSigmaExpMethod == "decompose")
|
|
|
|
{
|
|
|
|
surfaceTensorField shearGradDU((I - n*n) & fvc::interpolate(gradDU));
|
2014-06-01 18:12:52 +00:00
|
|
|
|
2014-04-10 16:45:26 +00:00
|
|
|
divDSigmaExp = fvc::div
|
|
|
|
(
|
2015-05-17 15:11:30 +00:00
|
|
|
mesh.magSf()*
|
2014-04-10 16:45:26 +00:00
|
|
|
(
|
2015-05-17 15:11:30 +00:00
|
|
|
- (muf + lambdaf)*(fvc::snGrad(DU) & (I - n*n))
|
|
|
|
+ lambdaf*tr(shearGradDU & (I - n*n))*n
|
|
|
|
+ muf*(shearGradDU & n)
|
2014-04-10 16:45:26 +00:00
|
|
|
)
|
|
|
|
);
|
|
|
|
|
2013-10-11 13:31:14 +00:00
|
|
|
// divDSigmaExp = fvc::div
|
2015-05-17 14:25:35 +00:00
|
|
|
// (
|
|
|
|
// mesh.magSf()*
|
|
|
|
// (
|
2015-05-17 15:11:30 +00:00
|
|
|
// - (muf + lambdaf)*(fvc::snGrad(DU)&(I - n*n))
|
|
|
|
// + lambdaf*tr(shearGradDU&(I - n*n))*n
|
|
|
|
// + muf*(shearGradDU&n)
|
2015-05-17 14:25:35 +00:00
|
|
|
// )
|
|
|
|
// );
|
2014-04-10 16:45:26 +00:00
|
|
|
}
|
|
|
|
else if(divDSigmaExpMethod == "laplacian")
|
|
|
|
{
|
|
|
|
divDSigmaExp =
|
|
|
|
- fvc::laplacian(mu + lambda, DU, "laplacian(DDU,DU)")
|
2015-05-17 14:25:35 +00:00
|
|
|
+ fvc::div(mu*gradDU.T() + lambda*(I*tr(gradDU)), "div(sigma)");
|
2014-04-10 16:45:26 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
FatalErrorIn(args.executable())
|
|
|
|
<< "divDSigmaExp method " << divDSigmaExpMethod << " not found!"
|
|
|
|
<< abort(FatalError);
|
|
|
|
}
|