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

Orientation of Inti.parametric_curve() #92

Open
fmonteghetti opened this issue Oct 3, 2024 · 1 comment
Open

Orientation of Inti.parametric_curve() #92

fmonteghetti opened this issue Oct 3, 2024 · 1 comment
Assignees
Labels
bug Something isn't working documentation Improvements or additions to documentation

Comments

@fmonteghetti
Copy link
Collaborator

I have a question about how Inti.parametric_curve is oriented.

Let us consider the droplet shape:

   line_droplet = let
       Inti.parametric_curve(0, 2*pi) do (s,)
           SVector(
               (2/sqrt(3)) * sin(s/2),
               - sin(s)
           )
       end
   end
   # Create the mesh
   Γ = Inti.Domain(line_droplet)
   msh = Inti.meshgen(Γ; meshsize=meshsize)
   qrule = Inti.GaussLegendre(; order=qorder)
   Q = Inti.Quadrature(msh, qrule)

Q gives the expected outward normal.

However, if I consider the droplet shape with a re-entrant corner:

   line_droplet = let
       Inti.parametric_curve(0, 2*pi) do (s,)
           SVector(
               (3/2) * sin(3*s/2),
               - sin(s)
           )
       end
   end
   # Create the mesh
   Γ = Inti.Domain(line_droplet)
   msh = Inti.meshgen(Γ; meshsize=meshsize)
   qrule = Inti.GaussLegendre(; order=qorder)
   Q = Inti.Quadrature(msh, qrule)

The normal vector in Q is the inward normal.

My question is:

  • Is there a way to tell Inti that "this curve is the outer boundary of my domain and I want the outward normal" ?

At first I thought I could fix the normal by changing the orientation of the curve (i.e. using Inti.parametric_curve(2*pi,0)), but this has no effect on the normal.

@maltezfaria maltezfaria added bug Something isn't working documentation Improvements or additions to documentation labels Oct 4, 2024
@maltezfaria maltezfaria self-assigned this Oct 4, 2024
@maltezfaria maltezfaria mentioned this issue Oct 4, 2024
3 tasks
@fmonteghetti
Copy link
Collaborator Author

#93 does fix the orientation issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants