You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
I have a question about how
Inti.parametric_curve
is oriented.Let us consider the droplet shape:
Q
gives the expected outward normal.However, if I consider the droplet shape with a re-entrant corner:
The normal vector in
Q
is the inward normal.My question is:
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.The text was updated successfully, but these errors were encountered: