Using Blender to create solids for Gerris

From Gerris

Revision as of 13:51, 14 March 2008; view current revision
←Older revision | Newer revision→
Jump to: navigation, search


Using Blender to create solids for Gerris

This is a short introduction to using Blender for creation of solid bodies for inclusion in Gerris simulation.

How to create a wing

From this
From this
To this
To this

Start with an empty scene (camera and light is OK)

Add Bezier curve

<space> -> add -> curve -> bezier curve


Close the curve



Subdivide it

(curve) -> segments -> subdivide


Disable the Back and Front for the curve

De-select "Back" and "Front" (this is done in bottom window in blender)

Extrude the curve

Set the extrude level to 1

Convert the curve to mesh

Switch to object mode - <TAB>.

(object) -> convert object type: Mesh



Close the top and bottom parts of the mesh

Switch to the side view

<B> - border select (select the top nodes)

(mesh) -> faces -> fill


<B> - border select (select the bottom nodes)


Recalculate normals


Now you should have all mesh nodes selected.

(mesh) -> normals -> recalculate inside

Export the mesh in STL format

<TAB> - go to object mode

Select the wing...

(File) -> Export -> STL

Save the file as wing.stl


Convert from .stl to .gts

stl2gts < wing.stl > wing.gts

Transform the wing.gts

transform -o < wing.gts | transform -t 1 > blender_1.gts 

The first transform normalizes the wing, the 2nd one moves it to 2nd cell along X axis. The resulting file "blender_1.gts" is ready for use in Gerris simulation.

Example simulation

gfs gfv gts

The result
The result
Personal tools