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

Laplace solution #1360

Draft
wants to merge 27 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
c32b2aa
add kernels for solving Laplace equation
dpanici May 29, 2024
b74446f
Merge branch 'master' into dp/laplace
unalmis Nov 8, 2024
93710e9
Merge branch 'master' into dp/laplace
unalmis Nov 12, 2024
acd8516
Add compute_B_laplace
unalmis Nov 13, 2024
38bb3ed
Fixing comment sign
unalmis Nov 13, 2024
a437b8a
Clean up API
unalmis Nov 16, 2024
300e95b
Merge branch 'master' into dp/laplace
unalmis Nov 16, 2024
e8738ec
Merge branch 'master' into dp/laplace
unalmis Nov 20, 2024
20cec4c
Merge branch 'master' into dp/laplace
unalmis Nov 23, 2024
94b1606
Debugging
unalmis Nov 24, 2024
ac9c1f8
Add baseline image for incorrect laplace test
unalmis Nov 24, 2024
1151007
Add tokamak test
unalmis Nov 25, 2024
9d69d47
Fix test
unalmis Nov 25, 2024
2ef0ad1
debugging 2
unalmis Nov 25, 2024
8fe40d0
Clean up unneded compute quantities
unalmis Nov 25, 2024
45405b6
.
unalmis Nov 25, 2024
5896589
Merge branch 'master' into dp/laplace
dpanici Dec 4, 2024
e937867
Merge branch 'master' into dp/laplace
unalmis Dec 5, 2024
6dbf58b
New method; still not working
unalmis Dec 6, 2024
5ad4a31
Correct normalization from previous commit
unalmis Dec 6, 2024
038a2df
Merge branch 'master' into dp/laplace
unalmis Dec 6, 2024
15399ae
Fix factor of in new method
unalmis Dec 6, 2024
9fe6337
Writing up dommaschk test
unalmis Dec 6, 2024
bc768b4
Apparent bug in transforms
unalmis Dec 8, 2024
17f9aba
Dommaschk test stellarator boundary bdotn
unalmis Dec 8, 2024
1710819
Merge branch 'master' into dp/laplace
unalmis Dec 9, 2024
bc95043
Merge branch 'master' into dp/laplace
unalmis Dec 11, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions desc/compute/_surface.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ def _Phi_z_CurrentPotentialField(params, transforms, profiles, data, **kwargs):
],
)
def _K_sup_theta_CurrentPotentialField(params, transforms, profiles, data, **kwargs):
data["K^theta"] = -data["Phi_z"] * (1 / data["|e_theta x e_zeta|"])
data["K^theta"] = -data["Phi_z"] / data["|e_theta x e_zeta|"]
return data


Expand All @@ -484,7 +484,7 @@ def _K_sup_theta_CurrentPotentialField(params, transforms, profiles, data, **kwa
],
)
def _K_sup_zeta_CurrentPotentialField(params, transforms, profiles, data, **kwargs):
data["K^zeta"] = data["Phi_t"] * (1 / data["|e_theta x e_zeta|"])
data["K^zeta"] = data["Phi_t"] / data["|e_theta x e_zeta|"]
return data


Expand All @@ -507,9 +507,10 @@ def _K_sup_zeta_CurrentPotentialField(params, transforms, profiles, data, **kwar
],
)
def _K_CurrentPotentialField(params, transforms, profiles, data, **kwargs):
data["K"] = (data["K^zeta"] * data["e_zeta"].T).T + (
data["K^theta"] * data["e_theta"].T
).T
data["K"] = (
data["K^zeta"][:, jnp.newaxis] * data["e_zeta"]
+ data["K^theta"][:, jnp.newaxis] * data["e_theta"]
)
return data


Expand Down
Loading
Loading