ThirdParty: initial commit of the packages selection mechanism using environment...
[foam-extend-3.2.git] / src / engine / engineTopoChangerMesh / accordionEngineMesh / setPistonMotionBoundaryConditionAccordionEngineMesh.H
blob88618cdedae03bb1bd40f79b617a97f7f7965d59
1 // use tetrahedral decomposition of the engine mesh
3     vector pistonVel =
4             piston().cs().axis()*engineTime_.pistonSpeed().value();
7     tetPointVectorField& motionU = mSolver.motionU();
9     Info << "setting the piston velocity" << endl;
11     // Set piston velocity
12     if (piston().patchID().active())
13     {
15         if (debug)
16         {
17             Info << "Piston velocity: " << pistonVel;
18         }
20         motionU.boundaryField()[piston().patchID().index()] == pistonVel;
21 //        motionU.boundaryField()[piston().patchID().index()] == vector::zero;
23     }