GLL - GLL interpolation #2255
-
|
I have about a 1000 field files of turbulent channel flow data with 18,18,18 elements in x,y and z directions. Is it possible to interpolate them into 9,18,9 (x,y,z) within neko (can I use map_to_equidistant with some modifications)? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
|
In principle yes, but I would probably use the python package pysemtools for this sort of task. But with pure neko, for some field i out of your 1000 you can use it as an initial condition in a case setup with you coarser mesh, and mesh-to-mesh interpolation can be performed. See the docs for initial conditions. Then, at the beginning of the simulation a field file with the initial conditions will be saved, which will contain the interpolated result. If you do that 1000 times, once for each of your field, you are done :). I guess it is fairly easy to automate with python thanks to the input to neko being json. |
Beta Was this translation helpful? Give feedback.
In principle yes, but I would probably use the python package pysemtools for this sort of task. But with pure neko, for some field i out of your 1000 you can use it as an initial condition in a case setup with you coarser mesh, and mesh-to-mesh interpolation can be performed. See the docs for initial conditions. Then, at the beginning of the simulation a field file with the initial conditions will be saved, which will contain the interpolated result. If you do that 1000 times, once for each of your field, you are done :). I guess it is fairly easy to automate with python thanks to the input to neko being json.