Replies: 3 comments
-
In Nek, we have gslib/findpt that interpolates the solutions onto given (arbitrary) points. The other direction, which is a J^T from the existed interpolation matrix J, is not currently supported. There are people working on that though. You can always go through all points, locate it to corresponding element, then do interpolation, sums the contribution from all points. But, this could be expansive depending on your implementation, especially, how the data binning is done. I suggest to do it offline and test it with Nek5000 first. If you only need this once as the initial condition and the size is not large, I suggest to do this in MATLAB or python (You can find readers from KTH group https://github.com/eX-Mech/) Alternatively, if the points cloud can be represented by a finite elements mesh (Delaney triangulation, then converting into SEM mesh by tet2hex), then you can create a Nek restart file containing such arbitrary SEM mesh and call gfldr. |
Beta Was this translation helpful? Give feedback.
-
Why don't you use a linear forcing method (e.g. https://pubs.aip.org/aip/pof/article-abstract/28/3/035114/316071/Constant-energetics-physical-space-forcing-methods?redirectedFrom=fulltext) to generate a HIT field. |
Beta Was this translation helpful? Give feedback.
-
@yslan Thank you very much for the clarification and the detailed answer. I decided to implement a function in the .udf file that evaluates the physical space velocities on the fly. Certainly not fast, but as it is only required at the initiation of the simulation, it is alright. @stgeke Yes, I am actually trying to implement linear forcing. Just wanted to try a sane initial condition instead of starting from a uniform velocity. I understand that the effect of the initial condition should vanish if the forcing kernel I have implemented is correct. I am new to nekRS and trying to modify things and I am getting used to writing the occa kernels for some interesting things I am doing to the standard NS. I appreciate your help and comments. With sincere regards, |
Beta Was this translation helpful? Give feedback.
-
Hello everyone,
I am trying to set up a homogeneous isotropic turbulence case. I want to set the initial conditions from a model energy spectrum. I have a code that spits out coordinates and velocities in a point cloud. Is there a way to set the initial conditions from this file that contains x,y,z,vel_x, vel_y, and vel_z point cloud? I am assuming there would be a requirement to interpolate from the point cloud to the quadrature points. If anyone has done this case and has a simpler way of doing this, I would be grateful to hear their suggestion as well.
With sincere regards,
Makrand
Beta Was this translation helpful? Give feedback.
All reactions