Merge commit 'd3b269b7c6ffa0cd68845adfecdfb849316dba71' into nextRelease
[foam-extend-3.2.git] / src / engine / engineTopoChangerMesh / thoboisMesh / setThoboisMeshConstraintsNoDeformation.H
blobd236f387ccb72aeaf31a8a1b69ddbfb4c2ec0c6d
3     const faceZoneMesh& fZones = faceZones();
4     const pointZoneMesh& pZones = pointZones();
6     label constraintSize = 0;
8     forAll(valves_, valveI)
9     {
11         vector valveVel =
12             valves_[valveI].curVelocity()*valves_[valveI].cs().axis();
14         {
16             label movingPtsIndex = pZones.findZoneID("movingPointsV"+Foam::name(valveI + 1));
17             const labelList& movingPointsV = pZones[movingPtsIndex];
19             forAll(movingPointsV, mpI)
20             {
21                 constrainedPoints.append(movingPointsV[mpI]);
22                 constrainedVelocity.append(valveVel);
23                 constraintSize++;
24             }
26         }
28         {
30             label staticPtsIndex = pZones.findZoneID("staticPointsV"+Foam::name(valveI + 1));
31             const labelList& staticPointsV = pZones[staticPtsIndex];
33             forAll(staticPointsV, spI)
34             {
35                 constrainedPoints.append(staticPointsV[spI]);
36                 constrainedVelocity.append(vector::zero);
37                 constraintSize++;
38             }
40         }
42         {
44             label movingFacesIndex = fZones.findZoneID("movingFacesZoneV"+Foam::name(valveI + 1));
45             const labelList& movingFacesV = pZones[movingFacesIndex];
47             forAll(movingFacesV, mfI)
48             {
49                 constrainedPoints.append(movingFacesV[mfI]+points().size());
50                 constrainedVelocity.append(valveVel);
51                 constraintSize++;
52             }
54         }
56         {
58             label staticFacesIndex = fZones.findZoneID("staticFacesZoneV"+Foam::name(valveI + 1));
59             const labelList& staticFacesV = pZones[staticFacesIndex];
61             forAll(staticFacesV, sfI)
62             {
63                 constrainedPoints.append(staticFacesV[sfI]+points().size());
64                 constrainedVelocity.append(vector::zero);
65                 constraintSize++;
66             }
68         }
70     }