fixed writing out entries in advective bc
[OpenFOAM-1.6-ext.git] / src / engine / engineTopoChangerMesh / thoboisMesh / setThoboisMeshConstraints.H
bloba6336cdb4be2e40b1f9191d146c18d9649e0ea72
3     const pointZoneMesh& pZones = pointZones();
5     label constraintSize = 0;
7     forAll(valves_, valveI)
8     {
9     
10         vector valveVel =
11             valves_[valveI].curVelocity()*valves_[valveI].cs().axis();
13         {
14     
15             label movingPtsIndex = pZones.findZoneID("movingPointsV"+Foam::name(valveI + 1));
16             const labelList& movingPointsV = pZones[movingPtsIndex];
17     
18             forAll(movingPointsV, mpI)
19             {
20                 constrainedPoints.append(movingPointsV[mpI]);
21                 constrainedVelocity.append(valveVel);
22            
23                 constraintSize++;
24             }
25     
26         }
28         {
29     
30             label movingInternalPtsIndex = pZones.findZoneID("movingInternalPointsV"+Foam::name(valveI + 1));
31             const labelList& movingInternalPointsV = pZones[movingInternalPtsIndex];
32     
33             forAll(movingInternalPointsV, mipI)
34             {
35                 constrainedPoints.append(movingInternalPointsV[mipI]);
36                 constrainedVelocity.append(valveVel);
37             
38                 constraintSize++;
39             }
40     
41         }
43         {
45             label staticPtsIndex = pZones.findZoneID("staticPointsV"+Foam::name(valveI + 1));
46             const labelList& staticPointsV = pZones[staticPtsIndex];
47     
48             forAll(staticPointsV, spI)
49             {
50                 constrainedPoints.append(staticPointsV[spI]);
51                 constrainedVelocity.append(vector::zero);
52                 constraintSize++;
54             }
56         }
58     }