Sig WindE/Getting Processing Terrain Data
1 short description
The aim of this page is to describe instructions and tools on how to generate terrain data for use with OF, in particular to model ABL flows.
2 Terrain modelling
(0) Matlab tool for processing a cloud of points.
This is a nice Matlab tool to generate an STL file from a cloud of points. Typical usage is as simple as: data=load('data.xyz');
x=data(:,1);
y=data(:,2);
z=data(:,3);
stlwrite('landscape.stl',x,y,z,'mode','ascii');
The tool is here: File:Stlwrite.zip. Another Matlab tool, for data in surface format (ie, as in Matlab's surf function), can be found here: File:Surf2stl.m.gz. An example STL file, generated using this tool with the set of data from this link [1], can be found here: File:AskerveinHill20m.stl.gz.
(1) Landscapes based on real life maps, using Blender.
There is a description here on how to use Blender to generate a landscape based on real maps: [2].
3 Roughness length modelling
(0) an OpenFoam utility for reading WAsP map files and converting to roughness height in a OF dictionary format and in the nut roughWall BC
A page describing the utility can be found here Contrib_roughnessToFoam