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

Vorticity to velocity #25

Open
GerasimovIV opened this issue Jul 5, 2023 · 1 comment
Open

Vorticity to velocity #25

GerasimovIV opened this issue Jul 5, 2023 · 1 comment

Comments

@GerasimovIV
Copy link

Hello, thank you for you work. I have a misunderstanding with the obtaining velocity (for Navier Stokes equation) from given vorticity part. We actually need it for loss and you just wrote in the paper that it is easy, can you explain in more detail? If I understand correctly, that means we have to construct the inverse operator for curl, am I right? But it is not too easy 😅, or I something missed?

@zongyi-li
Copy link
Collaborator

For the 2d periodic Navier-Stokes equation, the velocity can be computed by first getting the stream function. The velocity is the derivative of the stream function (

f_h = w_h / lap
).

In general, for non-periodic case (like the cavity flow), it's non-trivial to get the velocity from vorticity. In this case we will the velocity-pressure formulation. (

E1 = outt[..., 0] + out[..., 0]*outx[..., 0] + out[..., 1]*outy[..., 0] + outx[..., 2] - 1/Re*(outxx[..., 0] + outyy[..., 0])
)

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