本文是对这篇文章中的命令流寻找其对应的GUI操作(如果有):
ANSYS 有限元分析 后处理 结点解与单元解-CSDN博客
下面这个对应的GUI操作为在官方帮助文档Ansys_Mechanical_APDL_Command_Reference_2中查到的,对应的版本是2022R2,但很多命令在GUI中找不到。
这两个命令可以查看当前的状态
*STATUS,Par,IMIN,IMAX,JMIN,JMAX,KMIN,KMAX,LMIN,LMAX,MMIN,MMAX,
KPRI
列出当前参数和缩略语
Utility Menu>List>Other>Named Parameter
Utility Menu>List>Other>Parameters
Utility Menu>List>Status>Parameters>All Parameters
Utility Menu>List>Status>Parameters>Named Parameters
/STATUS,Lab
列出运行项的状态,包括当前的单位制等。
Utility Menu>List>Status>Global Status
Finish !退出当前处理器
Main Menu>Finish
/Clear,all !清除所有
Utility Menu>File>Clear & Start New
/UNITS, USER, MM
该命令不能从菜单中访问。
Preprocessor>Material Props>Material Library>Select Units
/Prep7 !访问前处理器
Main Menu>Preprocessor
BLOCK,X1,X2,Y1,Y2,Z1,Z2
Block,0,60,-5,5,-3,3 !创建六面体
基于工作平面坐标创建块体。
Main Menu>Preprocessor>Modeling>Create>Volumes>Block>By Dimensions
/VIEW,WN,XV,YV,ZV
/View,,1,1,1 !设置视图
定义显示的观看方向。
WN:命令应用的窗口号(或全部)(默认为1)。
沿着从点XV,YV,ZV(在全局坐标系中)到全局坐标系原点的直线观察对象。对于切片显示,假定切割平面垂直于这条线。如果XV = WP,修改视图,使其垂直于当前定义的工作平面。默认为(0,0,1)。
Main Menu>General Postproc>Path Operations>Define Path>On Working Plane
Main Menu>Preprocessor>Path Operations>Define Path>On Working Plane
Utility Menu>PlotCtrls>Pan, Zoom, Rotate
VPLOT,NV1,NV2,NINC,DEGEN,SCALE
Vplot !Plot volumes
显示选中的物体。
Main Menu>Preprocessor>Modeling>Check Geom>Show Degeneracy>Plot Degen Volus
Main Menu>Preprocessor>Modeling>Operate>Booleans>Show Degeneracy>Plot Degen Volus
Utility Menu>Plot>Specified Entities>Volumes
Utility Menu>Plot>Volumes
!定义属性
ET, 1, SOLID185 !定义单元类型
Main Menu>Preprocessor>Element Type>Add/Edit/Delete
MP, EX, 1, 2E11 !定义弹性模量
MP, NUXY, 1, 0.3 !定义泊松比
Main Menu>Preprocessor>Loads>Load Step Opts>Other>Change Mat Props>Material Models
Main Menu>Preprocessor>Material Props>Material Models
Main Menu>Solution>Load Step Opts>Other>Change Mat Props>Material Models
!网格划分
TYPE, 1 ! 激活单元类型号1
Main Menu>Preprocessor>Meshing>Mesh Attributes>Default Attribs
Main Menu>Preprocessor>Modeling>Create>Elements>Elem Attributes
Main Menu>Preprocessor>Modeling>Operate>Extrude>Elem Ext OptsMAT, 1 ! 激活材料号1、将此材质编号分配给随后定义的元素(默认为1)。
Main Menu>Preprocessor>Meshing>Mesh Attributes>Default Attribs
Main Menu>Preprocessor>Modeling>Create>Elements>Elem AttributesESIZE, 3 ! 单元尺寸设置为3
Main Menu>Preprocessor>Meshing>Size Cntrls>ManualSize>Global>Size
Main Menu>Preprocessor>Meshing>Size Cntrls>SmartSize>Adv OptsVMESH, ALL ! 执行分网
Main Menu>Preprocessor>Meshing>Mesh>Volumes>Free
Main Menu>Preprocessor>Meshing>Mesh>Volumes>Mapped>4 to 6 sidedEPLOT ! Plot Elements
Main Menu>Preprocessor>Modeling>CMS>CMS Superelements>By Picking
Utility Menu>Plot>ElementsFINISH ! 退出当前处理器
!设置边界条件
/SOLU ! 访问求解器
Main Menu>Solution
NSEL, S, LOC, X, 0 ! 选择x坐标值为0的全部结点
Main Menu>Preprocessor>Modeling>CMS>CMS Superelements>By Picking
Main Menu>Preprocessor>Modeling>Delete>Pre-tens Elemnts
Utility Menu>Select>EntitiesD, ALL, ALL, 0 ! 指定边界条件为固定约束
Main Menu>Preprocessor>Loads>Define Loads>Apply>Electric>Boundary>PerfEC>On Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Electric>Boundary>TimeInt>J-Normal>On Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Electric>Boundary>TimeInt>On Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Electric>Boundary>Voltage>J-Normal>On Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Electric>Boundary>Voltage>On Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Magnetic>Boundary>EdgeMVP>Flux
Par'l>On Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Magnetic>Boundary>ScalarPot>Flux
Normal>On Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Magnetic>Boundary>ScalarPot>On
Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Magnetic>Boundary>VectorPot>Flux
Par'l>On Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Magnetic>Boundary>VectorPot>On
Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Structural>Displacement>On Node
Components
Main Menu>Preprocessor>Loads>Define Loads>Apply>Structural>Displacement>On Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Structural>Spectrum>BasePSD>On
Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Structural>Spectrum>MultiPtBas>On
Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Thermal>Temperature>On Nodes
Main Menu>Preprocessor>Loads>Define Loads>Delete>Structural>Spectrum>BasePSD>On
Nodes
Main Menu>Preprocessor>Loads>Define Loads>Delete>Structural>Spectrum>MultiPtBas>On
Nodes
Main Menu>Solution>Define Loads>Apply>Electric>Boundary>PerfEC>On Nodes
Main Menu>Solution>Define Loads>Apply>Electric>Boundary>TimeInt>J-Normal>On Nodes
Main Menu>Solution>Define Loads>Apply>Electric>Boundary>TimeInt>On Nodes
Main Menu>Solution>Define Loads>Apply>Electric>Boundary>Voltage>J-Normal>On Nodes
Main Menu>Solution>Define Loads>Apply>Electric>Boundary>Voltage>On Nodes
Main Menu>Solution>Define Loads>Apply>Magnetic>Boundary>EdgeMVP>Flux Par'l>On
NodesALLSEL,ALL ! 全选
Main Menu>Preprocessor>Modeling>CMS>CMS Superelements>By Picking
Utility Menu>Select>Everything
Utility Menu>Select>Everything Below>Selected Areas
Utility Menu>Select>Everything Below>Selected Elements
Utility Menu>Select>Everything Below>Selected Keypoints
Utility Menu>Select>Everything Below>Selected Lines
Utility Menu>Select>Everything Below>Selected Volumes
有很多命令在GUI中找不到
!施加均布载荷
NSEL, S, LOC, Y, 5 ! 选择y坐标值为5的全部结点
SF, ALL, PRES, 1 ! 施加均布荷载
Main Menu>Preprocessor>Loads>Define Loads>Apply>Electric>Boundary>AppImped_E>On
Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Electric>Boundary>AppShield>On
Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Electric>Excitation>AppSurfChar>On
Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Electric>Flag>AppInfinite>On Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Electric>Flag>AppMaxwell>On Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Field Surface Intr>On Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Fluid/ANSYS>Field Surface>On Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Fluid/ANSYS>Impedance>On Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Magnetic>Flag>AppInfinite>On Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Magnetic>Other>AppMaxwell>On
Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Structural>Pressure>On Node Components
Main Menu>Preprocessor>Loads>Define Loads>Apply>Structural>Pressure>On Nodes
!施加集中载荷
N1 = NODE(60,-5,-3) ! 获取坐标值为(60,-5,-3)的结点编号
N2 = NODE(60,-5,3) ! 获取坐标值为(60,-5,3)的结点编号
Main Menu>Preprocessor>Modeling>Create>Nodes>In Active CS
Main Menu>Preprocessor>Modeling>Create>Nodes>On Working PlaneF, N1, FY, -50 ! 施加集中荷载
F, N2, FY, -50 ! 施加集中荷载
Main Menu>Preprocessor>Loads>Define Loads>Apply>Electric>Excitation>AppCharge>On Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Electric>Excitation>AppCurrent>On
Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Electric>Excitation>ImprCurr>On Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Magnetic>Other>AppCurrSeg>On
Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Magnetic>Other>AppMagFlux>On
Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Structural>Force/Moment>On Node
Components
Main Menu>Preprocessor>Loads>Define Loads>Apply>Structural>Force/Moment>On Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Structural>Spectrum>MultiPtNod>On
Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Structural>Spectrum>NodePSD>On
Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Structural>Spectrum>SinglPtFor>On
Nodes
Main Menu>Preprocessor>Loads>Define Loads>Apply>Thermal>Heat Flow>On Nodes
Main Menu>Solution>Define Loads>Apply>Electric>Excitation>AppCharge>On Nodes
Main Menu>Solution>Define Loads>Apply>Electric>Excitation>AppCurrent>On Nodes
Main Menu>Solution>Define Loads>Apply>Electric>Excitation>ImprCurr>On Nodes
Main Menu>Solution>Define Loads>Apply>Magnetic>Other>AppCurrSeg>On Nodes
Main Menu>Solution>Define Loads>Apply>Magnetic>Other>AppMagFlux>On Nodes
Main Menu>Solution>Define Loads>Apply>Structural>Force/Moment>On Node Components
Main Menu>Solution>Define Loads>Apply>Structural>Force/Moment>On Nodes
Main Menu>Solution>Define Loads>Apply>Structural>Spectrum>MultiPtNod>On Nodes
Main Menu>Solution>Define Loads>Apply>Structural>Spectrum>NodePSD>On Nodes
Main Menu>Solution>Define Loads>Apply>Structural>Spectrum>SinglPtFor>On Nodes
Main Menu>Solution>Define Loads>Apply>Thermal>Heat Flow>On NodesALLSEL,ALL ! 全选
EPLOT ! Plot Elements
!求解
ANTYPE,STATIC ! 设置分析类型为静力分析
Utility Menu>List>Status>Solution>Analysis Type
SOLVE ! 提交求解器进行求解
Main Menu>Solution>Solve>Current LS
FINISH ! 退出当前处理器
!后处理
/POST1 ! 访问POST1后处理器
Main Menu>General Postproc
/VIEW,, 0, 0, 1 ! 设置视图
PLDISP, 2 ! 显示结构变形形状且重叠显示结构变形前后的形状。
Main Menu>General Postproc>Plot Results>Deformed Shape
Utility Menu>Plot>Results>Deformed Shape
Utility Menu>PlotCtrls>Animate>Deformed ShapeANDSCL ! 生成变形形状的动画
Utility Menu>PlotCtrls>Animate>Deformed Shape
!显示位移云图
/POST1 ! 访问POST1后处理器
/VIEW,, 0, 0, 1 ! 设置视图
!PLNSOL 为用等值线或云图的方式显示结点处的计算结果;PLESOL 为用等值线或云图的方式显示单元的计算结果。
PLNSOL, U, Y, ! 绘制y方向位移云图
Main Menu>General Postproc>Plot Results>Contour Plot>Nodal Solu
Utility Menu>Plot>Results>Contour Plot>Nodal Solution
Utility Menu>PlotCtrls>Animate>Animate Over Results
Utility Menu>PlotCtrls>Animate>Animate Over Time
Utility Menu>PlotCtrls>Animate>Deformed Results
Utility Menu>PlotCtrls>Animate>Dynamic Results
Utility Menu>PlotCtrls>Animate>Isosurfaces
Utility Menu>PlotCtrls>Animate>Mode Shape
Utility Menu>PlotCtrls>Animate>Q-Slice Contours
Utility Menu>PlotCtrls>Animate>Time-harmonicPLESOL,Item,Comp,KUND,Fact,AVG
Main Menu>General Postproc>Plot Results>Contour Plot>Element Solu
Utility Menu>Plot>Results>Contour Plot>Elem Solution/EDGE,1,0 ! 仅显示边缘轮廓(对于等值线显示)
Utility Menu>PlotCtrls>Style>Edge Options
!显示连续应力云图
/POST1 ! 访问POST1后处理器
/VIEW,, 0, 0, 1 ! 设置视图
PLNSOL, S, X ! 绘制x方向连续正应力云图
/EDGE,1,1 ! 显示所有单元面之间的公共线(对于等值线显示)
/REPLOT ! Replot
Main Menu>General Postproc>Path Operations>Define Path>On Working Plane
Main Menu>General Postproc>Path Operations>Delete Path>All Paths
Main Menu>General Postproc>Path Operations>Delete Path>By Name
Main Menu>General Postproc>Path Operations>Plot Paths
Main Menu>Preprocessor>Modeling>Create>Circuit>Scale Icon
Main Menu>Preprocessor>Path Operations>Define Path>On Working Plane
Main Menu>Preprocessor>Path Operations>Delete Path>All Paths
Main Menu>Preprocessor>Path Operations>Delete Path>By Name
Main Menu>Preprocessor>Path Operations>Plot Paths
Utility Menu>Plot>Replot
Utility Menu>PlotCtrls>Style>Symmetry Expansion>Expansion by values!PLESOL 命令绘制的云图的等应力线 (contour lines) 呈锯齿状,PLNSOL 命令绘制的云图的等应力线平滑连续。
!显示非连续应力云图
/POST1 ! 访问POST1后处理器
/VIEW,, 0, 0, 1 ! 设置视图
PLESOL, S, X ! 绘制x方向非连续正应力云图
/EDGE,1,1 ! 显示所有单元面之间的公共线(对于等值线显示)
/REPLOT ! Replot
!提取结点应力/单元结点应力
ESEL,S, , ,141 ! 选择141号单元
ESEL,A, , ,142 ! 选择142号单元
Main Menu>Preprocessor>Modeling>CMS>CMS Superelements>By Picking
Main Menu>Preprocessor>Modeling>Create>Circuit>Delete Elements
Main Menu>Preprocessor>Modeling>Delete>Pre-tens Elemnts
Utility Menu>Select>Entities/PNUM,NODE,1 ! 显示结点编号
Utility Menu>PlotCtrls>Numbering
/REPLOT ! Replot
/GRAPHICS,POWER ! 开启 PowerGraphics Display、定义图形显示的类型。
Utility Menu>PlotCtrls>Style>Hidden-Line Options
/EFACET,2 ! 对于二阶单元,输出中间结点信息。指定PowerGraphics显示的每个元素边缘的切面数。
Main Menu>General Postproc>Options for Outp
Main Menu>General Postproc>Plot Results>Contour Plot>Nodal Solu
Utility Menu>List>Results>Options
Utility Menu>Plot>Results>Contour Plot>Nodal Solution
Utility Menu>PlotCtrls>Multi-Plot Contrls
Utility Menu>PlotCtrls>Style>Size and Shape! /EFACET,1 ! 对于二阶单元,不输出中间结点信息。
/REPLOT ! Replot
PRNSOL,S,COMP ! 列出结点上的应力结果,六个分量全部列出。
!PRESOL,S,COMP ! 列出单元上的应力数据,六个分量全部列出。
这篇也挺有用的: