Replies: 4 comments 14 replies
-
You can use So this looks like ut = FieldTimeSeries(filename, "u") # if you called the output "u"
vt = FieldTimeSeries(filename, "v")
n = 1 # time index
u = ut[n]
v = vt[n]
uv = Field(u * v)
compute!(uv)
You can use U = Field(Integral(u, dims=(1, 2, 3))
There aren't tools for spectral analysis in Oceananigans. Perhaps others can chime in on what's out there? |
Beta Was this translation helpful? Give feedback.
-
Hi, I am trying to implement a time varying Function Field for my diagnostic calculations for the function":
If I try to write a FunctionField so that it has a time varying component
I get the following error in the REPL
but if I instead remove the time varying component
there is no error until the model starts to run at which point I get the following error:
where it appears it throws an error for not having input for time or parameters. How do I properly include these as inputs for a FunctionField? I can see in the source code there should still be support for it but I am unclear on what I am doing wrong with regards to defining them or calling the version of FunctionField that supports time varying functions with parameters. |
Beta Was this translation helpful? Give feedback.
-
Ah that makes more sense. I think the main source of confusion was that I though I had to put the |
Beta Was this translation helpful? Give feedback.
-
Thank you for your help! |
Beta Was this translation helpful? Give feedback.
-
Hello everyone,
Let's say I run a 2D simulation and the output is the velocity fields
u
andv
. At each point in time, I have two arrays, and they characterize the velocity fields at slightly different points in space.uv
. Do I need to manually interpolate the velocity fields (in order to multiply them at one point in space) or is there a ready-made solution built into the package?Thank you in advance!
Beta Was this translation helpful? Give feedback.
All reactions