1 // Motion is a vectorField of all moving boundary points
2 vectorField motion(ms.movingPoints().size(), vector::zero);
4 vectorField oldPoints = ms.movingPoints();
6 scalar oldTime = time_.value() - time_.deltaT().value();
7 scalar curTime = time_.value();
10 scalar alphaCur = 0.0;
12 // scalar rotationAmplitude_(0.707);
13 // scalar rotationFrequency_(0.0);
14 // vector translationFrequency_(0.0,0.25,0.0);
15 // vector translationAmplitude_(0.0,5.0,0.0);
16 // vector initialRotationOrigin_(0.0,0.0,0.0);
20 alphaOld = rotationAmplitude_*Foam::sin(2*pi*rotationFrequency_*oldTime);
21 alphaCur = rotationAmplitude_*Foam::sin(2*pi*rotationFrequency_*curTime);
23 vector translationVector
25 translationAmplitude_[0]*
27 Foam::sin(2*pi*translationFrequency_[0]*curTime)
28 - Foam::sin(2*pi*translationFrequency_[0]*oldTime)
30 translationAmplitude_[1]*
32 Foam::sin(2*pi*translationFrequency_[1]*curTime)
33 - Foam::sin(2*pi*translationFrequency_[1]*oldTime)
40 Foam::cos(alphaOld), -Foam::sin(alphaOld), 0,
41 Foam::sin(alphaOld), Foam::cos(alphaOld), 0,
47 Foam::cos(alphaCur), -Foam::sin(alphaCur), 0,
48 Foam::sin(alphaCur), Foam::cos(alphaCur), 0,
52 vectorField rotationField
55 & (statPoints_ - initialRotationOrigin_)
58 motion = translationVector + rotationField;