Closed tomchor closed 3 years ago
U
is a horizontal average, so it does not have a horizontal position -- its a 1D profile and only has a z-location. However, the 3D u
does have a horizontal position, so we do have to interpolate u
.
Thanks! I just wanna make I understand what the interpolations are doing since I'm starting to write my own (more general) kernels in a separate repo.
I'm not 100% familiar with all the interpolation functions that exist, so forgive me if I'm missing something obvious. I'm trying to base myself off of the Shear Production term written here
https://github.com/CliMA/LESbrary.jl/blob/fcf704446c62dbc17fe89f52b641c90f40fbdce3/src/TurbulenceStatistics/shear_production.jl#L51-L59
If we consider, for example this call specifically:
https://github.com/CliMA/LESbrary.jl/blob/fcf704446c62dbc17fe89f52b641c90f40fbdce3/src/TurbulenceStatistics/shear_production.jl#L57
Part of what this line is doing is differentiating
U
wrtz
(thus transforming it from a quantity that lies on(F, C, C)
to(F, C, F)
) and then multiplying byw
(which lies on(C, C, F)
). Is my assessment correct?Isn't this calculation wrong since they're at different positions? The only way I can see that this can be correct is if you assume that that
U
is a horizontal average and has nox
collocation. Is that the case?Thanks!
PS: I'm using
C
andF
as abbreviations forCell
andFace
.