Forward compatibility: flex
[foam-extend-3.2.git] / applications / solvers / solidMechanics / viscoElasticSolidFoam / updateCrack.H
blobc5003758322759d725f6da3421833df5f0f2f169
2     forAll (DU.boundaryField(), patchI)
3     {
4         if
5         (
6             DU.boundaryField()[patchI].type()
7          == cohesiveZoneIncrementalModeIIFvPatchVectorField::typeName
8         )
9         {
10             cohesiveZoneIncrementalModeIIFvPatchVectorField& cohesivePatchDU =
11                 refCast<cohesiveZoneIncrementalModeIIFvPatchVectorField>
12                 (
13                     DU.boundaryField()[patchI]
14                 );
16             nCrackedFaces = cohesivePatchDU.updateCrack();
17             Info << "nCrackedFaces is " << nCrackedFaces << endl;
18         }
19     }