Closed marijanbeg closed 4 years ago
This is not directly possible, however, there are two possibilities you can consider:
discretisedfield.Mesh.point2index() and discretisedfield.Mesh.index2point()
discretisedfield.Mesh.point2index()
discretisedfield.Mesh.index2point()
You can expose field as a numpy array (field.array). After you expose it, you can index it as a numpy array.
field.array
Iterating through mesh indices can be achieved as:
for index in mesh.indices: ...
This is not directly possible, however, there are two possibilities you can consider:
discretisedfield.Mesh.point2index()
anddiscretisedfield.Mesh.index2point()
You can expose field as a numpy array (
field.array
). After you expose it, you can index it as a numpy array.Iterating through mesh indices can be achieved as: