Mercurial > repos > public > sbplib_julia
comparison src/Grids/mapped_grid.jl @ 1745:2f7974367cd3 feature/grids/curvilinear
Add TBD
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 11 Sep 2024 14:11:11 +0200 |
parents | c38eead8be17 |
children | 44faa334adc6 |
comparison
equal
deleted
inserted
replaced
1744:c38eead8be17 | 1745:2f7974367cd3 |
---|---|
92 end | 92 end |
93 end | 93 end |
94 # TBD: Should this be changed to calculate sqrt(g) instead? | 94 # TBD: Should this be changed to calculate sqrt(g) instead? |
95 # This would make it well defined also for n-dim grids embedded in higher dimensions. | 95 # This would make it well defined also for n-dim grids embedded in higher dimensions. |
96 # TBD: Is there a better name? metric_determinant? | 96 # TBD: Is there a better name? metric_determinant? |
97 # TBD: Is the best option to delete it? | |
97 | 98 |
98 function metric_tensor(g::MappedGrid) | 99 function metric_tensor(g::MappedGrid) |
99 return map(jacobian(g)) do ∂x∂ξ | 100 return map(jacobian(g)) do ∂x∂ξ |
100 ∂x∂ξ'*∂x∂ξ | 101 ∂x∂ξ'*∂x∂ξ |
101 end | 102 end |