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

examples/fluids: unstructured distance function #1081

Open
jedbrown opened this issue Oct 28, 2022 · 0 comments
Open

examples/fluids: unstructured distance function #1081

jedbrown opened this issue Oct 28, 2022 · 0 comments

Comments

@jedbrown
Copy link
Member

Computing distance from walls is necessary for some turbulence models and to create initial conditions for which the initial transient is not too extreme. The Eikonal equation offers a proper way to solve this equation, but it's difficult to solve scalably using variational methods. This paper compares several strategies and suggests a simple method:

  1. Solve $-\nabla^2 \phi = 1$ with boundary condition $\phi=0$ on no-slip walls.
  2. Compute distance as $d = \sqrt{\lVert \nabla \phi \rVert^2 + 2\phi} - \lVert \nabla \phi \rVert$.

This is accurate near walls, but not in the far field (where accurate distance isn't physically important). This requires solving one Poisson system and then evaluating the solution at quadrature points, which is where distance is needed in a turbulence model. If "nodal" distance is required, it can be projected into a nodal space using a (lumped) $L^2$ projection.

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

No branches or pull requests

2 participants