sfepy/sfepy — Issue #21: automatic mesh generation
Author: rc
Created: 2012-01-30 10:24:05+00:00
State: open

Attached find a first draft of the mesh utils patch.

Usage
-----

Study convert.py, that shows a simple example:

$ python convert.py
General geometry information:
points: 7
lines: 18
surfaces: 20
volumes: 8
Physical entities:
surfaces (boundary conditions):
1: surface numbers [15, 29, 39, 53, 63, 77, 87, 100]
volumes (regions):
100: volume numbers [1, 2, 3, 4, 5, 6, 7, 8]
Generating mesh using /usr/bin/tetgen -pQAq1.000000 -a0.300000 tmp/t.poly
Reading mesh from tetgen...
nodes: 100% |###########################################| Time:
00:00:00
elements: 100% |########################################| Time:
00:00:00
BC: 100% |##############################################| Time:
00:00:00
nodes: 330
elements: 1224
Writing mesh to tmp/t12.msh: 100% |#############################| Time:
00:00:00

You need gmsh and tetgen executables to have installed. It takes
database/t1.geo.sphere-tri, runs it through tetgen, parses the result back,
and writes the mesh to tmp/t12.msh, which is and input file for gmsh.

Now I need to write a new output function to export to the .mesh format.

Migrated from http://code.google.com/p/sfepy/issues/detail?id=17

earlier comments

ondrej.certik said, at 2008-02-07T23:38:19.000Z:

License note: I relicense all my code to new BSD. And the progressbar is relicensed
too by it's author. There are some old license headers, that should be fixed.

robert.cimrman said, at 2008-02-08T14:37:22.000Z:

So I will move the progressbar into sfe/base/, ok?

Afternoon is here = maintenance of our network, my e-mails stop working...

ondrej.certik said, at 2008-02-08T14:41:57.000Z:

Yes. And fix it's license according to:

No problem. Sure I can license it under BSD.

I hereby relicense my progressbar module under BSD license. The LGPL
is still valid so anyone can use it under either LGPL or BSD licenses.

You can include this copyright notice in this version:

progressbar - Text progressbar library for python
Copyright (c) 2008 Nilton Volpato

All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

a. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
b. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
c. Neither the name of the author nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE.

Thanks,
-- Nilton

robert.cimrman said, at 2008-02-08T15:00:41.000Z:

done.

ondrej.certik said, at 2008-02-14T23:09:31.000Z:

I noticed you committed the patch. We need to change it's license (it's using GPL) -
I as the author can easily do that - let's use the same license as sfepy, i.e. BSD.

And also more refactoring is needed, before this issue can be closed.

robert.cimrman said, at 2008-02-15T16:29:33.000Z:

Ondrej came to my place, it is done.