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] =
9 ((-C.internalField()[celli][symmTensor4thOrder::XXZZ]*DEpsilon.internalField()[celli][symmTensor::XX]
10 - C.internalField()[celli][symmTensor4thOrder::YYZZ]*DEpsilon.internalField()[celli][symmTensor::YY])
12 C.internalField()[celli][symmTensor4thOrder::ZZZZ])
13 -higherTerms.internalField()[celli];
15 forAll(gradDU.boundaryField(), patchi)
17 forAll(gradDU.boundaryField()[patchi], facei)
19 gradDU.boundaryField()[patchi][facei][tensor::ZZ] =
20 ((-C.boundaryField()[patchi][facei][symmTensor4thOrder::XXZZ]*DEpsilon.boundaryField()[patchi][facei][symmTensor::XX]
21 - C.boundaryField()[patchi][facei][symmTensor4thOrder::YYZZ]*DEpsilon.boundaryField()[patchi][facei][symmTensor::YY])
23 C.boundaryField()[patchi][facei][symmTensor4thOrder::ZZZZ])
24 - higherTerms.boundaryField()[patchi][facei];