打开ansys APDL,点击“File” ->”Import”->”PARA”
选择 x_t 格式,选择现成的x_t格式文件,然后点击“OK”
然后就会看到导入的模型
先点击“PlotCtrls”->”Numbering”
将 关键点KP, 线LINE,面AREA,体VOLU,结点NODE的编号全部打开,如果后期不需要可以再点击使它关闭。
然后点击右边栏的 “dynamic model mode“动态模型模式,点击后,右键长按且移动鼠标是转动物体。左键长按且移动鼠标是平移物体。将物体平移转动到一个合适的位置,看图上的编号,发现体积V1,面A1A6,线L1L12,关键点1~8都有,说明以x_t模式成功导入的点、线、面和体。这样体是透明的不要紧,在等等划分网格时候就会自动地出现默认颜色。
先定义单元类型,这里将导入的模型定义成体
选择“Preprocessor“->”Element Type”->”Add/Edit/Delete”->”Add”,选择 solid -> 20 node 186 -> OK,
最后将”Element Type” 窗口关闭
在左边栏,选择 “Preprocessor“->”meshing”->”mesh”->”Volumes”->”free”,随意划分一个网格尝试一下。
会跳出弹窗和警告,点击“close“
然后鼠标选中这个模型,意思是准备将这个体进行网格划分。
然后点击OK
在左边栏Preprocessor -> Material Props -> Material Models 中,选择 Density 密度填写7800,选择OK
在Linear Isotropic 中填写 E=2e11,PRXY=0.26,然后点击OK
给模型施加位移约束:选择 Solution->Define Loads -> Apply ->Displacement-> On Areas ,然后点击图中选中的面,最后点击OK
选择所有自由度 All DOF,然后点击OK
然后给面施加压强,选择 Solution->Define Loads -> Apply ->Pressure-> On Areas ,选中面,然后点击OK
输入压强的数值,然后点击OK
开始计算,选中 Solution->Solve->Current LS,然后点击OK
计算结束
施加位移约束和载荷后的模型是这样的
查看变形结果,General Postpro -> plot results -> deformed Shape, 选择def+undef edge,就是选择变形前后的轮廓都要同时显示
这是关掉刚刚开启的numbering编号后,看到的变形前后的差异。
查看每一点的位移变化
选择 General Postproc -> List Results -> Nodal Solution 选择 Nodal Solution -> Displacement vector sum ,然后点击OK
每个点的位移变化如下
/COM,ANSYS RELEASE Release 16.0 BUILD 16.0 UP20141203 10:28:17
/input,menust,tmp,''
/GRA,POWER
/GST,ON
/PLO,INFO,3
/GRO,CURL,ON
/CPLANE,1
/REPLOT,RESIZE
WPSTYLE,,,,,,,,0
~PARAIN,'Cube01','x_t','F:\pg\opengl\220222\codeSolu\mat-sphere\x_t3D\',SOLIDS,0,0
/NOPR
/GO
NPLOT
LPLOT
KPLOT
APLOT
GPLOT
APLOT
!*
/NOPR
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
/GO
!*
/COM,
/COM,Preferences for GUI filtering have been set to display:
/COM, Structural
!*
!*
ET,1,PLANE183
!*
ET,2,PLANE183
!*
KEYOPT,1,1,0
KEYOPT,1,3,0
KEYOPT,1,6,0
!*
!*
ETDEL,2
!*
!*
!*
!*
!*
!*
!*
MPTEMP,,,,,,,,
MPTEMP,1,0
MPDATA,DENS,1,,7800
MPTEMP,,,,,,,,
MPTEMP,1,0
MPDATA,EX,1,,2e11
MPDATA,PRXY,1,,0.26
sect,1,shell,,
secdata, 0.01,1,0.0,3
secoffset,MID
seccontrol,,,, , , ,
V, 2, 3, 4, 1, 8, 5, 6, 7
GPLOT
/UI,MESH,OFF
/USER, 1
/VIEW, 1, -0.280236730579E-01, 0.181529764477 , 0.982986072311
/ANG, 1, -7.17737170132
/REPLO
/VIEW, 1, 0.541436379902 , 0.493038081538 , 0.680999336764
/ANG, 1, 9.01958102424
/REPLO
/VIEW, 1, 0.815164532474 , 0.487098658222 , 0.313435291814
/ANG, 1, 24.0749183935
/REPLO
/VIEW, 1, 0.646439041901 , 0.695564631595 , 0.313538527745
/ANG, 1, 20.7412447110
/REPLO
/VIEW, 1, 0.455973965670 , 0.542397872247 , 0.705614831770
/ANG, 1, 1.11700286705
/REPLO
EPLOT
VPLOT
APLOT
LPLOT
/REPLO
/FOC, 1, -0.128193093524E-02, -0.175817596645E-02, 0.217988336730E-02
/REPLO
/FOC, 1, -0.114203190230E-02, -0.155515423172E-02, 0.193341905568E-02
/REPLO
MSHKEY,0
MSHAPE,1,3d
CM,_Y,VOLU
VSEL, , , , 1
CM,_Y1,VOLU
CHKMSH,'VOLU'
CMSEL,S,_Y
!*
VMESH,_Y1
!*
CMDELE,_Y
CMDELE,_Y1
CMDELE,_Y2
!*
!*
ET,2,SOLID185
!*
ETDEL,1
!*
!*
!*
!*
!*
!*
TYPE, 2
MAT, 1
REAL,
ESYS, 0
SECNUM, 1
!*
MSHKEY,0
MSHAPE,1,3d
CM,_Y,VOLU
VSEL, , , , 1
CM,_Y1,VOLU
CHKMSH,'VOLU'
CMSEL,S,_Y
!*
VMESH,_Y1
!*
CMDELE,_Y
CMDELE,_Y1
CMDELE,_Y2
!*
FINISH
/SOL
FLST,2,1,5,ORDE,1
FITEM,2,1
!*
/GO
DA,P51X,ALL,
FLST,2,1,5,ORDE,1
FITEM,2,5
/GO
!*
SFA,P51X,1,PRES,-2000000
/VIEW, 1, 0.505561655088 , 0.185085384431 , 0.842704463839
/ANG, 1, 0.388836863785
/REPLO
/VIEW, 1, 0.429723418157 , -0.240332747726 , 0.870389541675
/ANG, 1, 0.642920199060
/REPLO
/VIEW, 1, 0.155337756849 , 0.583089627264 , 0.797418753149
/ANG, 1, -4.53964669896
/REPLO
/VIEW, 1, 0.295549393146 , 0.678118763714 , 0.672908239294
/ANG, 1, 3.45563890446
/REPLO
/STATUS,SOLU
SOLVE
FINISH
/POST1
SET,LIST
SET,FIRST
PLDISP,2
/VIEW, 1, 0.162148953206 , 0.443533142875 , 0.881468132235
/ANG, 1, -4.27421036641
/REPLO
/VIEW, 1, 0.396628352932 , 0.538784534469E-02, 0.917963463746
/ANG, 1, -3.01995504256
/REPLO
/VIEW, 1, -0.409555833423E-01, 0.504012125416E-01, 0.997888950719
/ANG, 1, -4.32872435223
/REPLO
/VIEW, 1, 0.173359284158 , 0.184468897862 , 0.967428438861
/ANG, 1, -2.98543921132
/REPLO
/VIEW, 1, 0.762100253731E-01, -0.165783250119 , 0.983213072540
/ANG, 1, -3.49719420565
/REPLO
/VIEW, 1, 0.493417391752E-02, 0.861903168126E-01, 0.996266471992
/ANG, 1, -3.23531236246
/REPLO
/VIEW, 1, 0.239600642045 , 0.225461746266 , 0.944329674056
/ANG, 1, -1.31571866127
/REPLO
/VIEW, 1, 0.255262697956 , 0.442611179750 , 0.859614040481
/ANG, 1, -0.654820171988
/REPLO
SET,LIST,2
!*
PRNSOL,U,COMP
/FOC, 1, 0.171333996171E-02, -0.838785002073E-02, 0.460363791005E-02
/REPLO
/FOC, 1, -0.611831923346E-02, -0.559356006248E-02, 0.549048531452E-02
/REPLO
/REPLOT,RESIZE