This repository has been archived on 2023-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
foam-extend4.1-coherent-io/applications/solvers/solidMechanics/elasticOrthoSolidFoam/setPlaneStressGradU.H

16 lines
458 B
C++
Raw Normal View History

//- set gradU.zz() for plane stress
if(rheology.planeStress())
{
forAll(gradU.internalField(), celli)
{
gradU.internalField()[celli].zz() =
(
- C.internalField()[celli].xxzz()*epsilon.internalField()[celli].xx()
- C.internalField()[celli].yyzz()*epsilon.internalField()[celli].yy()
)
/
C.internalField()[celli].zzzz();
}
gradU.correctBoundaryConditions();
}