fluidsimfoam.foam_input_files.blockmesh#

Helper to create blockMeshDict files

Taken from takaakiaoki/ofblockmeshdicthelper (Git commit 58589f1) and modified as follow:

  • pyupgrade __init__.py --py39-plus

  • tested (100% coverage) and reproducible (sets sorted)

  • refactor

  • support for cyclic boundaries

Classes

BlockMeshDict()

BlockMeshDictRectilinear(lx, ly, lz, nx, ny, ...)

Boundary(type_, name[, faces, neighbour])

Face(vnames, name)

HexBlock(vnames, cells, name[, grading])

MergePatchPairs(boundary_name1, boundary_name2)

Vertex(x, y, z, name[, index])

class fluidsimfoam.foam_input_files.blockmesh.Grading[source]#

base class for Simple- and Edge- Grading

class fluidsimfoam.foam_input_files.blockmesh.SimpleGradingElement(d)[source]#

x, y or z Element of simpleGrading. adopted to multi-grading

format()[source]#
class fluidsimfoam.foam_input_files.blockmesh.SimpleGrading(x, y, z)[source]#

configutation for ‘simpleGrading’

format()[source]#
class fluidsimfoam.foam_input_files.blockmesh.EdgeGrading(x1, x2, x3, x4, y1, y2, y3, y4, z1, z2, z3, z4)[source]#

configutation for ‘edgeGrading’

format()[source]#
class fluidsimfoam.foam_input_files.blockmesh.ArcEdge(vnames, name, inter_vertex)[source]#
format(vertices)[source]#

Format instance to dump vertices is dict of name to Vertex

class fluidsimfoam.foam_input_files.blockmesh.SplineEdge(vnames, name, points)[source]#
format(vertices)[source]#

Format instance to dump vertices is dict of name to Vertex