Using Blender to create solids for Gerris

From Gerris

(Difference between revisions)
Jump to: navigation, search
Revision as of 13:51, 14 March 2008
Prhlava (Talk | contribs)

← Previous diff
Revision as of 14:13, 14 March 2008
Prhlava (Talk | contribs)

Next diff →
Line 2: Line 2:
This is a short introduction to using [http://www.blender.org Blender] for creation of solid bodies for inclusion in Gerris simulation. This is a short introduction to using [http://www.blender.org Blender] for creation of solid bodies for inclusion in Gerris simulation.
=== How to create a wing === === How to create a wing ===
-[[Image:blender_1_001.jpeg|frame|From this]] 
- 
-[[Image:blender_1_009.jpeg|frame|To this]] 
- 
==== Start with an empty scene (camera and light is OK) ==== ==== Start with an empty scene (camera and light is OK) ====
 +[[Image:blender_1_001.jpeg|thumb|frame|Start]]
==== Add Bezier curve ==== ==== Add Bezier curve ====
Line 14: Line 11:
</pre> </pre>
-[[Image:blender_1_002.jpeg]]+[[Image:blender_1_002.jpeg|thumb]]
==== Close the curve ==== ==== Close the curve ====
Line 22: Line 19:
</pre> </pre>
-[[Image:blender_1_003.jpeg]]+[[Image:blender_1_003.jpeg|thumb]]
==== Subdivide it ==== ==== Subdivide it ====
Line 30: Line 27:
</pre> </pre>
-[[Image:blender_1_004.jpeg]]+[[Image:blender_1_004.jpeg|thumb]]
==== Disable the Back and Front for the curve ==== ==== Disable the Back and Front for the curve ====
Line 46: Line 43:
(object) -> convert object type: Mesh (object) -> convert object type: Mesh
-[[Image:blender_1_005.jpeg]]+[[Image:blender_1_005.jpeg|thumb]]
-[[Image:blender_1_006.jpeg]]+[[Image:blender_1_006.jpeg|thumb]]
==== Close the top and bottom parts of the mesh ==== ==== Close the top and bottom parts of the mesh ====
Line 61: Line 58:
(mesh) -> faces -> fill (mesh) -> faces -> fill
-[[Image:blender_1_007.jpeg]]+[[Image:blender_1_007.jpeg|thumb]]
<pre> <pre>
Line 68: Line 65:
</pre> </pre>
-[[Image:blender_1_008.jpeg]]+[[Image:blender_1_008.jpeg|thumb]]
==== Recalculate normals ==== ==== Recalculate normals ====
Line 80: Line 77:
(mesh) -> normals -> recalculate inside (mesh) -> normals -> recalculate inside
 +
 +[[Image:blender_1_009.jpeg|thumb|frame|The result]]
==== Export the mesh in STL format ==== ==== Export the mesh in STL format ====
Line 113: Line 112:
[[media:blender_1.gts|gts]] [[media:blender_1.gts|gts]]
-[[Image:blender_1_simulation.jpeg|frame|The result]]+[[Image:blender_1_simulation.jpeg|thumb|frame|The result]]

Revision as of 14:13, 14 March 2008

Contents

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

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

Start
Start

Add Bezier curve

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

Close the curve

<TAB>
<C>
Enlarge

Subdivide it

(curve) -> segments -> subdivide
Enlarge

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

Enlarge
Enlarge

Close the top and bottom parts of the mesh

Switch to the side view

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

(mesh) -> faces -> fill

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

Recalculate normals

<A>
<A>

Now you should have all mesh nodes selected.

(mesh) -> normals -> recalculate inside

The result
The result

Export the mesh in STL format

<TAB> - go to object mode

Select the wing...

(File) -> Export -> STL

Save the file as wing.stl

STL to GTS

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
communication