I want to get the odb file all nodes coordinates and the code is as follow, but if the file is very large, the speed is very slow, so I want to know is there any fast way to get all nodes coordinates ?
import numpy as np
import odbAccess
odbName = "test.odb"
odb = odbAccess.openOdb(odbName, readOnly=True)
instances = odb.rootAssembly.instances
instancesNames = instances.keys()
AllNodes = np.empty((0, 4))
for name, instance in instances.items():
instNodes = instance.nodes
instNodesCoors = np.array([node.coordinates for node in instNodes], "d")
AllNodes = np.concatenate((AllNodes, np.column_stack((instNodes, instNodesCoors))))