Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simulations of wing-like structures always have detached flow #56

Closed
tdunning opened this issue May 12, 2023 · 5 comments
Closed

Simulations of wing-like structures always have detached flow #56

tdunning opened this issue May 12, 2023 · 5 comments

Comments

@tdunning
Copy link

tdunning commented May 12, 2023

In trying to simulate a crude wing in 2-D, I always seem to have flow that detaches from the top of the wing. This happens with low and high reynolds numbers and with low and high viscosities and very low angle of attack.

Could you help me build a simple example that does this correctly?

Here is an example:

image

@weymouth
Copy link
Collaborator

This depends sensitively on the foil shape and on the resolution of the flow. I suggest implementing a real foil shape and then reproducing some test cases from previous research papers. Here's one example, but there are lots and lots.

@weymouth
Copy link
Collaborator

weymouth commented May 13, 2023

Here's the preprint of the paper. https://eprints.soton.ac.uk/369635/1/Maertens2014%2520CMAME.pdf

@weymouth
Copy link
Collaborator

I added some code a few days ago to #53 (comment) which can be immediately used to embed a parametric foil geometry, such as a NACA.

curve(t::T,thk) where T = SA[t^2,T(5thk*(0.2969t-0.126t^2-0.3516t^4+0.2843t^6-0.1036t^8))]
NACA_sdf(thk=0.12) = parametric_sdf(t->curve(t,thk))

function test()
    sdf(x,y) = NACA_sdf()(SA[x,y])
    x = range(-0.5, 2.5, length=100)
    y = range(0, 0.5, length=50)
    z = sdf.(x',y)
    contour(x,y,z,aspect_ratio=:equal, legend=false, border=:none)
    contour!(x,y,z,aspect_ratio=:equal, legend=false, border=:none,levels=[0],color=:green)
    savefig(".\\figures\\distance function.png")
end

Gives this figure:
distance function

@tdunning
Copy link
Author

tdunning commented May 22, 2023 via email

@weymouth
Copy link
Collaborator

Note that 2D simulations at low Re should give separated flow.
image
image

High Re flow is always 3D, if you don't run a 3D simulation at high Re, you
will get something like this
image

Attached, but weird.

Gabriel D Weymouth

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants