ansys优化,如何提取节点位移?
我做的一个隔振垫的优化,先要做一个谐响应分析,然后提取节点4(即弹簧的端点方向)的y方向上的位移,弹簧用的是combine14,longitude UY DOF,为何总不能提取节点4的位移,提取的命令流如下;HARFRQ,1,2,
NSUBST,1,
KBC,0
!*
/STATUS,SOLU
SOLVE
*GET,u2y2,NODE,4,U,Y
出现的warnin:The degree of freedom solution is not available, Line=*GET,u2y2,NODE,4,u,y
The *GET command is ignored. 你还在求解器模块
要进入后处理模块才可以读取结果
加个/post1命令试试 我的命令流,已经加了post1,还是不行。
/CLEAR,nostart
!FILE:NEW.LGW
!*
KEYW,PR_SET,1
KEYW,PR_STRUC,1
KEYW,PR_THERM,0
KEYW,PR_FLUID,0
KEYW,PR_ELMAG,0
KEYW,MAGNOD,0
KEYW,MAGEDG,0
KEYW,MAGHFE,0
KEYW,MAGELC,0
KEYW,PR_MULTI,0
KEYW,PR_CFD,0
/GO
!*
/COM,
/COM,Preferences for GUI filtering have been set to display:
/COM,Structural
!*
*SET,k,3e6
/PREP7
!*
ET,1,SOLID185
!*
ET,2,COMBIN14
!*
ET,3,COMBIN14
!*
ET,4,COMBIN14
!*
KEYOPT,2,1,0
KEYOPT,2,2,1
KEYOPT,2,3,0
!*
KEYOPT,3,1,0
KEYOPT,3,2,2
KEYOPT,3,3,0
!*
KEYOPT,4,1,0
KEYOPT,4,2,3
KEYOPT,4,3,0
!*
R,1,2.06e6, , ,
!*
R,2,k, , ,
!*
R,3,1.716e5, , ,
!*
!*
MPTEMP,,,,,,,,
MPTEMP,1,0
MPDATA,EX,1,,2e11
MPDATA,PRXY,1,,0.3
MPTEMP,,,,,,,,
MPTEMP,1,0
MPDATA,DENS,1,,7800
MPTEMP,,,,,,,,
MPTEMP,1,0
MPDATA,EX,2,,2e22
MPDATA,PRXY,2,,0.3
MPTEMP,,,,,,,,
MPTEMP,1,0
MPDATA,DENS,2,,0.78
/VIEW,1,1,1,1
/ANG,1
/REP,FAST
BLOCK,-0.2125,0.2125,-0.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2,1000
!*
/GO
D,P51X, , , , , ,ALL, , , , ,
FLST,2,1,1,ORDE,1
FITEM,2,1003
!*
/GO
D,P51X, , , , , ,ALL, , , , ,
FLST,2,1,1,ORDE,1
FITEM,2,1001
!*
/GO
D,P51X, , , , , ,ALL, , , , ,
APLOT
!*
!*
FLST,2,2,5,ORDE,2
FITEM,2,4
FITEM,2,10
/GO
!*
SFA,P51X,1,PRES,720
!*
OUTPR,BASIC,ALL,
HARFRQ,0,1,
NSUBST,1,
KBC,0
!*
/STATUS,SOLU
SOLVE
SAVE
FINISH
/POST1
*GET,u1y2,NODE,4,U,Y
*SET,F1,(u1y2*k)**2
回复 板凳 lhwseu 的帖子
我也出现了同样的问题搞不定郁闷
回复 板凳 lhwseu 的帖子
是不是先要read results呀 我用了两种方法都不行,还请高手指点阿。谐响应分析的频段是0——40,40步。读取的位置大多为零。郁闷阿。一种是分部进行谐响应分析,逐个提取节点4y方向的位移。
HARFRQ,0,1,
NSUBST,1,
KBC,0
!*
/STATUS,SOLU
SOLVE
SAVE
FINISH
/POST1
SET, , ,1,0,1, ,
*GET,u1y2,NODE,4,U,Y
*SET,F1,u1y2*k
HARFRQ,1,2,
NSUBST,1,
KBC,0
!*
/STATUS,SOLU
SOLVE
FINISH
/POST1
SET, , ,1,1,2, ,
*GET,u2y2,NODE,4,U,Y
*SET,F2,u2y2*k+F1。。。
一种是先进行谐响应分析,再逐个频段提取节点4y方向的位移
HARFRQ,0,40,
NSUBST,40,
KBC,0
!*
/STATUS,SOLU
SOLVE
FINISH
SAVE
/POST1
SET, , ,1,0,1, ,
*GET,u1y2,NODE,4,U,Y
*SET,F1,u1y2*k
SET, , ,1,1,2, ,
*GET,u2y2,NODE,4,U,Y
*SET,F2,u2y2*k+F1
。。。。 原帖由 lhwseu 于 2008-9-19 15:46 发表 http://www.chinavib.com/forum/images/common/back.gif
我做的一个隔振垫的优化,先要做一个谐响应分析,然后提取节点4(即弹簧的端点方向)的y方向上的位移,弹簧用的是combine14,longitude UY DOF,为何总不能提取节点4的位移,提取的命令流如下;
HARFRQ,1,2,
NSUB ...
楼主没有指定读取的载荷步
在*GET,u2y2,NODE,4,U,Y前加上SET,,, ,,, ,i !读取第i个结果
这个命令会随着选取单元的改变而改变,比如shell63单元,set,1,i,,0,,,,,!读取第i个结果
所以搞不清楚的话,可以先用GUI方式操作一下读取第i步,然后查看log文件的方法来确定
我就是出现了和楼主相同的问题,不过我选用的是solid45单元,通过上述方法已解决,祝成功! ANTYPE,HARMIC
HROPT,MSUP,2
HARFRQ,0.1,1.0
F,1,FY,50
KBC,1
NSUBST,50
OUTPR,,NONE
OUTRES,,1
SOLVE
FINISH
/POST26
FILE,,rfrq
NSOL,2,1,U,Y,UY1
NSOL,3,2,U,Y,UY2
/GRID,1
/AXLAB,Y,DISP 你这个 问题解决好了?我怎么分析后也提取不了节点位移值
页:
[1]