fastwater.otm_gpl.parser_gmsh module

@author Sebastien E. Bourban

@brief

Tools for handling MSH files when created by the mesh generator GMSH

@details

Contains read/write functions for binary and asci MSH files

class fastwater.otm_gpl.parser_gmsh.GEO(file_name)[source]

Bases: InS

put_content(file_name, head=None)[source]
write_polygon(poly)[source]
class fastwater.otm_gpl.parser_gmsh.MSH(file_name)[source]

Bases: Selafin

Intialisation of the class

@param file_name (string) Name of the file

frst_keys = re.compile('[$](?P<key>[^\\s]+)\\s*\\Z', re.IGNORECASE)
last_keys = re.compile('[$]End(?P<key>[^\\s]+)\\s*\\Z', re.IGNORECASE)
mshkeys = {'ElementData': '', 'ElementNodeData': '', 'Elements': [], 'InterpolationScheme': '', 'MeshFormat': '', 'NodeData': '', 'Nodes': '', 'Periodic': '', 'PhysicalName': ''}
put_content(file_name, showbar=True)[source]

Write content of the object into a Serafin file

@param file_name (string) Name of the serafin file @param showbar (boolean) If True displays a showbar

fastwater.otm_gpl.parser_gmsh.main()[source]