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

Method write_function

python/dolfinx/io/utils.py:136–139  ·  view source on GitHub ↗

Write a functions to file with a given time.

(self, u: list[Function] | Function, t: float = 0.0)

Source from the content-addressed store, hash-verified

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."""
138 cpp_objects = [u._cpp_object] if isinstance(u, Function) else [_u._cpp_object for _u in u]
139 super().write(cpp_objects, t)
140
141
142class XDMFFile(_cpp.io.XDMFFile):

Callers 15

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
test_save_1d_scalarFunction · 0.45
test_save_2d_scalarFunction · 0.45
test_save_3d_scalarFunction · 0.45

Calls 1

writeMethod · 0.45

Tested by 15

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
test_save_1d_scalarFunction · 0.36
test_save_2d_scalarFunction · 0.36
test_save_3d_scalarFunction · 0.36