PDA

View Full Version : extract stress of each section points using python



tomyliu
2010-03-18, 03:19
Hello,Buddies
I am a new beginer for python.
I want to extract stress components(s11,s22,s12) to a txt file of each section points of SC8R using python. how can I?
just like this:
----------------------------------------------------------
#element id,section id,s11,s22,s12
-------------------------------------------------------
166,1,-5.7440E+00,-8.8030E-01,6.6230E-01
166,2,-4.3080E+00,-6.6020E-01,4.9670E-01
166,3,-2.8720E+00,-4.4010E-01,3.3110E-01
166,4,-1.4360E+00,-2.2010E-01,1.6560E-01
166,5,-3.5780E-05,-1.2526E-05,5.1448E-06
167,1,-2.3530E+00,-2.0520E-01,4.3194E-02
167,2,-1.7650E+00,-1.5390E-01,3.2396E-02
167,3,-1.1760E+00,-1.0260E-01,2.1597E-02
167,4,-5.8820E-01,-5.1298E-02,1.0799E-02
167,5,-4.8521E-06,-9.5588E-08,2.5659E-07

tomyliu
2010-03-30, 00:19
who can tell me?

YTian
2010-04-14, 22:41
Hi, Tomy

I don't know your problem but ABAQUS/CAE might be convenient to extract the stress at integration point or element centre... Python is powerful but not that convenient (esp. for unfaimiliar users)

I ever used Python to extract and process the stress. if my memory is not wrong, i think it should be like:

timeframe=odb.getFrame(i) #the ith frame
Strs = timeframe.fieldOutputs['S'] #save the stress to a variable Strs

tomyliu
2010-04-18, 20:49
thanks Ytian
I have use this function s=timeframe.fieldOutputs['S'],but it can not extract stress of section points, only can extract stress of integreate points