4 for (label valveI = 0; valveI < nValves(); valveI++)
6 // Add valve curtain sliding interface
9 valves_[valveI].curtainInCylinderPatchID().active()
10 && valves_[valveI].curtainInPortPatchID().active()
14 Info << "Adding a sliding interface mesh modifier to the valve " <<
17 topoChanger_.setSize(nMods+1);
24 "valveSlider" + Foam::name(valveI + 1),
27 "curtainPortZoneV" + Foam::name(valveI + 1),
28 "curtainCylZoneV" + Foam::name(valveI + 1),
29 "cutPointsV" + Foam::name(valveI + 1),
30 "cutFaceZoneV" + Foam::name(valveI + 1),
31 valves_[valveI].curtainInPortPatchID().name(),
32 valves_[valveI].curtainInCylinderPatchID().name(),
33 slidingInterface::INTEGRAL, // always integral
34 true, // attach-detach action
40 Info << "valveSlider" + Foam::name(valveI + 1) << endl;
41 Info << nMods << endl;
44 // Add valve poppet layer addition
45 if (valves_[valveI].poppetPatchID().active())
48 Info << "Adding a layer addition/removal mesh modifier to the poppet of the valve " <<
51 topoChanger_.setSize(nMods+1);
56 new layerAdditionRemoval
58 "valvePoppetLayer" + Foam::name(valveI + 1),
61 "poppetZoneV" + Foam::name(valveI + 1),
62 valves_[valveI].minTopLayer(),
63 valves_[valveI].maxTopLayer()
67 Info << "valvePoppetLayer" + Foam::name(valveI + 1) << endl;
68 Info << nMods << endl;
72 // Add valve bottom layer addition
73 if (valves_[valveI].bottomPatchID().active())
76 Info << "Adding a layer addition/removal mesh modifier to the bottom of the valve " <<
79 topoChanger_.setSize(nMods+1);
84 new layerAdditionRemoval
86 "valveBottomLayer" + Foam::name(valveI + 1),
89 "bottomZoneV" + Foam::name(valveI + 1),
90 valves_[valveI].minBottomLayer(),
91 valves_[valveI].maxBottomLayer()
95 Info << "valveBottomLayer" + Foam::name(valveI + 1) << endl;
96 Info << nMods << endl;
102 Info << "Adding a layer addition/removal mesh modifier to the piston-valve " <<
105 topoChanger_.setSize(nMods+1);
110 new layerAdditionRemoval
112 "valvePistonLayer" + Foam::name(valveI + 1),
115 "pistonLayerFacesV" + Foam::name(valveI + 1),
121 Info << "valvePistonLayer" + Foam::name(valveI + 1) << endl;
122 Info << nMods << endl;
125 // Add attach-detach for valve
128 valves_[valveI].detachInCylinderPatchID().active()
129 && valves_[valveI].detachInPortPatchID().active()
133 Info << "Adding a attach/detach boundary mesh modifier to the valve " <<
136 topoChanger_.setSize(nMods+1);
143 "valveAttachDetach" + Foam::name(valveI + 1),
146 "detachFaceZoneV" + Foam::name(valveI + 1),
147 valves_[valveI].detachInCylinderPatchID().name(),
148 valves_[valveI].detachInPortPatchID().name(),
150 true // Manual triggering
154 Info << "Attach detach" << endl;
161 // Add piston layer addition
162 if (piston().patchID().active())
165 Info << "Adding a layer addition/removal mesh modifier to the piston" << endl;
167 topoChanger_.setSize(nMods+1);
172 new layerAdditionRemoval
183 Info << "pistonLayer" << endl;
184 Info << nMods << endl;
188 Info << "Adding " << nMods << " topology modifiers" << endl;