Extracting values 1m above a surface


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:

  1. Export your surface to csv as points with coordinates
  2. Add +1 or any other desired height above the surface to the column corresponding to the z coordinate
  3. Import the csv to paraview, use table to points, set Z column = this is your z+1 column.
  4. 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.

  1. Import the ground surface as ply / stl / surface mesh (or extract surface within paraview)
  2. transform upwards 1m
  3. resample with dataset with transformed surface as destination mesh

Very useful to get the wind velocity at pedestrian level.

1 Like

I like this, Frank… nice and easy.