Skip to content

Commit 0232486

Browse files
authored
Merge pull request #1656 from HL-ZHI/master
Fix missing phase angle in calculation of grid velocity for rigid pitching motion
2 parents 35137f4 + 4bd9702 commit 0232486

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Common/src/grid_movement/CVolumetricMovement.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -2066,9 +2066,9 @@ void CVolumetricMovement::Rigid_Pitching(CGeometry *geometry, CConfig *config, u
20662066

20672067
/*--- Angular velocity at the new time ---*/
20682068

2069-
alphaDot[0] = -Omega[0]*Ampl[0]*cos(Omega[0]*time_new);
2070-
alphaDot[1] = -Omega[1]*Ampl[1]*cos(Omega[1]*time_new);
2071-
alphaDot[2] = -Omega[2]*Ampl[2]*cos(Omega[2]*time_new);
2069+
alphaDot[0] = -Omega[0]*Ampl[0]*cos(Omega[0]*time_new + Phase[0]);
2070+
alphaDot[1] = -Omega[1]*Ampl[1]*cos(Omega[1]*time_new + Phase[1]);
2071+
alphaDot[2] = -Omega[2]*Ampl[2]*cos(Omega[2]*time_new + Phase[2]);
20722072

20732073
if (rank == MASTER_NODE && iter == 0) {
20742074
cout << " Pitching frequency: (" << Omega[0] << ", " << Omega[1];

0 commit comments

Comments
 (0)