20 lines
580 B
C
20 lines
580 B
C
{
|
|
forAll (DU.boundaryField(), patchI)
|
|
{
|
|
if
|
|
(
|
|
DU.boundaryField()[patchI].type()
|
|
== cohesiveZoneIncrementalModeIIFvPatchVectorField::typeName
|
|
)
|
|
{
|
|
cohesiveZoneIncrementalModeIIFvPatchVectorField& cohesivePatchDU =
|
|
refCast<cohesiveZoneIncrementalModeIIFvPatchVectorField>
|
|
(
|
|
DU.boundaryField()[patchI]
|
|
);
|
|
|
|
nCrackedFaces = cohesivePatchDU.updateCrack();
|
|
Info << "nCrackedFaces is " << nCrackedFaces << endl;
|
|
}
|
|
}
|
|
}
|