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

Use max rho of surface to compute A(z) #1086

Merged
merged 10 commits into from
Jul 3, 2024
4 changes: 2 additions & 2 deletions desc/compute/_geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def _A_of_z(params, transforms, profiles, data, **kwargs):
label="A(\\zeta)",
units="m^{2}",
units_long="square meters",
description="Cross-sectional area as function of zeta",
description="Enclosed cross-sectional area as function of zeta",
dim=1,
params=[],
transforms={"grid": []},
Expand All @@ -196,7 +196,7 @@ def _A_of_z_FourierRZToroidalSurface(params, transforms, profiles, data, **kwarg
transforms["grid"],
data["Z"] * n[:, 2] * jnp.sqrt(data["g_tt"]),
line_label="theta",
fix_surface=("rho", 1.0),
unalmis marked this conversation as resolved.
Show resolved Hide resolved
fix_surface=("rho", jnp.max(transforms["grid"].nodes[:, 0])),
expand_out=True,
)
)
Expand Down
Loading