1 // List<polyMeshModifier*> tm(3*nValves() + 2);
2 // DynamicList<polyMeshModifier*> tm;
8 piston().patchID().active()
10 piston().bowlInPistonPatchID().active()
12 piston().bowlInCylinderPatchID().active()
15 Info << "Adding a sliding interface mesh modifier to the piston bowl " << endl;
17 topoChanger_.setSize(nMods+1);
24 "pistonBowlInterface",
29 "cutPointsPistonBowl",
30 "cutFaceZonePistonBowl",
31 piston().bowlInCylinderPatchID().name(),
32 piston().bowlInPistonPatchID().name(),
33 slidingInterface::INTEGRAL, // always integral
34 true, // attach-detach action
40 Info << "pistonBowl" << endl;
41 Info << nMods << endl;
44 for (label valveI = 0; valveI < nValves(); valveI++)
46 // Add valve curtain sliding interface
49 valves_[valveI].curtainInCylinderPatchID().active()
50 && valves_[valveI].curtainInPortPatchID().active()
54 Info << "Adding a sliding interface mesh modifier to the valve " <<
57 topoChanger_.setSize(nMods+1);
64 "valveSlider" + Foam::name(valveI + 1),
67 "curtainPortZoneV" + Foam::name(valveI + 1),
68 "curtainCylZoneV" + Foam::name(valveI + 1),
69 "cutPointsV" + Foam::name(valveI + 1),
70 "cutFaceZoneV" + Foam::name(valveI + 1),
71 valves_[valveI].curtainInPortPatchID().name(),
72 valves_[valveI].curtainInCylinderPatchID().name(),
73 slidingInterface::INTEGRAL, // always integral
74 true, // attach-detach action
80 Info << "valveSlider" + Foam::name(valveI + 1) << endl;
81 Info << nMods << endl;
84 // Add valve poppet layer addition
85 if (valves_[valveI].poppetPatchID().active())
88 Info << "Adding a layer addition/removal mesh modifier to the poppet of the valve " <<
91 topoChanger_.setSize(nMods+1);
96 new layerAdditionRemoval
98 "valvePoppetLayer" + Foam::name(valveI + 1),
101 "layeringFacesTopZoneV" + Foam::name(valveI + 1),
102 valves_[valveI].minTopLayer(),
103 valves_[valveI].maxTopLayer()
107 Info << "valvePoppetLayer" + Foam::name(valveI + 1) << endl;
108 Info << nMods << endl;
112 // Add valve bottom layer addition
113 if (valves_[valveI].bottomPatchID().active())
116 Info << "Adding a layer addition/removal mesh modifier to the bottom of the valve " <<
119 topoChanger_.setSize(nMods+1);
124 new layerAdditionRemoval
126 "valveBottomLayer" + Foam::name(valveI + 1),
129 "layeringFacesBottomZoneV" + Foam::name(valveI + 1),
130 valves_[valveI].minBottomLayer(),
131 valves_[valveI].maxBottomLayer()
135 Info << "valveBottomLayer" + Foam::name(valveI + 1) << endl;
136 Info << nMods << endl;
142 # include "addPistonLayerAdditionRemovalMeshModifier.H"
146 Info << "Adding " << nMods << " topology modifiers" << endl;