1 // List<polyMeshModifier*> tm(3*nValves() + 2);
2 // DynamicList<polyMeshModifier*> tm;
6 for (label valveI = 0; valveI < nValves(); valveI++)
8 // Add attach-detach for valve
11 valves_[valveI].detachInCylinderPatchID().active()
12 && valves_[valveI].detachInPortPatchID().active()
16 Info<< "Adding a attach/detach boundary mesh modifier "
17 << "to the valve " << valveI + 1 << endl;
19 topoChanger_.setSize(nMods+1);
25 "valveAttachDetach" + Foam::name(valveI + 1),
28 "detachFaceZoneV" + Foam::name(valveI + 1),
29 valves_[valveI].detachInCylinderPatchID().name(),
30 valves_[valveI].detachInPortPatchID().name(),
32 true // Manual triggering
36 Info << "Attach detach" << endl;
40 // Add piston layer addition
41 if (piston().patchID().active())
44 Info<< "Adding a layer addition/removal mesh modifier "
45 << "to the piston" << endl;
47 topoChanger_.setSize(nMods+1);
51 new layerAdditionRemoval
63 Info << "pistonLayer" << endl;
64 Info << nMods << endl;
68 Info << "Adding " << nMods << " topology modifiers" << endl;
70 // topoChanger_.setSize(nMods);
71 // topoChanger_.addTopologyModifiers(tm);