用apdl提取模型的最大应力

最大应力提取
首先用命令流选种板,然后用*get命令提取
查看帮助,建立单元表

载荷条件复杂的瞬态分析最大应力值及
定义的数组变量可以进行各种变量操作:
plot/list vs time

*dim,maxseqvnode,table,63,1,1,,, !(定义数组)
*do,iset1,1,63,1 !(根据结果存储的数目而定,如 63)
/post1
set,1,,1,,,,iset1,
plnsol,s,eqv,0
*get,maxseqv_nodei,plnsol,0,max !(获取结果,这里是最大mises等效应 力)
*set,maxseqv_node(iset-1,0,1),(iset-1)*4e-4 !(确定对应的时间值)
*set,maxseqv_node(iset-1,1,1),maxseqv_nodei !(写入最大等效应力值)
*enddo

获得最大应力和最大位移点的节点编号
最大应力节点编号的提取:
allsel
nsort,s,eqv,0,0,all
*get,max_eqv,sort,0,imax

最大位移节点编号的提取:
allsel
nsort,u,sum,0,0,all
*get,max_u,sort,0,imax

 

 

http://www.baisi.net/thread-809436-1-1.html

消除txt数据文件中空行


/page,99999,132,99999,240

在ANSYS输出数据列表之前,先运行该行命令即可。

最后的结果应该是输出的数据只在最前面和最后面有文字行说明,数据行中间不会有文字行出现。

www.chinavib.com/forum/viewthread.php?tid=47127

================

一、消除txt数据文件中空行批处理matlab小程序

%下面这段才是真正的读入数据写出数据的程序
%需要txt原型数据文件,然后可以将所有的字符行消除,空行消除

考虑到写入数据文件其实并没有什么意义,同时修改数据行中可以包含小数点(.)、-、E(科学计数法)等符号。
function [data]=distilldata(infile)
%功能说明:
%将保存数据的原始文件中的数值数据读入到一个data变量中
%使用说明:
% infile——原始数据文件名;
% data=数据变量

tmpfile=’tmp.mat’;
fidin=fopen(’aaa.txt’,'r’); % 打开原始数据文件(aaa.txt)
fidtmp=fopen(tmpfile,’w'); % 创建保存数据文件(不含说明文字)
while ~feof(fidin) % 判断是否为文件末尾
tline=fgetl(fidin); % 从文件读入一行文本(不含回车键)
if isempty(tline) | tline==’ ‘ % 判断是否空行
continue
else
[m,n]=size(tline);
flag=1;
for i=1:n %判断一行中有没有字符(+-.Ee和空格键除外)
if tline(i)==’ ‘|tline(i)==’-'|tline(i)==’.'|tline(i)==’E'…
|tline(i)==’e'|tline(i)==’+'…
|(double(tline(i))>=48&&double(tline(i))<=57)
continue
else
flag=0;
break
end
end
if flag==1 % 如果是数字行,把此行数据写入文件
fprintf(fidtmp,’%s\n’,tline);
else
continue
end
end
end
fclose(fidin);
fclose(fidtmp);
data=textread(tmpfile);

Path Plots to Compare Results (Wenguo.Ning)

Xansys Digest, Vol 81, Issue 10

2. Path Plots to Compare Results (Wenguo.Ning)

Message: 2
Date: Sun, 11 Oct 2009 16:13:12 +0800
From: “Wenguo.Ning”
Subject: [Xansys] Path Plots to Compare Results
To: “xansys” <xansys@xansys.org>

Hi,
If submodeling is used,the final step is to verify that the cut boundaries of the submodel are far enough away from the
concentration and an effective way to compare results it to obtain contour displays and path plots.
My problem is,how to create a graph that plots results from two different models?  Any help wil be appreciated.
thank you!
=================================================
I have found only how to use multiple paths within one model in ansys help,
7.2.5.2. Using Multiple Paths
A maximum of 100 paths can exist within one model. However, only one path at a time can be the current path. To change the current path, choose the PATH,NAME command. Do not specify any other arguments on the PATH command. The named path will become the new current path.
—————————————————
The same question was asked by Clayton Heberling in 1999-02-25,
http://x.ansys.net/posting/837
Subject: Path Plots to Compare Results
Author: Clayton Heberling
Date: 1999-02-25 16:33:00
Chapter 3 in the ANSYS Advanced Analysis Techniques explains how to do
submodeling and shows a graph of results from the coarse model and the submodel
superimposed on the same plot. I could not find any documentation on how to
create the superimposed plot.
Can someone explain how to create a graph that plots results from two different
analyses?

Message: 5
Date: Sun, 11 Oct 2009 13:22:09 -0500
From: Christopher Wright
Subject: Re: [Xansys] Path Plots to Compare Results
To: ANSYS User Discussion List <xansys@xansys.org>

On Oct 11, 2009, at 3:13 AM, Wenguo.Ning wrote:

> My problem is,how to create a graph that plots results from two
> different models?  Any help wil be appreciated.
> thank you!

Write the results off to a text file and plot them in Excel or some
other charting program.

*VWRITE的warning问题

结论:*vwrite,只能使用input命令或*use命令或宏命令执行*vwirite,不能在窗口执行

============

以前用Ansys,会是GUI+command的方式,GUI操作,查找Log里的命令流,再从窗口输入.最近几个星期就一直遇到这样的问题

复制出VM142中input file到command输入窗口,*VWRITE的格式部分居然通不过

help里面说后面要另起一行跟上格式说明的,

遇到warning:

(=== is not a recognized BEGIN command,abbreviation,or macro.

This command will be ignored.

今天google:*vwrite warning居然给找到答案了

原来这个命令只能用在文件里面input 到ansys里面.