secdata
SECDATA, VAL1, VAL2, VAL3, VAL4, VAL5, VAL6, VAL7, VAL8, VAL9, VAL10, VAL11, VAL12
- 工字形
*do 循环
*DO, Par, IVAL, FVAL, INC
Defines the beginning of a do-loop.
将最初的ival分配给par,每次以inc为步加到ival,直到超过,fval停止运行
*do,I,1,12,1 !i定义的变量
d
D, Node, Lab, VALUE, VALUE2, NEND, NINC, Lab2, Lab3, Lab4, Lab5, Lab6, MESHFLAG
Defines degree-of-freedom constraints at nodes.
d,2,ux,,,4,1,uy
2-4节点ux,uy都限制步数为1
DL
DL,LINE,AREA,Lab,Value1,Value2
Defines DOF constraints on lines.
定义线上的自由度
- line 选定线
- area 选定区域里的线
- lab
- SYMM 生成对称约束(symmetry)
- asym 生产反对称约束(antisymmetry)
- UX x方向的约束
- UY y方向的约束
sfbeam
SFBEAM, Elem, LKEY, Lab, VALI, VALJ, VAL2I, VAL2J, IOFFST, JOFFST, LENRAT
Specifies surface loads on beam and pipe elements
- Elem
施加表面载荷的元素。如果为 ALL,则对所有选定的梁单元 (ESEL) 施加载荷。如果 Elem = P,则启用图形拾取,并忽略所有剩余的命令字段(仅在 GUI 中有效)。在 Elem 中可以替换组件名称。 - LKEY
Load key associated with surface load (defaults to 1). Load keys (1, 2, 3, etc.) are listed under “Surface Loads” in the input table for each element type in the Element Reference. load - lab 中pres(pressure)
sfbeam,all,1,pres,20e3
/pbc
/PBC, Item, --, KEY, MIN, MAX, ABS
Shows boundary condition (BC) symbols and values on displays.
item
- ALL–Represents all appropriate labels.
- U — Applied translational constraints (UX, UY, UZ).
–, 不用
key:
-
0 — Do not show symbol.
-
1 — Show symbol.
-
2 — Plot value next to symbol.
MIN
- Minimum value in a range of values plotted on screen.
MAX
- Maximum value in a range of values plotted on screen.
/pbc,all,,1
/PSF
/PSF, Item, Comp, KEY, KSHELL, Color
Shows surface load symbols on model displays 打开荷载局部显示
KEY
Key to turn surface load symbols on or off:表面力显示开关
-
0 — Off (default).
-
1 — On, shown as face outlines. Line surface loads (SFL) on solid model plots are shown as arrows. 显示面轮廓
-
2 — On, shown as arrows. 以箭头的形式显示
-
3 — On, shown as color filled surfaces. Line and area surface loads (SFL and SFA) on solid model plots are shown as arrows. 显示以颜色填充的表面
KSHELL
Visibility key for shell elements. 关于壳体元素的显示开关
0 — Off (default), surface load symbols are displayed only on visible load faces. 只显示可见的表面力
1 — On, surface load symbols are displayed even if load face is not visible. 都显示
Color
Visibility key for contour legend.
ON — The symbols (arrows or face outlines) will show up in color with the legend showing the corresponding color labels (default). 轮廓图的颜色将会被显示
OFF — The contour legend will not be displayed. The symbols (arrows or face outlines) will show up in grey. The size of the arrows will be proportional to the applied load.轮廓图的颜色将不会被显示
/psf,pres,norm,1,0,1 !打开局部荷载显示
PRRSOL
PRRSOL, Lab
Prints the constrained node reaction solution. 打印支座反力
lab
Nodal reaction load type. If blank, use the first ten of all available labels. Valid labels are:
Structural force labels: FX, FY or FZ (forces); F (FX, FY and FZ); MX, MY or MZ (moments); M (MX, MY and MZ); BMOM (bimoments).
Thermal force labels: HEAT, HBOT, HE2, HE3, . . ., HTOP (heat flow).
Fluid force labels: FLOW (fluid flow); VFX, VFY and VFZ (fluid forces); VF (VFX, VFY and VFZ).
Electric force labels: AMPS (current flow); CHRG (charge); CURT (current); VLTG (voltage drop).
Magnetic force labels: FLUX (magnetic flux); CSGZ (magnetic current segment); CURT (current), VLTG (voltage drop).
Diffusion labels: RATE (diffusion flow rate).
SECTYPE
SECTYPE, SECID, Type, Subtype, Name, REFINEKEY
Associates section type information with a section ID number.
- SECID 选一个数字定义
- Type 选择一个类型
-BEAM — Defines a beam section. This option has a Subtype
-LINK — Defines a link section.
-PIPE — Defines a pipe section.
-hrec——方管形 - subtype 选择截面类型
- name 名字
- REFINEKEY 网格划分精度
Sets mesh refinement level for thin-walled beam sections. Valid values are 0 (the default – no mesh refinement) through 5 (high level of mesh refinement). This value has meaning only when Type = BEAM.
KGEN
KGEN, ITIME, NP1, NP2, NINC, DX, DY, DZ, KINC, NOELEM, IMOVE
Generates additional keypoints from a pattern of keypoints.
* ITIME 运行的次数
* NP1,NP2,NINC 从关键点NP1(默认为1)到NP2 步距为NINC,如果NP1为all则忽略NP2和NINC.
* KINC生成的集之间的关键点增量。如果为零,则分配最低的可用关键点编号 [NUMSTR]。
* NOELEM 0—生成与原始关键点关联的节点和点元素(如果存在);1—不生成节点和元素
* IMOVE指定是移动关键点还是新定义关键点:0—使用 ITIME 参数根据请求生成其他关键点。1—将原始关键点移动到新位置,同时保留相同的关键点编号(忽略 ITIME、KINC 和 NOELEM)。仅当旧关键点在其原始位置不再需要时才有效。如果不需要,相应的网格化项目也会在其原始位置移动。
** 一般用不上后三个**
lgen
LGEN, ITIME, NL1, NL2, NINC, DX, DY, DZ, KINC, NOELEM, IMOVE
Generates additional lines from a pattern of lines.
其他的同kgen
LARC (画圆弧)
LARC, P1, P2, PC, RAD
Defines a circular arc. 定义一个圆弧
- p1 起点
- p2 终点
- pc 关键点
- RAD 曲率
keyopt
KEYOPT、ITYPE、KNUM、VALUE
Sets 元素键选项。
- ITYPE 先定义的et编号
- KNUM 要定义的 KEYOPT 的编号
- VALUE 定义单元几次形函数
secoffest
SECOFFSET, Location, OFFSET1, OFFSET2, CG-Y, CG-Z, SH-Y, SH-Z
Defines the section offset for cross sections.
定义截面的偏移量
- location (位置,定位) beam,shell,pipes各不相同
当为beam时
Location
-
CENT – Beam node will be offset to centroid (default).(无截面偏置)
-
SHRC – Beam node will be offset to shear center.
-
ORIGIN – Beam node will be offset to origin of the cross section.
-
USER – Beam node will be offset to the location specified by the OFFSETY and OFFSETZ arguments.
OFFSETY, OFFSETZ
Values that locate the node with respect to the default origin of the cross section when the Location argument is set to USER. Valid only when USER is set.
The following figure illustrates the offsets for a channel cross section, and shows the relative locations of SHRC and CENT.
Figure 15: Offsets for a CHAN Section Subtype
-
CG-Y, CG-Z, SH-Y, SH-Z
Override the program-calculated centroid and shear centroid locations.Note: This option should only be used by advanced users modeling composite cross sections.
定位截面
方法1
先对梁单元进行设置(几次形函数,什么材料,泊松比、弹性模量、有无偏差、尺寸),然后定义一个定位节点n。
用n定义节点单元,用e进行连接,轴线的方向沿着原点到定位节点。
例如
finish
/clear
/prep7
et,1,beam188
keyopt,1,3,3 !三次形函数
mp,ex,1,2e11 !截面无偏置
mp,prxy,1,0.3
sectype,1,beam,I,,0 !截面类型工字形
secoffset,cent
secdata,0.2,0.2,0.25,0.012,0.012,0.01 !设置截面
n,1,
n,13,6,0,0
fill !填充形成中间节点
n,100,0,1,0 !截面定位节点
*do,I,1,12,1
e,i,i+1,100 !通过相邻节点创建梁单元
*enddo
/view,1,1,2,3
/eshape
plot
finish
方法二
材料定义与前者一样,然后定义一个定位点。先用k定义节点然后用l连接起来。
用latt命令进行方向定位,具体定位不太清楚= = 以后求证。
lesize
LESIZE
LESIZE, NL1, SIZE, ANGSIZ, NDIV, SPACE, KFORC, LAYER1, LAYER2, KYNDIV
Specifies the divisions and spacing ratio on unmeshed lines.(在为划分的线段上,指定划分间隔和比例)
- NL1 选择要划分的线段,all和p;p是拾取在gui中
- SIZE 分割的长度(在NDIV为0的时候选用)
- ANGSIZE 由元素边跨越的分割弧(以度为单位)(直线除外,它始终导致一个分割)。除数根据行长自动计算(向上舍入到下一个整数)。
- NDIV 如果为正,则 NDIV 是每行的元素划分数。如果 -1(并且 KFORC = 1),则假定 NDIV 为每行零元素除法。具有刚性规范的 TARGE169 忽略了 NDIV,并且始终与一个元素划分进行网格划分。
- Space:“+”: 最后尺寸比最先尺寸。
“-“:中间尺寸比两端尺寸。 - KYNDIV
- 0 自动划分的尺寸不能覆盖指定的区域和比例,如果不匹配则划分会失败
- 1 自动划分的尺寸能覆盖指定的区域和比例,如果不匹配则划分不会失败
lesize,all,0.2
LMESH
LMESH, NL1, NL2, NINC
Generates nodes and line elements along lines.
沿着直线创建关键点和线
- NL1 , NL2 ,NINC 从NL1到NL2 步数为1,如果NL1为all则忽略其他的
- 一般和lesize连用
lesize,all,0.2
lmesh,all
ESLL
ESLL,Type (通常和LSEL连用)
Selects those elements associated with the selected lines.
选择与所选线段相关联的元素
Type
Label identifying the type of element select:
S — Select a new set (default).
R — Reselect a set from the current set.
A — Additionally select a set and extend the current set.
U — Unselect a set from the current set.
lsel,s,loc,z,1
lsel,a,loc,z,2
esll,s
sfbeam,all,1,pres,5e3
NSEL
NSEL,Type,Item,Comp,VMIN,VMAX,VINC,KABS
Selects a subset of nodes.
创建一个新的节点子集
LSEL
LSEL, Type, Item, Comp, VMIN, VMAX, VINC, KSWP
Selects a subset of lines.
选择线段的一个子集
-
type Lable identifying the type of select
* s select a new (default)
* r reselect a set from the current set
* a additionally select a set and extend the current set
* u
* all
* none
* inve
* stat -
Item comp
-
VMIN 项目范围内的最小值
-
VMAX 项目范围的最大值 默认为VMIN
-
VINC 项目范围内的增长,默认为1,不能为负数。
-
KSWP
- 0 只选择线
- 1 选择线也选择关键节点(nodes keypoints)
latt
LATT,MAT,REAL,TYPE,--,KB,KE,SECNUM
MAT, REAL, TYPE
Material number, real constant set number, and type number to be associated with selected, unmeshed lines.
材料编号 实常数编号 单元类型选择
Associates element attributes with the selected, unmeshed
lines.
将元素属性与选定的无网格线关联起来
*** 前三个基本用不上,第四个为空,KB,KE用来定位,可以只用一个***
- MAT, REAL, TYPE
Material number, real constant set number, and type number to be associated with selected, unmeshed
lines.
ALLSEL
ALLSEL, LabT, Entity
Selects all entities with a single command.
- Lab 选择all则选择所有的实体类型 选择BELOW则从Entity中再选择
- Entity
- all- all entity types(default)
- VOLU-Volumes
- AREA -面
- LINE- 线、
- kp – 节点
- elem -elements
- node – 节点
FDELE
FDELE, NODE, Lab, NEND, NINC, Lkey
Deletes force loads on nodes.
删除节点上的力
- NODE
* ALL 选择所有的
* P 仅在gui命令中使用 - Lab
fill
FILL, NODE1, NODE2, NFILL, NSTRT, NINC, ITIME, INC, SPACE
Generates a line of nodes between two existing nodes.
在两个节点直接填充节点
- NODE1 NODE2 –两个节点号
- NFILL 有多少个节点
- NSTRT 第一个填充的节点编号
- NINC 步距(有NFILL可以不填)
- TIME, INC
Do fill-in operation a total of ITIMEs, incrementing NODE1, NODE2 and NSTRT by INC each time after the first. ITIME and INC both default to 1. - sapce— Spacing ratio. Ratio of last division size to first division size. If > 1.0, divisions increase. If < 1.0, divisions decrease. Ratio defaults to 1.0 (uniform spacing).
BFUNIF
BFUNIF, Lab, VALUE
Assigns a uniform body-force load to all nodes.
bfunif,temp,-10
ETABLE
ETABLE, Lab, Item, Comp, Option
Fills a table of element values for further processing.
定义元素表
etable,fxi,smisc1,1 !轴力
etable,fxj,smisc2,14
etable,mi,smisc,2 !弯矩
etable,mj,smisc,15
etable,sfi,smisc,5 !剪力
etable,sfj,smisc,18
PLLS
PLLS, LabI, LabJ, Fact, KUND,ViewUP
Displays element table items as contoured areas along elements.
绘制元素曲线(轴力 弯矩 剪力等)
-
LabI
Label of element table item (ETABLE) for node I magnitude. -
LabJ
Label of element table item for node J magnitude. -
Fact
Scale factor for display (defaults to 1). A negative scaling factor may be used to invert the display.(图形比例默认为1) -
KUND
- 0 在为变形的形状上显示
- 1 在变形的形状是显示所选项目
-
ViewUP
0—Ignore the view-up (/VUP) vector when calculating trapezoid orientation (default).计算梯形方向时忽略向上视图 (/VUP) 矢量(默认)。
1—Use the view-up (/VUP) vector to calculate trapezoid orientation.使用向上视图 (/VUP) 矢量计算梯形方向。
ET
ET
ET, ITYPE, Ename, KOP1, KOP2, KOP3, KOP4, KOP5, KOP6, INOPR
Defines a local element type from the element library.
PLANE182单元
MP
MP,Lab,MAT,C0,C1,C2,C3,C4
Defines a linear material property as a constant or a function of temperature.
- EX
Elastic moduli (also EY, EZ) (弹性模量) - prxy 泊松比
- dens 密度质量
TYPE
TYPE,ITYPE
Sets the element type attribute pointer.
为元素设置一个指针
- ITYPE 为元素指定类型编号默认为1
MSHKEY
MSHKEY,KEY
Specifies whether free meshing or mapped meshing should be used to mesh a model
指定是否使用自由网格和映射网格来划分模型
- KEY
- 0 自由网格
- 1 映射网格
- 2 尽可能使用自由影视网格,
MSHAPE
MSHAPE,KEY,Dimension
For elements that support multiple shapes, specifies the element shape to be used for meshing
指定划分网格的形状
- key
- 0 当dimension为2d时为四边形,当dimension为3d时为六面体。
- 1 当dimension为2d时为三角形,当dimension为3d时为四面体。
- dimension
- 2d
- 3d
SF
SF,Nlist,Lab,VALUE,VALUE2
Specifies surface loads on nodes.
指定节点的表面力
SFL
SFL,Line,Lab,VALI,VALJ,VAL2I,VAL2J
Specifies surface loads on lines of an area
- VALi 最小值,不输入默认为0
- VALj最大值
- VAL2I,VAL2J 第二个表面荷载值
local
LOCAL,KCN,KCS,XC,YC,ZC,THXY,THYZ,THZX,PAR1,PAR2
Defines a local coordinate system by a location and orientation
- kcn 定义坐标名字,从11开始
- kcs
- THXY
First rotation about local Z (positive X toward Y).逆时针为正 - THYZ
Second rotation about local X (positive Y toward Z). - THZX
Third rotation about local Y (positive Z toward X)
SFGRAD
SFGRAD,Lab,SLKCN,Sldir,SLZER,SLOPE
Specifies a gradient (slope) for surface loads.
指定表面荷载的梯度
sfgrad,pres,11,y,0,-7672.6
sf,all,pres,450000
11坐标系,y方向中0的坐标 荷载为450000pa,并且以7672.6pa/m的梯度沿着y轴正向递减
SFTRAN
SFTRAN
Transfer the solid model surface loads to the finite element model.
将所有荷载转换为单元荷载
ACEL
ACEL,ACEL_X,ACEL_Y,ACEL_Z
Specifies the linear acceleration of the global Cartesian reference frame for the analysis.
给全局笛卡尔坐标系指定线性加速度用于分析
PLDISP
PLDISP,KUND
Displays the displaced structure.
显示结构位移
- KUND
- 0 只显示结构位移
- 1 重叠显示结果变形前后形状图
- 2 显示变形前结构的边界形状
PLNSOL PLESOL
PLNSOL,Item,Comp,KUND,Fact,FileID
Displays solution results as continuous element contours
绘制计算结果以元素轮廓图的形式
PLESOL,Item,Comp,KUND,Fact
Displays solution results as discontinuous element contours.
以不连续的
plnsol,s,x,0,1 !绘制水平方向位移,等值线图
plnsol,s,y,0,1 !绘制竖向方向位移,等值线图
plnsol,s,xy,0,1 !绘制剪应力方向位移,等值线图
plnsol,s,eqv,0,1 !绘制等效应力移,等值线图
AFUN
*AFUN,Lab
Specifies units for angular functions in parameter expressions.
为参数表达式指定参数函数
- lab
- RAD – Use radians for input and output of parameter angular functions (default).(弧度)
- DEG – Use degrees for input and output of parameter angular functions. (°)
- STAT – Show current setting (DEG or RAD) for this command.
PCIRC
PCIRC,RAD1,RAD2,THETA1,THETA2
Creates a circular area centered about the working plane origin
在工作平面创建一个圆面(环)
- RAD1,RAD2 内半径和外半径(顺序任意)
- THETA1,THETA2 圆形区域的起始和结束角度(任意顺序)
csys
CSYS,KCN
Activates a previously defined coordinate system.
激活先定义的坐标系
rsys
RSYS,KCN
Activates a coordinate system for printout or display of element and nodal results
激活一个坐标系
path
PATH,NAME,nPts,nSets,nDiv
Defines a path name and establishes parameters for the path.
定义一个路径名,并为该路径建立参数
- NAME 名字
- npts 用于定义此路径的点数。最小值是2,最大值是1000。默认值为2
- nsts 可以映射到此路径的数据集的数量。您必须至少指定4个:X、Y、Z和S。默认值为30
- ndiv 相邻点之间的除法数。默认值为20。没有最大数量的划分数
PPATH
PPATH,POINT,NODE,X,Y,Z,CS
Defines a path by picking or defining nodes, or locations on the currently active working plane, or by
entering specific coordinate locations.
通过拾取或定义当前活动工作平面上的节点或位置,或通过输入特定的坐标位置来定义路径
- point 点数必须小于或等于path中的npts值
- node 节点号
- xyz 坐标
- cs 前一个点和此点之间的路径插值的坐标系。如果您希望使用当前活动的坐标系,请省略此参数。如果相邻两个点的坐标系不同,则使用后一点的CS值
PDEF
PDEF,Lab,Item,Comp,Avglab
Interpolates an item onto a path.
将项目插到路径上去
PLPATH
PLPATH,Lab1,Lab2,Lab3,Lab4,Lab5,Lab6
Displays path items on a graph.
在表格是绘制路径上的项目
DTRAN
仅转换约束自由度命令DTRAN
边界条件和荷载转换命令SBCTRAN
这两条命令将几何模型的约束和荷载转换到有限元模型上,也可不执行该命令,求解时由系统自动转换。
/PNUM
/PNUM, Label, KEY
Controls entity numbering/coloring on plots.
控制绘图中的实体编号/着色
-
label
Type of numbering/coloring:
NODE 节点编号
Node numbers on node and element plots.
ELEM 元素图上元素编号和颜色
Element numbers and colors on element plots.
SEC 元素和实体模型图上的部分编号和颜色
Section numbers and colors on element and solid model plots (see “Notes” (p. 1284)).
MAT 元素和实体模型图上的材料集数字和颜色
Material set numbers and colors on element and solid model plots (see “Notes” (p. 1284)).
TYPE 元素和实体模型图上的元素类型、参考号和颜色
Element type reference numbers and colors on element and solid model plots (see “Notes” (p. 1284)).
REAL 元素和实体模型图上的实常集合数和颜色
Real constant set numbers and colors on element and solid model plots (see “Notes” (p. 1284)).
ESYS
Element coordinate system numbers on element and solid model plots (see “Notes” (p. 1284)).
PART
Element part numbers and colors on element plots (applicable to ANSYS LS-DYNA only).
LOC
Location numbers/colors of the element in matrix assembly order on element plots. -
key
Switch:
0
Turns OFF numbers/colors for specified label.
1
Turns ON numbers/colors for specified label.
Select 选择命令族的运用
S 选择当前所有的
R 重新选择
A 从已经选择的再次选择
U 去除已经选择的
Inve反选择
Loc根据坐标 Mat材料类别
GPLOT
GPLOT
Controls general plotting.
显示所有的点线面
/PNUM
/PNUM, Label, KEY
Controls entity numbering/coloring on plots.
打开控制实体显示的开关:例如线的标号,节点标号
BLC4
BLC4, XCORNER, YCORNER, 宽度, 高度, 深度.
blc4,0,0,10,5,
BLC5
BLC5, XCENTER, YCENTER, WIDTH, HEIGHT, DEPTH
Creates a rectangular area or block volume by center and corner points.
BLC5,0,0,10,5,
V
V,
通过关键点围成体
VA
VA,,,,
通过关键面围成体