Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace surface torque calculation #38

Open
jorgensd opened this issue Mar 14, 2023 · 0 comments
Open

Replace surface torque calculation #38

jorgensd opened this issue Mar 14, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@jorgensd
Copy link
Member

Instead of using:

TEAM30/utils.py

Lines 174 to 180 in d9ed381

x = ufl.SpatialCoordinate(self.mesh)
r = ufl.sqrt(x[0]**2 + x[1]**2)
dF = 1 / mu_0 * ufl.dot(self.B, x / r) * self.B
dF -= 1 / mu_0 * 0.5 * ufl.dot(self.B, self.B) * x / r
torque = self.L * self._restriction * _cross_2D(x, dF)
torque_surface = (torque("+") + torque("-")) * dS_air
self._surface_torque = fem.form(torque_surface, form_compiler_options=self.fp, jit_options=self.jp)

we should use FEniCS/dolfinx@c348948

@jorgensd jorgensd added the enhancement New feature or request label Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant