- 6
- 0
- 约7.46千字
- 约 18页
- 2017-10-07 发布于河南
- 举报
有限元程序(Finite element program)
有限元程序(Finite element program)
# includes stdio.h
int lnods [20] [3], itype, maxnel, maxnod, nhbw, maxlop, ilodpl [20].
float d [3] [3], coords [20] [2], k [6], [6], and mu, t, sum [3], [6], area, astif [40] [40], aload [40], displ [40], eload [20] [6], ast [40] [40], aloha [40], point [20] [2].
/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
void matd ()
{
int i, j;
float w, mue, ee.
if (itype = = 2)
{ee = e / (1.0-mu * mu);
mue = mu / (1.0-mu);
}
else {ee = e; mue = mu;}
w = ee / (1.0-mue * mue);
for (i = 0; i 3; i + +)
for (j = 0, j 3; j + +)
d [i] [j] = 0.0.
d [0] [0] = w;
d [0], [1] = mue * w;
d [1], [0] = mue * w;
d [1] [1] = w;
d [2], [2] = 0.5 * (1.0-mue) * w;
}
/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
void stif (int in)
{
int i, j, l;
float a [3], b [3], c [3], b [3] [6].
for (i = 0; i 3; i + +)
(a [i] = coords [lnods [in] [(i + 1)% 3]] [0] * coords [lnods [in] [(i + 2)% 3]] [1] - coords [lnods [in] [(i + 2)% 3]] [0 coords] * [lnods [in] [(i + 1)% 3]] [1].
b [i] = coords [lnods [in] [(i + 1)% 3]] [1] - coords [lnods [in] [(i + 2)% 3]] [1].
c [i] = coords [lnods [in] [(i + 2)% 3]] [0] - coords [lnods [in] [(i + 1)% 3]] [0].
}
for (i = 0; i 3; i + +)
for (j = 0, j 6; j + +)
b [i] [j] = 0.0.
area = ([1] + [2] + [0]) / 2.0.
for (i = 0; i 3; i + +)
{b [0] [2 *] = b [i] / area / 2.0.
b [1] [2 * + 1] = c [i] / area / 2.0.
b [2] [2 *] = c [i] / area / 2.0.
b [2] [2 * i + 1] = b [i] / area / 2.0.
}
matd ();
for (i = 0; i 3; i + +)
for (j = 0, j 6; j + +)
{sum [i] [j] = 0.0.
for (i = 0; l 3; l + +)
sum [i] [j] + = (d [i] [l] b [l] [j]).
}
for (i = 0; i 6; i + +)
for (j = 0, j 6; j + +)
{k [i] [j] = 0.0.
for (i = 0; l 3; l + +)
k [i] [j] + = (b [l] [the] * sum [l] [j] * t * area);
}
}
/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
void mnhbw ()
{
int i, j, r, nh.
nhbw = 0;
for (i = 0; i maxnel; i + +)
for (j = 0, j 3; j + +)
for (r = 0 and r 3; r + +)
{nh = (lno
您可能关注的文档
- 整合传播,营销火炬(Integrated marketing, marketing torch).doc
- 整合营销与销售 - 副本(Integrated marketing and sales - copies).doc
- 整合营销传播如何本土化(How to localize integrated marketing communication).doc
- 整合营销构建高效市场部(Integrated marketing building an efficient marketing department).doc
- 整合资源,推动智慧旅游实现实质性突破(Integration of resources, and promote intelligent tourism to achieve substantive breakthroughs).doc
- 整理】5053设置开启明锐各项功(Finishing 5053] set the Octavia each function).doc
- 整除问题(Divisibility problem).doc
- 文件分配表(File allocation table).doc
- 文件名称 承运商考评管理办法(Measures for the evaluation and management of carriers).doc
- 数码相机使用技巧(Digital camera skills).doc
- 有限责任公司制定章程。(Articles of association of limited liability companies.).doc
- 朋友不是玻璃做的 -美文故事-散文日志随笔- 文章阅读网(Friends are not made of glass - Essays - essays, essays, essays - essays, reading nets).doc
- 服务贸易壁垒(Service trade barrier).doc
- 服装店装修(Clothing store renovation).doc
- 服装设计定制工职业标准(Professional standards for tailor made garments).doc
- 朗诵诗歌推荐(励志)(Reading poetry recommendation (Li Zhi)).doc
- 朗酷智能教练的理想蓝图(Ron cool the ideal blueprint for an intelligent coach).doc
- 望梅止渴把客户带入他熟悉的情景中(Hope the customers into his familiar scene).doc
- 服装男装文本文档(Clothing men's text documents).doc
- 期中考选择题(Midterm exam questions).doc
原创力文档

文档评论(0)