실행: abaqus viewer noGUI=mycode.py
제작자: Yinghui Tian
출처: http://yhtian.blogspot.com
import odbAccess
odb = session.openOdb('EB.odb')
Pipenode = odb.rootAssembly.instances['PART-1-1'].nodeSets['PIPENODE']
MaxU = range(101)
MinU = range(101)
MaxW = range(101)
MinW = range(101)
for i in range(101):
MaxU[i] = 0.0
MinU[i] = 0.0
MaxW[i] = -100.0
MinW[i] = 0.0
OutDispfile = open('DispEnvEB.txt','w+')
OutDispfile.write("Node ")
OutDispfile.write("MinU ")
OutDispfile.write("MaxU ")
OutDispfile.write("MinW ")
OutDispfile.write("MaxW\n")
i = 0
while (i<=2000):
print i
timeframe = odb.getFrame(i)
dispp = timeframe.fieldOutputs['U']
j = 0
for v in dispp.values:
print j
if (v.data[0] >= MaxU[j]):
MaxU[j] = v.data[0]
if (v.data[0] <= MinU[j]):
MinU[j] = v.data[0]
if (i >200):
if (v.data[2] >=MaxW[j]):
MaxW[j] = v.data[2]
if (v.data[2] <=MinW[j]):
MinW[j] = v.data[2]
j = j + 1
i = i + 1
for i in range(101):
OutDispfile.write(str(i+1))
OutDispfile.write(" ")
OutDispfile.write(str(MinU[i]))
OutDispfile.write(" ")
OutDispfile.write(str(MaxU[i]))
OutDispfile.write(" ")
OutDispfile.write(str(MinW[i]))
OutDispfile.write(" ")
OutDispfile.write(str(MaxW[i]))
OutDispfile.write("\n")
OutDispfile.close()
'2FeRed`s 공돌이생활 > ABAQUS' 카테고리의 다른 글
[아바쿠스] 로컬좌표계 생성방법 (코드위주) (0) | 2009.07.09 |
---|---|
[아바쿠스] 아바쿠스 Explicit User Manual (0) | 2009.07.07 |
[하이퍼메쉬] TCL COMMAND (Undocumented) (0) | 2009.05.20 |
[하이퍼메쉬] TCL COMMAND (0) | 2009.05.20 |
[공학] 공학계산 및 해석의 Wall clock time (0) | 2009.05.19 |
아름다운 인터넷 문화를 위해 댓글을 남겨주세요. -0-;