Skip to content

Two aligned wind turbine example case#313

Draft
ia267 wants to merge 5 commits into
xcompact3d:mainfrom
ia267:309_two_aligned_wind_turbines_examples
Draft

Two aligned wind turbine example case#313
ia267 wants to merge 5 commits into
xcompact3d:mainfrom
ia267:309_two_aligned_wind_turbines_examples

Conversation

@ia267

@ia267 ia267 commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

Created the flow case for the wind turbine example, including an interface for the turbine models (to be implemented later and only contains a dummy model for now).

changes

  • turbine_model_t - abstract interface for turbine forcing models, with methods init, update, project_forces, write_output. Ships with a no-op dummy (turbine_dummy_t, also the iturbine=0 model) so the case runs before any real model exists.
  • wind_turbine case - uniform inflow / convective outflow in x, using a polymorphic turbine_model_t. The case owns the turbine object and is the only place the iturbine switch appears (at allocation time); after that it calls the polymorphic turbine with no branching.
  • iSVV / hyperviscous dissipation - added c_nu and nu0_nu for the compact6-hyperviscous scheme. This is the implicit LES the two_turbines case uses ( Incompact3d jles=4) - implicit numerical dissipation, not an explicit SGS model (the explicit Smagorinsky LES issue is Add Smagorinsky LES with wall damping #321). These params are optional.
    • Boundary conditions - Dirichlet / periodic / periodic (matches the cylinder case). In Incompact3d the example uses free-slip walls in y and z, but the FFT Poisson solver currently requires z periodic and supports only a single MPI rank in non-periodic directions.

Closes #309

@ia267 ia267 added this to the Wind Turbine Example milestone Jun 9, 2026
@ia267 ia267 self-assigned this Jun 9, 2026
@ia267 ia267 added the examples Example simulation case label Jun 9, 2026
@ia267 ia267 force-pushed the 309_two_aligned_wind_turbines_examples branch from 7933e0b to 0b7249a Compare June 9, 2026 08:28
@ia267 ia267 force-pushed the 309_two_aligned_wind_turbines_examples branch 2 times, most recently from d2d578a to fb3db44 Compare June 23, 2026 14:32
@ia267 ia267 force-pushed the 309_two_aligned_wind_turbines_examples branch from fb3db44 to c29a3b2 Compare July 7, 2026 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

examples Example simulation case

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add two aligned wind turbines example case

1 participant