Skip to content

Simulating Gusts in 3D #1319

@mandralis

Description

@mandralis

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:

  1. SU2/SU2_CFD/src/iteration_structure.cpp::CFluidIteration::SetWind_GustField
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions