Advertisement
Guest User

Untitled

a guest
Dec 6th, 2016
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. from odbAccess import *
  2.  
  3. odbPath = '4pb2D.odb'
  4. odb = openOdb(path=odbPath)
  5.  
  6. wholeModel=odb
  7.  
  8. rootAssembly=wholeModel.rootAssembly
  9.  
  10. instances=rootAssembly.instances
  11.  
  12. PART1=instances['PART-1-1']
  13.  
  14. allNodes=PART1.nodes
  15.  
  16. botNodes={}
  17. for i in allNodes:
  18. if i.coordinates[1]==0:
  19. botNodes[i.label] = i.coordinates
  20.  
  21. for i in botNodes:
  22. if botNodes[i][0]==0:
  23. print i
  24. steps=wholeModel.steps
  25. #print steps
  26. step1=steps['Step-1']
  27. #print step1
  28. frames=step1.frames
  29. #print frames
  30. #print frames[0]
  31. #print frames[1]
  32. print frames[-1].fieldOutputs['U'].values[0]
  33.  
  34. values=frames[-1].fieldOutputs['U'].values
  35.  
  36. for i in values:
  37. if i.nodeLabel in botNodes:
  38. print i.nodeLabel, i.data[1]
  39.  
  40. #print wholeModel
  41. #print rootAssembly
  42. #print instances
  43. #print botNodes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement