联系新加坡宣讲会

开到所里来了.

所很小,宣讲会不多.

联系新加坡是新加坡政府的机构. 为新加坡招人.

送得东西还挺有用的,是我想要的一个小本,想记一下散乱的生活.

新加坡,对我最大的吸引力应该是环境好,房价化成人民币跟上海差不多,但是收入不化成人民币也差不多的.据他们说租房的话,日常总花费是全部收入的三分之一.

可惜下一代男丁就要服兵役了.倒也不见得是坏事.

用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里面.

给小刘的几个小故事

1.推销员推销.

每一次推销,并不能全部成功.被拒绝的时候他也很郁闷,后来,他把总的推销金额除以敲门次数,得到就是每次敲门的收获~~~也就是可以这么说,他每次敲门,不管里面的人有没有买东西,他总是有收获的.

2.七个烧饼

有个人买了个烧饼吃,但是没有吃饱,又买了一个.直到第七个他才吃饱 .他说,早知道这个可以吃饱,就不买前面的六个了

3. 地里不长草

某和尚问:如何让地里不长草?

泄露天机者语:种上庄稼

4. 某人难过

难过了一天又一天,第三天他想通了.

从前,山里有个庙

从前,山里有个庙.庙里每年都有和尚下山.

从老和尚那里传下来的说法是,下山后不久就会路过一个小屋,屋里有一个年过花甲的老头,会指引下山后应该走的路.

年复一年,和尚们都是这样下山的.

二十岁的 静远也是这样下山的,他带上行李,告别师父,转身下山,走着走着,终于来到那个小屋旁, 他要向老头问询下山后的路.

但是他却没有找到老头.

老头已经年过八十,驾鹤西去了.

也许~~重复了多年正确的,并不会一直正确.

写点总结

曾经记过日记,初中高中的时候,

今年8月份回家,翻箱倒柜,看到从97年到03年的日记,想起了那曾经的点点滴滴…

写点总结.也许功在当代,利在千秋呢.

Hello world!

Welcome to Memberblog.bebeyond.com. This is your first post. Edit or delete it, then start blogging!