Package meshpy :: Module gmsh_reader
[hide private]
[frames] | no frames]

Module gmsh_reader

source code

Reader for the GMSH file format.


Copyright: Copyright (C) 2009 Xueyu Zhu, Andreas Kloeckner

License: Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Classes [hide private]
  LineFeeder
  GmshElementBase
..
  GmshPoint
  GmshIntervalElement
  GmshIncompleteTriangularElement
  GmshTriangularElement
  GmshTetrahedralElement
  GmshMeshReceiverBase
..
  GmshMeshReceiverNumPy
GmshReceiver that emulates the semantics of :class:`meshpy.triangle.MeshInfo` and :class:`meshpy.tet.MeshInfo` by using similar fields, but instead of loading data into ForeignArrays, load into NumPy arrays.
  GmshFileFormatError
Functions [hide private]
 
generate_triangle_vertex_tuples(order) source code
 
generate_triangle_edge_tuples(order) source code
 
generate_triangle_volume_tuples(order) source code
 
read_gmsh(receiver, filename, force_dimension=None)
Read a gmsh mesh file from *filename* and feed it to *receiver*.
source code
 
generate_gmsh(receiver, source, dimensions, order=None, other_options=[], extension="geo", gmsh_executable="gmsh", force_dimension=None)
Run gmsh and feed the output to *receiver*.
source code
 
parse_gmsh(receiver, line_iterable, force_dimension=None)
:arg source: an instance of :class:`LiteralSource` or :class:`FileSource` :arg receiver: This object will be fed the entities encountered in reading the GMSH file.
source code
Variables [hide private]
  __doc__ = ...
Function Details [hide private]

read_gmsh(receiver, filename, force_dimension=None)

source code 
Read a gmsh mesh file from *filename* and feed it to *receiver*.

:param receiver: Implements the :class:`GmshMeshReceiverBase` interface.
:param force_dimension: if not None, truncate point coordinates to
    this many dimensions.

generate_gmsh(receiver, source, dimensions, order=None, other_options=[], extension="geo", gmsh_executable="gmsh", force_dimension=None)

source code 

Run gmsh and feed the output to *receiver*.

:arg source: an instance of :class:`LiteralSource` or :class:`FileSource` :param receiver: Implements the :class:`GmshMeshReceiverBase` interface.

parse_gmsh(receiver, line_iterable, force_dimension=None)

source code 

:arg source: an instance of :class:`LiteralSource` or :class:`FileSource`
:arg receiver: This object will be fed the entities encountered in reading the
    GMSH file. See :class:`GmshMeshReceiverBase` for the interface this
    object needs to conform to.
:param force_dimension: if not None, truncate point coordinates to this many
    dimensions.


Variables Details [hide private]

__doc__

Value:
"""
.. exception:: GmshFileFormatError

Element types
-------------

.. autoclass:: GmshElementBase
.. autoclass:: GmshPoint
...