Sig WindE/Getting Processing Terrain Data

From OpenFOAMWiki
< Sig WindE
Revision as of 10:00, 9 August 2012 by Cperalta (Talk | contribs)

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.


(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].