Mapping plot3d data
I would like to map channel flow data from a 33 x 33 x 33 mesh in plot3d format on an OpenFOAM mesh, as initial condition. I have the geometry file and the .q file belonging to it.
Now, the grid can be easily converted to OpenFOAM format using the plot3dToFoam utility, but I wouldn't know where to start to generate a OpenFOAM U file from the plot3d .q file.. So I was wondering if somebody might have experience with this type of conversion, and could help me out on a viable strategy / solution?
Looking forward to your reply,
I recently posted something on this issue, as I was struggeling the same.
So I wrote a small utility to convert a csv file to a plot3d file (although the format is not complete plot3D: is is just a structured x y z vx vy vz column file, with the dimensions nx ny nz in the first line. Just look at the code. Then I read this file using another little utility plot3DmapField which I based on plot3dToFoam. May be you want to modify the code your needs.
Although I'm a little month late, I would still like to thank you for your reply!
I managed to "circumvent" the issue I had up until now, but this might give me the opportunity to tackle it head-on. Thanks a lot!
|All times are GMT -4. The time now is 12:40.|