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. |
A simple gmsh wrapper class for parsing geo file.
def openacoustics.gmsh.GeoParser.viewGeo | ( | self, | ||
geo | ||||
) |
visualize geometry by using gmsh
self | The object pointer. | |
geo | path to geometory filevisualize geometry by using gmsh |
def openacoustics.gmsh.GeoParser.loadGeo | ( | self, | ||
geo, | ||||
clscale = 1 , |
||||
order = 1 | ||||
) |
load geometry file to instance
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 elementload geometry file to instance |
def openacoustics.gmsh.GeoParser.getNodes | ( | self | ) |
read nodes from loaded geo file
self | The object pointer |
nodes | loaded nodesread nodes from loaded geo file. |
def openacoustics.gmsh.GeoParser.getPoints | ( | self, | ||
physname | ||||
) |
read point elements with elmtype(int) and physname(str)
self | The object pointer | |
physname | physical name in loaded geo file |
elm | point elements of physical nameread 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)
self | The object pointer | |
physname | physical name in loaded geo file | |
order | order of element |
triangular | elements of physical nameread 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)
self | The object pointer | |
physname | physical name in loaded geo file | |
order | order of element |
elm | tetrahedron elements of physical nameread tetrahedron elements with elmtype(int) and physname(str) |
def openacoustics.gmsh.GeoParser.getLines | ( | self, | ||
physname | ||||
) |
read line elements with elmtype(int) and physname(str)
self | The object pointer | |
physname | physical name in loaded geo file |
elm | line elements of physical nameread 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)
self | The object pointer | |
elmtype | element type (documented at gmsh web) | |
physname | physical name in loaded geo file |
elm | rawdata of elements of physical nameread arbitrary elements with elmtype(int) and physname(str) |
def openacoustics.gmsh.GeoParser.getnameid | ( | self, | ||
name | ||||
) |
call internally.
get id of physical name
self | The object pointer | |
name | physical name |
id | id of physical namecall 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.