openfoam Package¶
block_mesh
Module¶
- defines:
- model = read_block_mesh(block_mesh_dict_filename, log=None, debug=False)
-
class
pyNastran.converters.openfoam.block_mesh.
BlockMesh
(log=None, debug=False)[source]¶ Bases:
object
defines BlockMesh
creates BlockMesh
-
pyNastran.converters.openfoam.block_mesh.
area_centroid
(n1, n2, n3, n4)[source]¶ calculates the area and centroid of a quad
-
pyNastran.converters.openfoam.block_mesh.
mirror_block_mesh
(block_mesh_name, block_mesh_name_out, log=None, debug=True)[source]¶ mirrors a blockMeshDict
openfoam_parser
Module¶
-
class
pyNastran.converters.openfoam.openfoam_parser.
FoamFile
(filename, log=None)[source]¶ Bases:
object
-
pyNastran.converters.openfoam.openfoam_parser.
convert_to_dict
(self, lines, debug=True)[source]¶ should use regex…
FoamFile {
version 0.0508; format ascii; class dictionary; object blockMeshDict;}
- -> data = {
- ‘FoamFile’ : {
- ‘version’ : ‘0.0508’, ‘format’ : ‘ascii’, ‘class’ : ‘dictionary’, ‘object’ : ‘blockMeshDict’,
}
}