chourouk
Mechanical
- Sep 15, 2016
- 41
Hi;
I want to modify the coordinates of some nodes, so I wrote the following program on python. The program runs but I display no result on Abaqus.
mesh_nodes=mdb.models['Model-1'].rootAssembly.instances['Part-1-1'].nodes
tolerance = 1.0e-6
for node in mesh_nodes:
x = node.coordinates[0]
y= node.coordinates[1]
z = node.coordinates[2]
if node.coordinates[2]-(zmin+0.1) < tolerance:
x=node.label
mdb.models['Model-1'] . rootAssembly . editNode ( nodes=mesh_nodes [ x ] ,
coordinate1=node.coordinates[0] , coordinate2=node.coordinates[1] ,coordinate3=node.coordinates[2]+random.random()*0.1 , projectToGeometry=ON)
Can you help me please me to find a solution for this program and display modification of the coordinates of the nodes?
I want to modify the coordinates of some nodes, so I wrote the following program on python. The program runs but I display no result on Abaqus.
mesh_nodes=mdb.models['Model-1'].rootAssembly.instances['Part-1-1'].nodes
tolerance = 1.0e-6
for node in mesh_nodes:
x = node.coordinates[0]
y= node.coordinates[1]
z = node.coordinates[2]
if node.coordinates[2]-(zmin+0.1) < tolerance:
x=node.label
mdb.models['Model-1'] . rootAssembly . editNode ( nodes=mesh_nodes [ x ] ,
coordinate1=node.coordinates[0] , coordinate2=node.coordinates[1] ,coordinate3=node.coordinates[2]+random.random()*0.1 , projectToGeometry=ON)
Can you help me please me to find a solution for this program and display modification of the coordinates of the nodes?