-
Notifications
You must be signed in to change notification settings - Fork 911
Description
Hi all,
I recently discovered the Gust simulation capabilities of SU2 for two-dimensional Euler flows.
I am trying to implement the additional terms necessary for extending the method to 3D Navier-Stokes flows.
I am running into trouble when trying to implement the changes necessary to achieve this.
For now, I have began working on the two functions responsible for the gust simulations:
- SU2/SU2_CFD/src/iteration_structure.cpp::CFluidIteration::SetWind_GustField
- SU2/SU2_CFD/src/numerics/flow/flow_sources.cpp::CSourceWindGust::ComputeResidual
From what I understand the extension to 3D should simply consist in modifying the function SetWind_GustField to impose a 3D grid-velocity instead of a 2D grid velocity, and adding the appropriate source terms in the function CSourceWindGust (these can even be set to zero, just to debug the code).
However, when I try to implement these changes, I get a segmentation fault that I cannot identify.
Does someone have an idea on how to implement this feature successfully ?
PS: I have attached the modifications I made to the two functions mentioned above here:
SetWind_GustField.txt
ComputeResidual.txt