Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from odbAccess import *
- odbPath = '4pb2D.odb'
- odb = openOdb(path=odbPath)
- wholeModel=odb
- rootAssembly=wholeModel.rootAssembly
- instances=rootAssembly.instances
- PART1=instances['PART-1-1']
- allNodes=PART1.nodes
- botNodes={}
- for i in allNodes:
- if i.coordinates[1]==0:
- botNodes[i.label] = i.coordinates
- for i in botNodes:
- if botNodes[i][0]==0:
- print i
- steps=wholeModel.steps
- #print steps
- step1=steps['Step-1']
- #print step1
- frames=step1.frames
- #print frames
- #print frames[0]
- #print frames[1]
- print frames[-1].fieldOutputs['U'].values[0]
- values=frames[-1].fieldOutputs['U'].values
- for i in values:
- if i.nodeLabel in botNodes:
- print i.nodeLabel, i.data[1]
- #print wholeModel
- #print rootAssembly
- #print instances
- #print botNodes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement