Bugfix in periodicOscillation::stabilise

Added missing motion amplitude and velocity amplitude when stabilising the
constraint.
This commit is contained in:
Vuko Vukcevic 2018-07-12 13:36:39 +02:00
parent 304d230d1a
commit 8bfcd34ffe

View file

@ -131,7 +131,7 @@ void Foam::periodicOscillation::stabilise
x -= (x & dir_)*dir_;
// ... then add the correct displacement
x += dir_*sin(omega_*t + phi_);
x += dir_*a_*sin(omega_*t + phi_);
// Set the velocity according to periodic oscillation
@ -140,7 +140,7 @@ void Foam::periodicOscillation::stabilise
u -= (u & dir_)*dir_;
// ... then add the correct velocity
u += dir_*cos(omega_*t + phi_);
u += dir_*a_*omega_*cos(omega_*t + phi_);
}