1 if(rheology.planeStress())
3 //- add higher order terms
4 volScalarField higherTerms = -0.5*volTensorField(gradDU&gradDU.T()).component(tensor::ZZ);
6 forAll(gradDU.internalField(), celli)
8 gradDU.internalField()[celli][tensor::ZZ] =
10 (-C.internalField()[celli][symmTensor4thOrder::XXZZ]*DEpsilon.internalField()[celli][symmTensor::XX]
11 - C.internalField()[celli][symmTensor4thOrder::YYZZ]*DEpsilon.internalField()[celli][symmTensor::YY]
14 C.internalField()[celli][symmTensor4thOrder::ZZZZ])
15 - higherTerms.internalField()[celli];
17 forAll(gradDU.boundaryField(), patchi)
19 forAll(gradDU.boundaryField()[patchi], facei)
21 gradDU.boundaryField()[patchi][facei][tensor::ZZ] =
24 - C.boundaryField()[patchi][facei][symmTensor4thOrder::XXZZ]*
25 DEpsilon.boundaryField()[patchi][facei][symmTensor::XX]
26 - C.boundaryField()[patchi][facei][symmTensor4thOrder::YYZZ]*
27 DEpsilon.boundaryField()[patchi][facei][symmTensor::YY]
30 C.boundaryField()[patchi][facei][symmTensor4thOrder::ZZZZ]
32 - higherTerms.boundaryField()[patchi][facei];