下面的ansys命令总是出现missing subscriptt 1 is out of range for parameter T5,不知道错在哪里,请高手解答

*SET,%_FNCNAME%(0,0,1), 0.0, -999
*SET,%_FNCNAME%(2,0,1), 0.0
*SET,%_FNCNAME%(3,0,1), 0.0
*SET,%_FNCNAME%(4,0,1), 0.0
*SET,%_FNCNAME%(5,0,1), 0.0
*SET,%_FNCNAME%(6,0,1), 0.0
*SET,%_FNCNAME%(0,1,1), 1.0, 99, 0, 1, 1, 0, 0
*SET,%_FNCNAME%(0,2,1),
*SET,%_FNCNAME%(0,3,1),
*SET,%_FNCNAME%(0,4,1),
*SET,%_FNCNAME%(0,5,1),
*SET,%_FNCNAME%(0,6,1),
*SET,%_FNCNAME%(0,7,1),
*SET,%_FNCNAME%(0,8,1),
*SET,%_FNCNAME%(0,9,1),
*SET,%_FNCNAME%(0,10,1),
调用格式:*SET,
Par, VALUE, VAL2,
VAL3, VAL4, VAL5,
VAL6, VAL7, VAL8,
VAL9, VAL10Assigns values to user-named parameters.参数:
Argument Descriptions
ParAn alphanumeric name used to identify this parameter. Par may
be up to 32 characters, beginning with a letter and containing only letters,
numbers, and underscores. Examples: ABC A3X TOP_END. ANSYS command names,
function names, label names, component and assembly names, etc., should not be
used. Parameter names beginning with an underscore (e.g., _LOOP) are reserved
for use by ANSYS and should be avoided. Parameter names ending in an underscore
are not listed by the *STATUS command. Array parameter names
must be followed by a subscript, and the entire expression must be 32 characters
or less. Examples: A(1,1) NEW_VAL(3,2,5) RESULT(1000). There is no character
parameter substitution for the Par field. Table parameters that
are used in command fields (where constant values are normally given) are
limited to 32 characters.VALUENumerical value or alphanumeric character string (up to 8 characters enclosed
in single quotes) to be assigned to this parameter. Examples: A(1,3)=7.4
B='ABC3'. May also be a parameter or a parametric expression. Examples: C=A(1,3)
A(2,2)=(C+4)/2. If blank, delete this parameter. Example: A= deletes parameter
A.VAL2, VAL3,
VAL4, VAL5, VAL6,
VAL7, VAL8, VAL9,
VAL10If Par is an array parameter, values VAL2
through VAL10 (up to the last nonblank value) are sequentially
assigned to the succeeding array elements of the column. Example: *SET,A(1,4),10,11
assigns A(1,4)=10, A(2,4)=11. *SET,B(2,3),'file10','file11' assigns B(2,3)='file10',
B(3,3)='file11'. (以上内容转载自ansys10.0帮助文献)
多维数组赋值
多维数组赋值
功能:给用户命名的参数赋值。&br&具体为:*SET,Par,VALUE,VAL2,VAL3,VAL4,VAL5,VAL6,VAL7,VAL8,VAL9,VAL10&br&Par:将要赋值的参数名称。%_FNCNAME%(0,10,1)就是参数名称。这应该是一个数组参数,前面需要用*DIM进行指定。&br&VAL:这就是赋予的数值。
功能:给用户命名的参数赋值。具体为:*SET,Par,VALUE,VAL2,VAL3,VAL4,VAL5,VAL6,VAL7,VAL8,VAL9,VAL10Par:将要赋值的参数名称。%_FNCNAME%(0,10,1)就是参数名称。这应该是一个数组参数,前面需要用*DIM进行指定。VAL:这就是赋予的数值。&& 查看话题
ANSYS体热源如何通过表格法加载,定义表格索引值时总出错
大家好,请问ANSYS体热源如何通过表格法加载,我已经成功的通过三维表格法对高斯面热源进行施加,可是换到高斯旋转体热源,用四维表格时,定义表格的表头也就是索引值的时候总出问题,下面是我的APDL程序中关于表格定义的一段,到底如何定义四维表格,请大家帮助,万分感谢!
这段程序执行到*SET,FLUX2(0,0,0,K),(K-1)*TINC时就会报错“Subscript 3 is out of range for parameter FLUX2. Specified value is 0 Maximum is 6.”
*SET,TINC,0.033
*SET,LSIZE,0.5E-3
*DIM,FLUX2,TAB4,41,11,6,101,X,Y,Z,TIME
*DO,K,1,101,1
*DO,L,1,6,1
&&*DO,I,1,41,1
&&*SET,FLUX2(I,0,L,K),(I-1)*LSIZE
&&*DO,J,1,11,1
&&*SET,FLUX2(0,J,L,K),-(11-J)*LSIZE
*SET,FLUX2(0,0,L,K),-(6-L)*LSIZE
*SET,FLUX2(0,0,0,K),(K-1)*TINC
自己顶一下 额表示四维数组搞了三个月没搞出来~~ : Originally posted by 金华岁月 at
额表示四维数组搞了三个月没搞出来~~ 我之前看到您关于表格加载的程序了,谢谢您,好像跟我的问题一样,总是在定义表格就出问题,还没涉及到填写呢,请问您最后是用其他的加载方式来实现体热源的加载了吗:D : Originally posted by xiaoyu7987 at
我之前看到您关于表格加载的程序了,谢谢您,好像跟我的问题一样,总是在定义表格就出问题,还没涉及到填写呢,请问您最后是用其他的加载方式来实现体热源的加载了吗:D... 我帖子上说了,练习你提热源还是用三维数组XYZ,然后再将热源中心定义成规律变化,理论上也是一条路 : Originally posted by 金华岁月 at
我帖子上说了,练习你提热源还是用三维数组XYZ,然后再将热源中心定义成规律变化,理论上也是一条路
... 您说的我之前没做过,就是放弃时间这一维度吗,能给出一个简单的例子吗,如果能做当然也可以了,也不是非要纠结这个思维表格,只要能实现三维体热源加载就行:D : Originally posted by xiaoyu7987 at
您说的我之前没做过,就是放弃时间这一维度吗,能给出一个简单的例子吗,如果能做当然也可以了,也不是非要纠结这个思维表格,只要能实现三维体热源加载就行:D... 这是一种思路,你可以走走看 为什么不用函数的方式写体热源? 用函数定义后再载入&&,不是更好 : Originally posted by 金华岁月 at
这是一种思路,你可以走走看
... 采用移动局部坐标的方式,激活局部坐标再进行表格定义和体热源的加载,计算时发现,热源一直没动,始终处于全局坐标的零点,请问这是什么原因造成的,移动局部坐标的同时还需要移动工作平面吗? : Originally posted by 金华岁月 at
这是一种思路,你可以走走看
... 采用移动局部坐标的方式,激活局部坐标再进行表格定义和体热源的加载,计算时发现,热源一直没动,始终处于全局坐标的零点,请问这是什么原因造成的,移动局部坐标的同时还需要移动工作平面吗? : Originally posted by xiaoyu7987 at
采用移动局部坐标的方式,激活局部坐标再进行表格定义和体热源的加载,计算时发现,热源一直没动,始终处于全局坐标的零点,请问这是什么原因造成的,移动局部坐标的同时还需要移动工作平面吗?... 首先确定数组可不可以以局部坐标系为参考,握的只是方案可行性看你自己验证啊 *SET,FLUX2(0,0,L,K),-(6-L)*LSIZE&&!!这里L不可以等于0
*SET,FLUX2(0,0,0,K),(K-1)*TINC& &!!这里L不可以等于0 对于表数组,只要前两个下标 (行和列) 可以为零,其它下标都是从 1 开始。
&&你的命令流中,表数组的第三个下标使用了 0,所以出错。下面的ansys命令总是出现subscript 1 is out of range for parameter T5,不知道错在哪里,请高手解答_百度知道
下面的ansys命令总是出现subscript 1 is out of range for parameter T5,不知道错在哪里,请高手解答
/PREP7 CSWPLA,12,1,1,1CS哗肌糕可蕹玖革雪宫磨YS,12 NSEL,S,LOC,X,0.047,0.048 NSEL,R,LOC,Y,0,60
NSEL,R,LOC,Z,-0.0185,0 *GET,NMAX,NODE,,NUM,MAX*GET,NMIN,NODE,,NUM,MIN
*DIM,T5,ARRAY,NMAX,1,1
*DO,L,NMIN,NMAX
*IF,NSEL(L),EQ,1,THEN T5(L)=(310000*(NZ(L)+0.0185) *COS(NY(L)))
SFFUN,PRES,T5(1)
SF,ALL,PRES,0
提问者采纳
*GET,NMAX,NODE,,NUM,MAX应为*GET,NMAE,NODE,NUM,MAX
问题我已经找到了,不过不是这个,但是还是谢谢你。
其他类似问题
为您推荐:
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁 上传我的文档
 下载
 收藏
熟悉PLC编程,精通弱电自动化控制系统。
 下载此文档
正在努力加载中...
Design of a 3-DOF PKM module for large structural component machining
下载积分:1995
内容提示:Design of a 3-DOF PKM module for large structural component machining
文档格式:PDF|
浏览次数:0|
上传日期: 03:05:49|
文档星级:
该用户还上传了这些文档
Design of a 3-DOF PKM module for large structural
官方公共微信*VWRITE命令中文详解&ANSYS
*VWRITE命令中文详解 ANSYS
泣血翻译啊!欢迎大家修改!
by 失忆的草履虫
*VWRITE, Par1, Par2, Par3, Par4, Par5, Par6, Par7, Par8, Par9,
Par10, Par11, Par12, Par13, Par14, Par15, Par16,Par17, Par18,
按照指定格式向文件中写入数据
Argument Descriptions
Par1, Par2, Par3, . . . , Par19
You can write up to 19 parameters (or constants) at a time.
Any Par values after a blank Par value are ignored. If you leave
them all blank, one line will be written (to write a title or a
blank line). If you input the keyword SEQU, a sequence of numbers
(starting from 1) will be written for that item.
Par1, Par2, Par3, . . . , Par19
你一次最多可以写入19个参数(或者常数)。空白的par值将被忽略。如果您全部置空,将只会写入一行内容(用这种方法去写一行名称或是一个空行)。如果您输入SEQU关键字,每行都有一个序列号(从1开始)。
You use *VWRITE to write data to a file in a formatted
sequence. Data items (Par1, Par2, etc.) may be array parameters,
scalar parameters, character parameters (scalar or array), or
constants. You must evaluate expressions and functions in the data
item fields before using the *VWRITE command, since initially they
will be evaluated to a constant and remain constant throughout the
operation. Unless a file is defined with the*CFOPEN command, data
is written to the standard output file. Data written to the
standard output file may be diverted to a different file by first
switching the current output file with the /OUTPUT command.You can
also use the *MWRITE command to write data to a specified file.
Both commands contain format descriptors on the line immediately
following the command. The format descriptors can be in either
Fortran or C format.
& & 你使用 *VWRITE
命令,按照格式化的顺序向一个文件中写入数据。数据项(PAR1,PAR2,等)可以是参数数组,标量参数,字符参数(标量的或是数组的),或是常量。你必须在使用该命令之前计算数据项里的表达式和函数,因为在开始的时候他们被计算为一个常数,并在整个的操作过程中一直保持为常数形式。只有先用*CFOPEN命令定义一个文件,数据才会输出到标准输出文件中去。写入到标准输出文件里的数据可以通过/OUTPUT命令转换现有输出文件转移到不同的文件中去。你也可以使用*MWRITE命令将数据写入一个指定的文件。两个命令都可以在紧跟着命令行之后包含格式描述符。格式描述符可以是Fortran或者C格式的。
You must enclose Fortran format descriptors in parentheses.
They must immediately follow the *VWRITE command on a separate line
of the same input file. Do not include the word FORMAT. The format
must specify the number of fields to be written per line, the field
width, the placement of the decimal point, etc. You should use one
field descriptor for each data item written. The write operation
uses your system's available FORTRAN FORMAT conventions (see your
system FORTRAN manual). You can use any standard FORTRAN real
format (such as (4F6.0), (E10.3,2X,D8.2), etc.) and alphanumeric
format (A). Alphanumeric strings are limited to a maximum of 8
characters for any field (A8) using the Fortran format. Use the “C”
format for string arrays larger than 8 characters. Integer (I) and
list-directed (*) descriptors may not be used. You can include text
in the format as a quoted string. The parentheses must be included
in the format and the format must not exceed 80 characters
(including parentheses). The output line length is limited to 128
characters.
你必须要在括号里写入Fortran格式描述符。它们必须在这同一个输入文件当中另起一行,紧跟在*VWRITE
命令之后。格式必须说明写入每一行的字段的数目、字段的宽度和小数点的位置等等。你需要为每一个写入的数据项分别使用一个字段描述符。写操作使用你电脑系统的有效的FORTRAN格式约定(参见你系统里的FORTRAN手册)。你可以使用任何标准的FORTRAN实数格式(例如(4F6.0),
(E10.3,2X,D8.2),
等等)和字母数字格式(A)。使用Fortran格式的字母数字字符串被限制为最多8个字符(A8)。使用C格式的字符串数组大于8个字符。整型(I)和表式(*)描述符不被使用。你可以用引用字符串的格式包含文本。括号必须包含在格式里,并且格式不得超过80个字符(包括括号)。输出行的长度限制在128个字符。
The “C” format descriptors are used if the first line of the
format descriptor is not a left parenthesis. “C” format descriptors
are up to 80 characters long, consisting of text strings and
predefined "data descriptors" between the strings where numeric or
alphanumeric character data will be inserted. The normal
descriptors are %I for integer data, %G for double precision data,
%C for alphanumeric character data, and %/ for a line break. Each
descriptor must be preceded by a blank. There must be one data
descriptor for each specified value (8 maximum) in the order of the
specified values. The enhanced formats described in *MSG may also
如果格式描述符的第一行不是一个左括号,那么C格式的格式描述符将被使用。C格式描述符超过80个字符长度,由文本字符串和预定义数据描述符组成,数据描述符位于字符串之间,数字和字母数字字符数据将被插入这些字符串。标准的描述符是:整型%I
,双精度型%G
,字母数字型%C而%/代表换行符。每一个描述符的前面必须要有一个空格。按指定值大小的顺序,每一个指定值(最大为8)都必须要有一个数据描述符。增强的格式描述也可以在*MSG命令中使用。
For array parameter items, you must define the starting array
element number. Looping continues (incrementing the vector index
number of each array parameter by one) each time you output a line,
until the maximum array vector element is written. For example,
*VWRITE,A(1) followed by (F6.0) will write one value per output
line, i.e., A(1), A(2), A(3), A(4), etc. You write constants and
scalar parameters with the same values for each loop. You can also
control the number of loops and loop skipping with the*VLEN and
*VMASK commands. The vector specifications*VABS, *VFACT, and *VCUM
do not apply to this command. If looping continues beyond the
supplied data array's length, zeros will be output for numeric
array parameters and blanks for character array parameters. For
multi-dimensioned array parameters, only the first (row) subscript
is incremented. See the *VOPER command for details. If you are in
the GUI, the *VWRITE command must be contained in an externally
prepared file and read into ANSYS (i.e., *USE, /INPUT, etc.).
This command is valid in any processor.
对于数组参数项,你必须定义开始的数组元素数目。每输出一行便循环一次(每一个数组参数的矢量指数数目的增量为1),直到最大的数组矢量元素被写。例如,*VWRITE,A(1)
,后面接着(F6.0) ,将会在每一个输出行写一个值,例如 A(1), A(2), A(3), A(4),
等等。常数和标量参数将会在每次循环写入相同的值。你也可以通过*VLEN 和
*VMASK命令控制循环的数目和跳出。描述矢量的命令*VABS, *VFACT, 和
*VCUM无法在这个命令里应用。当循环的次数超过提供的数据数组的长度之后,数值数组将会输出0,字符数组将会输出空格。对于多维数组参数,只有第一(行)下表增加。查看细节,请参看*VOPER命令。如果你是用GUI操作,那么
*VWRITE 命令必须被包含在一个已准备好的外部文件内,然后读进ANSYS(例如*USE, /INPUT等命令)。
这个命令在任何处理器(当然是指ANSYS的处理器,不是指电脑处理器,你懂的……)下都有效。
已投稿到:
以上网友发言只代表其个人观点,不代表新浪网的观点或立场。

我要回帖

更多关于 missing subscript 的文章

 

随机推荐