From fee8f4e8731213495a4e89969feb83197eb27f4c Mon Sep 17 00:00:00 2001 From: heister Date: Tue, 5 Feb 2013 00:48:28 +0000 Subject: [PATCH] step-49: write some text git-svn-id: https://svn.dealii.org/trunk@28226 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/examples/step-49/doc/intro.dox | 27 +++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/deal.II/examples/step-49/doc/intro.dox b/deal.II/examples/step-49/doc/intro.dox index 0de3c7654e..b118ab3a58 100644 --- a/deal.II/examples/step-49/doc/intro.dox +++ b/deal.II/examples/step-49/doc/intro.dox @@ -16,9 +16,10 @@ What this program does:

How to create meshes

GridGenerator

+ use GridGenerator (already discussed in step-1) -examples: hyper_cube, hyper_shell, ... +some examples: GridGenerator::hyper_cube(), GridGenerator::hyper_shell(), GridGenerator::hyper_ball(), GridGenerator::hyper_cube_with_cylindrical_hole() ...

construct your own mesh programmatically

@@ -26,28 +27,28 @@ example?

Import from external programs

-import mesh from file, read using GridIn +import mesh from file, read using @GridIn class list of tools: cubeit, gmsh, more? -problem: need to generate quads +problem: need to generate quads, tetrahedral meshes won't work + + +Gmsh is an open source mesh generator available at http://geuz.org/gmsh/. +It can generate unstructured 2d quad based meshes, but in 3d it can only extrude 2d meshes to get hexahedral meshes. 3D meshing of unstructured geometry is not supported. -- how to use gmsh - - 2d - - 3d: mention difficulties +A mesh is described in a text based .geo file, that can be edited by hand and can contain computations, loops, variables, etc.. It is very flexible. The mesh is generated from a surface representation, which is build from a list of line loops, which is build from a list of lines, which are build from points. +It is important that file contains "physical lines" and "physical surfaces". These give the boundary indicators and material ids for the use inside deal.II. -gmsh: -use physical lines/surfaces -indices of "Physical Line" are boundary indicators in deal.II -can write as a script or edit graphically, probably a combination +The .geo script can be written by hand or it can be generated automatically by creating objects graphically. In many cases it is best to combine both approaches. The file can be easily reloaded by pressing "reload" under the "Geometry" tab. -this is how the .geo looks like in gmsh: +This tutorial contains an example .geo file. This is how the .geo looks like in gmsh (displaying the boundary indicators): @image html gmsh_picture.png -you generate the .msh by running: +Deal.II can read the .msh format written by gmsh. You generate the .msh from the .geo by running: gmsh -2 untitled.geo -this is the mesh read from gmsh: +Now this is the mesh read from gmsh and saved again by deal.II as an image: @image html step-49.grid-1.png -- 2.39.5