You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi~ I noticed that field.curl for 3D is not yet supported, would this function to be supported in future version? thx~
# file '_field_math.py', line 647defcurl(field: Field, at='corner'):
""" Computes the finite-difference curl of the give 2D `StaggeredGrid`. Args: field: `Field` at: Either `center` or `face`. """assert'vector'infield.shape, f"curl requires a vector field but got {field}"assertfield.spatial_rankin (2, 3), "curl is only defined in 2 and 3 spatial dimensions."iffield.is_gridandfield.is_staggeredandfield.spatial_rank==2andat=='corner':
......
eliffield.is_gridandfield.is_centeredandfield.spatial_rank==2andat=='corner':
......
raiseNotImplementedError("Only 2D curl at corner currently supported")
The text was updated successfully, but these errors were encountered:
Hi @Xayah-Hina Do you need this for staggered or centered grids, and sampled at the corners or centers?
Yes for staggered grids(velocity field) and centered grids(force fields). I also want some useful field operations like Helmholtz Decomposition for 3D vector fields. Is that possible to implement? thx~
Hi~ I noticed that
field.curl
for 3D is not yet supported, would this function to be supported in future version? thx~The text was updated successfully, but these errors were encountered: