网状动物 在生成用于FEM / FVM计算的网格时,有时您的几何体是如此简单,以至于您不需要复杂的网格生成器(例如 , , , , ),但是利用了结构的简单而快速域。 输入meshzoo。 例子 三角形 import meshzoo bary , cells = meshzoo . triangle ( 8 ) # corners = numpy.array( # [ # [0.0, -0.5 * numpy.sqrt(3.0), +0.5 * numpy.sqrt(3.0)], # [1.0, -0.5, -0.5], # ] # ) # points = numpy.dot(corners, bary).T # Process the mesh, e.g., write it to a file using meshio
2022-04-04 12:34:05 44KB python mesh-generators Python
1