PDA

View Full Version : Need help Please !!!



chethangouder
2010-07-03, 00:08
Dear Friends,
I generated this code using macromanager in abaqus
----------------------------------------------------------------------------------------------------
session.xyDataListFromField(odb=odb, outputPosition=NODAL, variable=(('E',
INTEGRATION_POINT, ( (COMPONENT, 'E33'), )), ), nodeSets=('SET-1', ))
x0 = session.xyDataObjects['E:E33 (Avg: 75%) PI: BEAM-1 N: 151']
x1 = session.xyDataObjects['E:E33 (Avg: 75%) PI: BEAM-1 N: 155']
x2 = session.xyDataObjects['E:E33 (Avg: 75%) PI: BEAM-1 N: 1371']
session.writeXYReport(fileName='abaqus.rpt', xyData=(x0, x1, x2)
------------------------------------------------------------------------------------------------------

The code works , but i want to write a function with this generated code, where the input arguments will be "Node set"( Which is SET-1 in the above code) and the component ( which is E33 in the above code )

The command "session.xyDataListFromField(-----)" creates a list of XYData objects
Coming to the next line where " x0 = session.xyDataObjects['E:E33 (Avg: 75%) PI: BEAM-1 N: 151']",
for different sets the argument 'E:E33 (Avg: 75%) PI: BEAM-1 N: 151' keeps changing . How can i incorporate this change in the code . ?

I tried doing

P=session.xyDataListFromField(odb=odb, outputPosition=NODAL, variable=(('E',
INTEGRATION_POINT, ( (COMPONENT, 'E33'), )), ), nodeSets=('SET-1', ))
and then trying:" session.P[1]" in the place of "session.xyDataObjects['E:E33 (Avg: 75%) PI: BEAM-1 N: 151']", but it doesn't work

Please help .

Thanks and Regards