comparison src/Grids/mapped_grid.jl @ 1682:4ce9cb21220c feature/grids/curvilinear

Fix naming of metrix tensor functions
author Jonatan Werpers <jonatan@werpers.com>
date Thu, 11 Jul 2024 11:24:52 +0200
parents 5ea0299b45b4
children 22a9992471be
comparison
equal deleted inserted replaced
1681:5ea0299b45b4 1682:4ce9cb21220c
67 return map(jacobian(g)) do ∂x∂ξ 67 return map(jacobian(g)) do ∂x∂ξ
68 det(∂x∂ξ) 68 det(∂x∂ξ)
69 end 69 end
70 end 70 end
71 71
72 function geometric_tensor(g::MappedGrid) 72 function metric_tensor(g::MappedGrid)
73 return map(jacobian(g)) do ∂x∂ξ 73 return map(jacobian(g)) do ∂x∂ξ
74 ∂x∂ξ'*∂x∂ξ 74 ∂x∂ξ'*∂x∂ξ
75 end 75 end
76 end 76 end
77 77
78 function geometric_tensor_inverse(g::MappedGrid) 78 function metric_tensor_inverse(g::MappedGrid)
79 return map(jacobian(g)) do ∂x∂ξ 79 return map(jacobian(g)) do ∂x∂ξ
80 inv(∂x∂ξ'*∂x∂ξ) 80 inv(∂x∂ξ'*∂x∂ξ)
81 end 81 end
82 end 82 end
83 83