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

General wall distance functions #1171

Open
wants to merge 25 commits into
base: main
Choose a base branch
from

Conversation

AdelekeBankole
Copy link
Collaborator

No description provided.

examples/fluids/navierstokes.h Outdated Show resolved Hide resolved
examples/fluids/src/setupdm.c Outdated Show resolved Hide resolved
Copy link
Member

@jedbrown jedbrown left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Create a CeedQFunction to evaluate $\nabla v \cdot \nabla \phi - v 1$.
  • Create a CeedOperator for dmDist
  • Solve using -snes_fd_color (won't be efficient)
  • Port multigrid from examples/petsc/multigrid.c to make it efficient
  • Given solution $\phi$, compute distance $d = \sqrt{\lVert \nabla \phi \rVert^2 + 2\phi} - \lVert \nabla \phi \rVert$.
  • Visualize $d$ field and compare with analytic distance

examples/fluids/src/setupdm.c Outdated Show resolved Hide resolved
examples/fluids/src/setupts.c Outdated Show resolved Hide resolved
@AdelekeBankole
Copy link
Collaborator Author

AdelekeBankole commented Apr 7, 2023

@jedbrown, I am doing the substraction in here CeedQFunctionCreateInterior(ceed, dim, DistanceFunction - Mass_N, DistanceFunction_loc, &qf_distance_function); because this is what I want to do $F (\phi ) = A \phi - M 1$
Does this make sense?

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

Successfully merging this pull request may close these issues.

None yet

2 participants