Skip to content

Commit

Permalink
Mesh added
Browse files Browse the repository at this point in the history
  • Loading branch information
certik committed Aug 4, 2009
1 parent f7dc0dc commit 8ffa68e
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
8 changes: 8 additions & 0 deletions show_mesh.py
@@ -0,0 +1,8 @@
#! /usr/bin/env python

import sys
from hermes2d import Mesh

m = Mesh()
m.load(sys.argv[1])
m.plot(lib="mpl", method="simple")
20 changes: 20 additions & 0 deletions square.mesh
@@ -0,0 +1,20 @@
vertices =
{
{ -5, -5 },
{ 5, -5 },
{ 5, 5 },
{ -5, 5 }
}

elements =
{
{ 0, 1, 2, 3, 0 }
}

boundaries =
{
{ 0, 1, 1 },
{ 1, 2, 1 },
{ 2, 3, 1 },
{ 3, 0, 1 }
}

0 comments on commit 8ffa68e

Please sign in to comment.