halos and interpolation #2689
-
I have a couple of questions related to interpolation of results near boundaries and the effect of halo regions. If I use Oceananigans's For the case of interpolating near boundaries though, I was wondering if it is advisable to use the halo region data for interpolation? From what I understand the halos are there for calculations at the boundaries to maintain higher order accuracy throughout the domain. Is there any reason not to utilize them for lower order linear interpolation to align velocities and scalars in post-processing? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 10 replies
-
Hello! If you interpolate near the boundaries halo points should be used to interpolate. Take care that in case of The interpolation on a Can you provide an example for what setting make the interpolation fails?
|
Beta Was this translation helpful? Give feedback.
Hello!
If you interpolate near the boundaries halo points should be used to interpolate. Take care that in case of
Bounded
domains only one halo point is filled (since we cannot preserve high order in bounded domains).The interpolation on a
Face
andCenter
is, indeed, still doing a linear interpolation that but that should return the correct value regardless.Can you provide an example for what setting make the interpolation fails?
If I run this script the interpolation I am not able to reproduce the error