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
It'd be nice to have a (lightweight) abstraction for a "Field" in FourierFlows. The FourierFlows field could store either data in physical/grid space, or data in transform/coefficient space, or both (we should decide on semantics as well).
Type information can also be used to indicate whether the coefficient-space data is in "conjugate symmetric" form (currently we hack a fragile query into functions like parsevalsum that attempts to diagnose this fact from the size of the array with an if-statement, rather than using multiple dispatch on types).
Syntax could get a little nicer because we can define a function compute_grid_space!(field) and compute_coefficient_space!(field) functions that do fourier transforms (rather than requiring users / external packages like GeophysicalFlows to manually write FFTs).
Food for thought.
The text was updated successfully, but these errors were encountered:
It'd be nice to have a (lightweight) abstraction for a "Field" in
FourierFlows
. The FourierFlows field could store either data in physical/grid space, or data in transform/coefficient space, or both (we should decide on semantics as well).Type information can also be used to indicate whether the coefficient-space data is in "conjugate symmetric" form (currently we hack a fragile query into functions like
parsevalsum
that attempts to diagnose this fact from the size of the array with anif
-statement, rather than using multiple dispatch on types).Syntax could get a little nicer because we can define a function
compute_grid_space!(field)
andcompute_coefficient_space!(field)
functions that do fourier transforms (rather than requiring users / external packages likeGeophysicalFlows
to manually write FFTs).Food for thought.
The text was updated successfully, but these errors were encountered: