I have a solved OpenFoam case with a 3D seabed geometry embedded in a mesh using snappyHexMesh. I would like to extract flow velocities 1 m above the surface (1m higher than the surface in z direction at each cell), which are stored in internal mesh. I would like to simply build a slice which is 1 m higher than a surface at every point (cell), and then export the values to create an ASCII raster for GIS purposes. Is there an easy way to do it?
As I have received a few private messages regarding the solution to this question, let me share my approach:
- Export your surface to csv as points with coordinates
- Add +1 or any other desired height above the surface to the column corresponding to the z coordinate
- Import the csv to paraview, use table to points, set Z column = this is your z+1 column.
- Resample with dataset. Your imported points are the destination dataset, the original internal mesh is the source data array.
Hope this helps somebody.
Good method, but it can be done even easier.
- Import the ground surface as ply / stl / surface mesh (or extract surface within paraview)
- transform upwards 1m
- resample with dataset with transformed surface as destination mesh
Very useful to get the wind velocity at pedestrian level.
I like this, Frank… nice and easy.