SU2 icon indicating copy to clipboard operation
SU2 copied to clipboard

Gust direction and Grid Velocity inconsistency

Open hcOnel opened this issue 1 month ago • 2 comments

I am working on a simple gust simulation. I wanted to probe the field to see the effect of the gust (specifically the velocity field) but the velocity field does not change. After that, I learned that SU2 utilizes "Field Velocity Method (FVM)", where the Grid Velocity field is manipulated instead of the Momentum (Velocity) field. Out of curiosity, I tested gust direction as X_DIR and Y_DIR. Wierdly, the Grid Velocity magnitude contours are convected in the x-direction no matter which direction I set. More interestingly, the resultant response around the airfoil is different for x and y-directions, which looks correct. However, it is not reflected/observable in the Grid Velocity field. I am attaching an animation. Top: Grid Velocity Field Bottom: Momentum field Left: X_DIR Right: Y_DIR https://youtu.be/MmD0QJq_APo?si=MDXtE2_LrACZ-801 Version: 7.5.1

hcOnel avatar Oct 22 '26 17:10 hcOnel

I think this is expected behaviour rather than a bug. Two things are going on:

  1. GUST_DIR sets which velocity component the gust has, not the direction it travels. In CFluidIteration::SetWind_GustField the gust is written to Gust[GUST_DIR], and the grid velocity is set to -Gust. So X_DIR only changes Grid_Velocity_x, and Y_DIR only changes Grid_Velocity_y.
  2. The gust is always convected in +x at the freestream velocity (frozen gust), via x_gust = (x - GUST_BEGIN_LOC - U_inf * (t - GUST_BEGIN_TIME)) / GUST_WAVELENGTH, with U_inf the x-component of the freestream velocity.

So for X_DIR and Y_DIR the same pattern, with the same amplitude, moves downstream in x. Only the vector direction differs, which means the grid velocity magnitude is identical in both cases. Plotting Grid_Velocity_x and Grid_Velocity_y separately shows the difference.

I checked this with TestCases/gust/inv_gust_NACA0012.cfg (current develop), changing only GUST_DIR:

GUST_DIR max |Grid_Velocity_x| max |Grid_Velocity_y| gust front x, step 19 → 39
X_DIR 2.3767 0 1.86 → 3.85
Y_DIR 0 2.3767 1.86 → 3.85

The amplitude is GUST_AMPL, and the front moves 20 · dt · U_inf ≈ 2.0 between the two outputs.

The velocity (momentum) field not changing directly is also expected with the Field Velocity Method: the gust only enters through the grid velocity, and the gust velocity seen by the flow is minus the grid velocity. The airfoil response differs between X_DIR and Y_DIR because a streamwise gust and a vertical gust act differently on the airfoil.

Syphonicc avatar Oct 22 '26 18:10 Syphonicc

@Syphonicc I reviewed the gust topic from my aeroelasticity books together with the SU2 code, and it makes sense now. Your explanation helped very much. Thank you. Best regards!

hcOnel avatar Nov 08 '26 09:11 hcOnel