Skip to content

Commit 4ca5281

Browse files
author
voss_ar
committed
Modifying the switch for resetting or keeping existing grid velocity to
handle elastic mesh deformation.
1 parent af9ee82 commit 4ca5281

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

SU2_CFD/src/iteration/CFluidIteration.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ void CFluidIteration::SetWind_GustField(CConfig* config, CGeometry** geometry, C
358358
}
359359

360360
// Print some information to check that we are doing the right thing. Not sure how to convert the index back to a string...
361-
if (rank == MASTER_NODE) cout << endl << " Setting up a wind gust type " << Gust_Type << " with amplitude of " << gust_amp << " in direction " << GustDir << endl;
361+
if (rank == MASTER_NODE) cout << endl << "Setting up a wind gust type " << Gust_Type << " with amplitude of " << gust_amp << " in direction " << GustDir << endl;
362362
if (rank == MASTER_NODE) cout << " U_inf = " << Uinf << endl;
363363
if (rank == MASTER_NODE) cout << " Physical_t = " << Physical_t << endl;
364364
su2double loc_x = (xbegin + L + Uinf * (Physical_t - tbegin));
@@ -388,7 +388,7 @@ void CFluidIteration::SetWind_GustField(CConfig* config, CGeometry** geometry, C
388388

389389
for (iPoint = 0; iPoint < geometry[iMGlevel]->GetnPoint(); iPoint++) {
390390
/*--- Reset the Grid Velocity to zero if there is no grid movement ---*/
391-
if (Kind_Grid_Movement == GUST && !(config->GetFSI_Simulation())) {
391+
if (Kind_Grid_Movement == GUST && !(config->GetFSI_Simulation()) && !(config->GetDynamic_Grid())) {
392392
for (iDim = 0; iDim < nDim; iDim++) geometry[iMGlevel]->nodes->SetGridVel(iPoint, iDim, 0.0);
393393
}
394394

0 commit comments

Comments
 (0)