Exawind / amr-wind

AMReX-based structured wind solver
https://exawind.github.io/amr-wind
Other
103 stars 78 forks source link

Refinement of 2D airfoil simulations #994

Closed ET14 closed 2 months ago

ET14 commented 3 months ago

Hello, I am running 2D airfoil simulations in Amr-Wind using the FixedWingLine actuator module. By only defining in the y-direction a single LES gridpoint, unit width Ly and periodic BCs this setup allows for simulating a 2D airfoil in the x-z plane. Since convergence of the results requires a very large domain, it would be desirable to refine the domain in the x and z coordinates, while keeping a single grid point in the y-direction. Is there a way in Amr to specify different refinement ratios for different coordinate directions or is this fundamentally not allowed by the code structure?

Best, Emanuel

marchdf commented 3 months ago

amrex currently doesn't support that (to the best of my knowledge). It is unfortunate that we don't have a true "2D" capability in amr-wind. We should probably add that to the backlog...

tonyinme commented 3 months ago

@ET14 , what happens when you try to refine your simulation using the standard refinement in a 2D mesh?

ET14 commented 3 months ago

@tonyinme Then it cannot handle the single grid point in the y-direction when it tries to refine. The simulation does not crash, but all residuals are just zero.

tonyinme commented 3 months ago

@ET14 , thanks for explaining. @mbkuhn suggested that you can try running with 2 cells in the y direction and set the blocking factor in that direction to 2. That should be an almost 2D problem :) The gradients in the y direction should be zero, so I would not expect the code to do anything in that direction.

github-actions[bot] commented 2 months ago

This issue is stale because it has been open 30 days with no activity.

marchdf commented 2 months ago

@ET14 can you provide an update here or close this issue? thanks!