openacoustics.gmsh.GeoParser Class Reference

for parsing geo file. More...

Inheritance diagram for openacoustics.gmsh.GeoParser:

Inheritance graph
[legend]

List of all members.

Public Member Functions

def viewGeo
 visualize geometry by using gmsh
def loadGeo
 load geometry file to instance
def getNodes
 read nodes from loaded geo file
def getPoints
 read point elements with elmtype(int) and physname(str)
def getTriangles
 read triangular elements with elmtype(int) and physname(str)
def getTetrahedra
 read tetrahedron elements with elmtype(int) and physname(str)
def getLines
 read line elements with elmtype(int) and physname(str)
def getElements
 read arbitrary elements with elmtype(int) and physname(str)
def getnameid
 call internally.
def readfromlines
 call internally.
def readbetween
 call internally.
def read
 call internally.
def findbetween
 call internally.
def findlines
 call internally.


Detailed Description

for parsing geo file.

A simple gmsh wrapper class for parsing geo file.

Member Function Documentation

def openacoustics.gmsh.GeoParser.viewGeo (   self,
  geo 
)

visualize geometry by using gmsh

Parameters:
self The object pointer.
geo path to geometory file
visualize geometry by using gmsh

def openacoustics.gmsh.GeoParser.loadGeo (   self,
  geo,
  clscale = 1,
  order = 1 
)

load geometry file to instance

Parameters:
self The object pointer.
geo path to geometory file
clscale scale of element. (In the case of less than 1, good calculation accuracy but require PC resource)
order order of element
load geometry file to instance

def openacoustics.gmsh.GeoParser.getNodes (   self  ) 

read nodes from loaded geo file

Parameters:
self The object pointer
Return values:
nodes loaded nodes
read nodes from loaded geo file.

def openacoustics.gmsh.GeoParser.getPoints (   self,
  physname 
)

read point elements with elmtype(int) and physname(str)

Parameters:
self The object pointer
physname physical name in loaded geo file
Return values:
elm point elements of physical name
read point elements with elmtype(int) and physname(str)

def openacoustics.gmsh.GeoParser.getTriangles (   self,
  physname,
  order = 1 
)

read triangular elements with elmtype(int) and physname(str)

Parameters:
self The object pointer
physname physical name in loaded geo file
order order of element
Return values:
triangular elements of physical name
read triangular elements with elmtype(int) and physname(str)

def openacoustics.gmsh.GeoParser.getTetrahedra (   self,
  physname,
  order = 1 
)

read tetrahedron elements with elmtype(int) and physname(str)

Parameters:
self The object pointer
physname physical name in loaded geo file
order order of element
Return values:
elm tetrahedron elements of physical name
read tetrahedron elements with elmtype(int) and physname(str)

def openacoustics.gmsh.GeoParser.getLines (   self,
  physname 
)

read line elements with elmtype(int) and physname(str)

Parameters:
self The object pointer
physname physical name in loaded geo file
Return values:
elm line elements of physical name
read line elements with elmtype(int) and physname(str)

def openacoustics.gmsh.GeoParser.getElements (   self,
  elmtype,
  physname 
)

read arbitrary elements with elmtype(int) and physname(str)

Parameters:
self The object pointer
elmtype element type (documented at gmsh web)
physname physical name in loaded geo file
Return values:
elm rawdata of elements of physical name
read arbitrary elements with elmtype(int) and physname(str)

def openacoustics.gmsh.GeoParser.getnameid (   self,
  name 
)

call internally.

get id of physical name

Parameters:
self The object pointer
name physical name
Return values:
id id of physical name
call internally. get id of physical name

def openacoustics.gmsh.GeoParser.readfromlines (   self,
  lines 
)

call internally.

def openacoustics.gmsh.GeoParser.readbetween (   self,
  line1,
  line2 
)

call internally.

def openacoustics.gmsh.GeoParser.read (   self,
  str1,
  str2 
)

call internally.

def openacoustics.gmsh.GeoParser.findbetween (   self,
  str1,
  str2 
)

call internally.

def openacoustics.gmsh.GeoParser.findlines (   self,
  str1,
  str2,
  tp,
  nm 
)

call internally.


The documentation for this class was generated from the following file:

Generated on Wed Dec 24 13:58:46 2008 for OpenAcoustics by  doxygen 1.5.5