finish
/clear
/TITLE, A 2-D, multiple compliance minimization problem subjected to volume constraint
/PREP7
BLC4,0,0,3,1 ! Create solid model (3 x 1 rectangle)
ET,1,82 ! Use 2-D solids. Type 1 is optimized
ET,2,82 ! Type 2 is not optimized.
MP,EX,1,118E9 ! Linear isotropic, material
MP,NUXY,1,0.3
ESIZE,0.05 ! Use a relatively fine mesh density
TYPE,1
AMESH,ALL ! Free, rectangular-element meshing
NSEL,S,LOC,X,0,0.4 ! Select region not to be optimized
ESLN
TYPE,2
EMODIF,ALL ! Define type 2 elements
ALLSEL
NSEL,S,LOC,X,0
D,ALL,ALL,0 ! Fixed at X = 0
NSEL,S,LOC,X,3
D,ALL,ALL,0 ! Fixed at X = 3
FORCE = 1000 ! Value for applied load
NSEL,S,LOC,X,1
NSEL,R,LOC,Y,1
F,ALL,FY,FORCE ! Define first load case
ALLSEL
LSWRITE,1 ! Write first load case
FDEL,ALL
NSEL,S,LOC,X,2
NSEL,R,LOC,Y,0
F,ALL,FY,-FORCE ! Define second load case
ALLSEL
LSWRITE,2 ! Write second load case
FDEL,ALL
TOCOMP,MCOMP,MULTIPLE,2 ! Define multiple compliance function
! "MCOMP" for topological optimization
TOVAR,MCOMP,OBJ ! Define "MCOMP" as topological objective
TOVAR,VOLUME,CON,,50 ! Define "VOLUME" as topological constraint; 50 percent
volume reduction
TOTYPE,OC ! Specify solution approach
TODEF ! Initialize topological opt.
/SHOW,topo,grph ! Put graphics in a file (remove if interactive)
/DSCALE,,OFF
/CONTOUR,,2
TOLOOP,12,1 ! Perform no more than 12 iterations
FINISH
TOGRAPH,OBJ ! Graph final objective (compliance) history
TOGRAPH,CON ! Graph final constraint (volume) history
TOPRINT,OBJ ! Print final objective (compliance) history
TOPRINT,CON ! Print final constraint (volume) history
*GET,TITER,TOPO,,ITER ! Get iteration counter
*GET,OCMP,TOPO,TITER-1,TOHO ! Get final compliance value
#p#分页标题#e#/clear
/TITLE, A 2-D, multiple compliance minimization problem subjected to volume constraint
/PREP7
BLC4,0,0,3,1 ! Create solid model (3 x 1 rectangle)
ET,1,82 ! Use 2-D solids. Type 1 is optimized
ET,2,82 ! Type 2 is not optimized.
MP,EX,1,118E9 ! Linear isotropic, material
MP,NUXY,1,0.3
ESIZE,0.05 ! Use a relatively fine mesh density
TYPE,1
AMESH,ALL ! Free, rectangular-element meshing
NSEL,S,LOC,X,0,0.4 ! Select region not to be optimized
ESLN
TYPE,2
EMODIF,ALL ! Define type 2 elements
ALLSEL
NSEL,S,LOC,X,0
D,ALL,ALL,0 ! Fixed at X = 0
NSEL,S,LOC,X,3
D,ALL,ALL,0 ! Fixed at X = 3
FORCE = 1000 ! Value for applied load
NSEL,S,LOC,X,1
NSEL,R,LOC,Y,1
F,ALL,FY,FORCE ! Define first load case
ALLSEL
LSWRITE,1 ! Write first load case
FDEL,ALL
NSEL,S,LOC,X,2
NSEL,R,LOC,Y,0
F,ALL,FY,-FORCE ! Define second load case
ALLSEL
LSWRITE,2 ! Write second load case
FDEL,ALL
TOCOMP,MCOMP,MULTIPLE,2 ! Define multiple compliance function
! "MCOMP" for topological optimization
TOVAR,MCOMP,OBJ ! Define "MCOMP" as topological objective
TOVAR,VOLUME,CON,,50 ! Define "VOLUME" as topological constraint; 50 percent
volume reduction
TOTYPE,OC ! Specify solution approach
TODEF ! Initialize topological opt.
/SHOW,topo,grph ! Put graphics in a file (remove if interactive)
/DSCALE,,OFF
/CONTOUR,,2
TOLOOP,12,1 ! Perform no more than 12 iterations
FINISH
TOGRAPH,OBJ ! Graph final objective (compliance) history
TOGRAPH,CON ! Graph final constraint (volume) history
TOPRINT,OBJ ! Print final objective (compliance) history
TOPRINT,CON ! Print final constraint (volume) history
*GET,TITER,TOPO,,ITER ! Get iteration counter
*GET,OCMP,TOPO,TITER-1,TOHO ! Get final compliance value
相关文章
- 2021-08-30电气CAD实例教程AutoCAD 2010中文版 [左昉 等编著] 20
- 2021-08-24经典实例学设计AutoCAD 2016从入门到精通 [李轲 编著]
- 2021-08-21AutoCAD 2013建筑设计与实例精讲中文版 [本社 编] 201
- 2021-08-21AutoCAD 2013建筑设计与施工图绘制实例教程中文版 [麓
- 2021-08-21AutoCAD 2013机械绘图实例教程中文版 [陈志民 等编著]
- 2021-08-20AutoCAD 2012机械绘图基础与实例中文版 [田蕴 编] 201
- 2021-08-18完全实例自学AutoCAD 2012机械绘图 [唯美科技工作室
- 2021-08-18完全实例自学AutoCAD 2012建筑绘图 [唯美科技工作室
- 2021-08-12AutoCAD 2012机械绘图基础与实例中文版 [田蕴 编] 201
- 2021-08-09中文版AutoCAD 2013机械制图实例教程 [曹利杰,韩炬,王宝