Bugfix in periodic oscillation constraint. Author: Vuko Vukcevic. Merge: Hrvoje Jasak.
This commit is contained in:
commit
69878923f9
1 changed files with 2 additions and 2 deletions
|
@ -131,7 +131,7 @@ void Foam::periodicOscillation::stabilise
|
||||||
x -= (x & dir_)*dir_;
|
x -= (x & dir_)*dir_;
|
||||||
|
|
||||||
// ... then add the correct displacement
|
// ... 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
|
// Set the velocity according to periodic oscillation
|
||||||
|
@ -140,7 +140,7 @@ void Foam::periodicOscillation::stabilise
|
||||||
u -= (u & dir_)*dir_;
|
u -= (u & dir_)*dir_;
|
||||||
|
|
||||||
// ... then add the correct velocity
|
// ... then add the correct velocity
|
||||||
u += dir_*cos(omega_*t + phi_);
|
u += dir_*a_*omega_*cos(omega_*t + phi_);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in a new issue