zhouxman 发表于 2009-3-17 09:30

优化分析代码共享

/prep7
*set,b,20
*set,h,20
et,1,beam3
r,1,b*h,b*(h**3)/12,h
MP,EX,1,200e3
MP,PRXY,1,0.3
k,1,0,0,0
k,2,1000,0,0
l,1,2
HPTCREATE,LINE,1,0,RATI,0.75,
ESIZE,100
LMESH,all
finish
/SOLU
antype,0
DK,1,UX,0
DK,1,UY,0
DK,2,UY,0
FK,3,FY,-2000
SOLVE
finish
/post1
etable,evolume,volu,
ssum
*get,volume,ssum,,item,evolume
etable,smaxi,nmisc,1
esort,etab,smaxi,0,1,,
*get,smaxii,sort,,max
etable,smaxj,nmisc,3
esort,etab,smaxj,0,1,,
*get,smaxjj,sort,,max
*set,smax,smaxii>smaxjj
lgwrite,analysis,txt
/opt
opanl,analysis,txt
opvar,b,dv,10,50,1e-3
opvar,h,dv,10,50,1e-3
opvar,smax,sv,195,200,1e-3
opvar,volume,obj,,,200
optype,firs
opfrst,30,100,0.2
opexe
plvaropt,h,b

[ 本帖最后由 zhouxman 于 2009-3-17 21:07 编辑 ]

zhouxman 发表于 2009-3-17 21:03

有些参数数 自己调整

[ 本帖最后由 zhouxman 于 2009-3-17 21:06 编辑 ]
页: [1]
查看完整版本: 优化分析代码共享