thegooglecodearchive / sfepy

Automatically exported from code.google.com/p/sfepy
0 stars 0 forks source link

automatic mesh generation #17

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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.

Original issue reported on code.google.com by ondrej.c...@gmail.com on 7 Feb 2008 at 11:34

Attachments:

GoogleCodeExporter commented 9 years ago
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.

Original comment by ondrej.c...@gmail.com on 7 Feb 2008 at 11:38

GoogleCodeExporter commented 9 years ago
So I will move the progressbar into sfe/base/, ok?

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

Original comment by robert.c...@gmail.com on 8 Feb 2008 at 2:37

GoogleCodeExporter commented 9 years ago
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

Original comment by ondrej.c...@gmail.com on 8 Feb 2008 at 2:41

GoogleCodeExporter commented 9 years ago
done.

Original comment by robert.c...@gmail.com on 8 Feb 2008 at 3:00

GoogleCodeExporter commented 9 years ago
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.

Original comment by ondrej.c...@gmail.com on 14 Feb 2008 at 11:09

GoogleCodeExporter commented 9 years ago
Ondrej came to my place, it is done.

Original comment by robert.c...@gmail.com on 15 Feb 2008 at 4:29

GoogleCodeExporter commented 9 years ago
Migrated to http://github.com/sfepy/sfepy/issues/21

Original comment by robert.c...@gmail.com on 30 Jan 2012 at 10:24