chourouk
Mechanical
- Sep 15, 2016
- 41
Hello
How I can automate this part for a vector that contains n node?
xy0 = XYDataFromHistory(odb=odb,
outputVariableName='Reaction force: RF3 at Node 1 in NSET NODE_BOUNDARY',
steps=('Static_definition', ), suppressQuery=True) # read results from nodes Forces
xy1 = XYDataFromHistory(odb=odb,
outputVariableName='Reaction force: RF3 at Node 2 in NSET NODE_BOUNDARY',
steps=('Static_definition', ), suppressQuery=True) # read results from nodes Forces
xy2 = XYDataFromHistory(odb=odb,
outputVariableName='Reaction force: RF3 at Node 3 in NSET NODE_BOUNDARY',
steps=('Static_definition', ), suppressQuery=True) # read results from nodes Forces
xy3 = XYDataFromHistory(odb=odb,
outputVariableName='Reaction force: RF3 at Node 7 in NSET NODE_BOUNDARY',
steps=('Static_definition', ), suppressQuery=True) # read results from nodes Forces
xy4 = sum((xy0, xy1, xy2, xy3, ), )
xy_result = session.XYData(name='SUM_FORCES', objectToCopy=xy4,
sourceDescription='sum((Reaction force: RF3 at Node 1 in NSET NODE_BOUNDARY, Reaction force: RF3 at Node 2 in NSET NODE_BOUNDARY, Reaction force: RF3 at Node 3 in NSET NODE_BOUNDARY, Reaction force: RF3 at Node 7 in NSET NODE_BOUNDARY, ),)')
thanks
How I can automate this part for a vector that contains n node?
xy0 = XYDataFromHistory(odb=odb,
outputVariableName='Reaction force: RF3 at Node 1 in NSET NODE_BOUNDARY',
steps=('Static_definition', ), suppressQuery=True) # read results from nodes Forces
xy1 = XYDataFromHistory(odb=odb,
outputVariableName='Reaction force: RF3 at Node 2 in NSET NODE_BOUNDARY',
steps=('Static_definition', ), suppressQuery=True) # read results from nodes Forces
xy2 = XYDataFromHistory(odb=odb,
outputVariableName='Reaction force: RF3 at Node 3 in NSET NODE_BOUNDARY',
steps=('Static_definition', ), suppressQuery=True) # read results from nodes Forces
xy3 = XYDataFromHistory(odb=odb,
outputVariableName='Reaction force: RF3 at Node 7 in NSET NODE_BOUNDARY',
steps=('Static_definition', ), suppressQuery=True) # read results from nodes Forces
xy4 = sum((xy0, xy1, xy2, xy3, ), )
xy_result = session.XYData(name='SUM_FORCES', objectToCopy=xy4,
sourceDescription='sum((Reaction force: RF3 at Node 1 in NSET NODE_BOUNDARY, Reaction force: RF3 at Node 2 in NSET NODE_BOUNDARY, Reaction force: RF3 at Node 3 in NSET NODE_BOUNDARY, Reaction force: RF3 at Node 7 in NSET NODE_BOUNDARY, ),)')
thanks