MCPcopy Create free account
hub / github.com/FEniCS/dolfinx / write_mesh

Method write_mesh

python/dolfinx/io/utils.py:132–134  ·  view source on GitHub ↗

Write mesh to file for a given time.

(self, mesh: Mesh, t: float = 0.0)

Source from the content-addressed store, hash-verified

130 self.close()
131
132 def write_mesh(self, mesh: Mesh, t: float = 0.0) -> None:
133 """Write mesh to file for a given time."""
134 self.write(mesh._cpp_object, t)
135
136 def write_function(self, u: list[Function] | Function, t: float = 0.0) -> None:
137 """Write a functions to file with a given time."""

Callers 15

test_custom_partitionerFunction · 0.45
test_3dFunction · 0.45
test_read_named_meshtagsFunction · 0.45
test_save_1d_scalarFunction · 0.45
test_save_2d_scalarFunction · 0.45
test_save_3d_scalarFunction · 0.45
test_save_2d_vectorFunction · 0.45
test_save_3d_vectorFunction · 0.45
test_save_2d_tensorFunction · 0.45
test_save_3d_tensorFunction · 0.45

Calls 1

writeMethod · 0.95

Tested by 15

test_custom_partitionerFunction · 0.36
test_3dFunction · 0.36
test_read_named_meshtagsFunction · 0.36
test_save_1d_scalarFunction · 0.36
test_save_2d_scalarFunction · 0.36
test_save_3d_scalarFunction · 0.36
test_save_2d_vectorFunction · 0.36
test_save_3d_vectorFunction · 0.36
test_save_2d_tensorFunction · 0.36
test_save_3d_tensorFunction · 0.36