Skip to content

Commit

Permalink
use positive definit Jacobian J=h/|Bp|
Browse files Browse the repository at this point in the history
  • Loading branch information
HarukiST committed Sep 20, 2024
1 parent bc2e893 commit 575226c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hypnotoad/core/mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -1029,7 +1029,7 @@ def calcMetric(self):
self.g13 = -self.I * self.g11
self.g23 = -self.dphidy / self.hy**2

self.J = self.hy / self.Bpxy
self.J = self.hy / numpy.abs(self.Bpxy)

self.g_11 = 1.0 / self.g11 + (self.I * self.Rxy) ** 2
self.g_22 = self.hy**2 + (self.Rxy * self.dphidy) ** 2
Expand Down Expand Up @@ -1062,7 +1062,7 @@ def calcMetric(self):
- self.Rxy * numpy.abs(self.Bpxy) * self.I * self.tanBeta / self.hy
)

self.J = self.hy / self.Bpxy
self.J = self.hy / numpy.abs(self.Bpxy)

self.g_11 = (
1.0 / (self.Rxy * self.Bpxy * self.cosBeta) ** 2
Expand Down

0 comments on commit 575226c

Please sign in to comment.