diff src/Grids/geometry.jl @ 1976:34a7e3919e9a feature/grids/geometry_functions

Implement Grids.jacobian for Circle
author Jonatan Werpers <jonatan@werpers.com>
date Tue, 25 Feb 2025 22:48:42 +0100
parents 79adad4a15d6
children 270675bb97be
line wrap: on
line diff
--- a/src/Grids/geometry.jl	Tue Feb 25 22:42:14 2025 +0100
+++ b/src/Grids/geometry.jl	Tue Feb 25 22:48:42 2025 +0100
@@ -63,6 +63,11 @@
     c + r*@SVector[cos(θ), sin(θ)]
 end
 
+function Grids.jacobian(C::Circle, θ)
+    (;r) = C
+    r*@SVector[-sin(θ), cos(θ)]
+end
+
 struct TransfiniteInterpolationSurface{T1,T2,T3,T4}
     c₁::T1
     c₂::T2