pyvista.save_meshio

目次

pyvista.save_meshio#

save_meshio(
filename: str | Path,
mesh: DataSet,
file_format: str | None = None,
**kwargs,
) None[ソース]#

meshioを使用してメッシュをファイルに保存します.

パラメータ:
filenamestr

メッシュの保存先となるファイル名.

meshpyvista.DataSet

任意のPyVistaメッシュ/空間データタイプ.

file_formatstr, optional

メシオが保存するファイルの種類です. 例えば, '.bdf' です. これは通常,拡張子から推測されますが,上書きすることもできます.

**kwargsdict, optional

Additional keyword arguments. See meshio.Mesh.write for more details.

pyvista 球体を Abaqus データファイルに保存します.

>>> import pyvista as pv
>>> sphere = pv.Sphere()
>>> pv.save_meshio('mymesh.inp', sphere)