% Problem : Geometric Nonlinear Analysis of Membranes
% Clamped boundary condition is used.
%--------------------------------------------------------------------------
% Code written by : Amit Patil
% E-mail :Amit Patil, aspatil07@gmail.com
%--------------------------------------------------------------------------
clear
clc
disp('Please wait Programme is under Run')
%--------------------------------------------------------------------------
% % Geometrical and material properties of membrane
%--------------------------------------------------------------------------
a = 1 ; % length of the membrane (along X-axes)
b = 1 ; % breadth of the membrane (along Y-axes)
E = 10920; % elastic modulus
nu = 0.3; % Poisson's ratio
t = 0.001 ; % membrane thickness
%Number of mesh element in x and y direction
Nx=10;
Ny=10;
%--------------------------------------------------------------------------
% Input data for nodal connectivity for each element
%--------------------------------------------------------------------------
[coordinates, nodes,nel,nnode] = MeshRectangular(a,b,Nx,Ny) ; % for node connectivity counting starts from 1 towards +y axis and new row again start at y=0.
%--------------------------------------------------------------------------
% Transverse uniform pressure on membrane
%--------------------------------------------------------------------------see pdf for more details.
Pfinal = -100 ;
totalstep=400;
deltaP=Pfinal/totalstep;
% Setting force and displacement zero, as this is a equilibrium configuration.
P=0;
u=zeros(nnode,1);
v=zeros(nnode,1);
w=zeros(nnode,1);
displacement=zeros(3*nnode,1); % The nodal displacement vector is a={u,v,w}
nnel=4; % number of nodes per element
ndof=3; % number of dofs per node
sdof=nnode*ndof; % total system dofs
edof=nnel*ndof; % degrees of freedom per element
for loadstep=1:401
if loadstep==1 deltaP=-0.01; else deltaP=Pfinal/totalstep; end % For first iteration the increment in load is very small, as it is imp to get first solution correct.
P=P+deltaP
%--------------------------------------------------------------------------
% Boundary condition
%--------------------------------------------------------------------------
typeBC = 'c-c-c-c' ;
for updateintforce=1:100 % This is Newton-Raphson iterative method for nonlinear analysis.
[stiffness,tangentstiffness,force,bcdof]=SDF(P,E,nu,t,coordinates,nodes,nel,nnel,ndof,sdof,edof,displacement,typeBC,loadstep,updateintforce);
totaldof=1:sdof;
activedof=setdiff(totaldof,bcdof);
deltadisplacement=zeros(sdof,1);
residual=stiffness(activedof,activedof)*displacement(activedof)-force(activedof);
residualnorm=norm(residual)
deltadisplacement(activedof) = -tangentstiffness(activedof,activedof)\residual;
displacement=displacement+deltadisplacement;
norm(deltadisplacement);
u = displacement(1:3:sdof) ;
v = displacement(2:3:sdof) ;
w = displacement(3:3:sdof) ;
if residualnorm<10^-3
break;
end
end
% Maximum transverse displacement
format long
minw = min(w)
store(loadstep+1,1)=P;
store(loadstep+1,2)=minw;
end
%--------------------------------------------------------------------------
% Deformed Shape
%--------------------------------------------------------------------------
x = coordinates(:,1) ;
y = coordinates(:,2) ;
f3 = figure ;
set(f3,'name','Postprocessing','numbertitle','off') ;
plot3(x,y,w,'.') ;
title('membrane deformation') ;
plot(-store(:,1),-store(:,2),'LineWidth',2);
title('Equilibrium path') ;
xlabel('-P')
ylabel('-w')
%--------------------------------------------------------------------------
% Contour Plots
%--------------------------------------------------------------------------
PlotFieldonDefoMesh(coordinates,nodes,w,w)
title('Profile of w on deformed Mesh') ;
PlotFieldonMesh(coordinates,nodes,u)
title('Profile of u on membrane')
PlotFieldonMesh(coordinates,nodes,v)
title('Profile of v on membrane')
PlotFieldonMesh(coordinates,nodes,w)
title('Profile of w on membrane')
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
几何非线性matlab有限元程序,matlab求非线性方程,matlab源码.rar (42个子文件)
几何非线性matlab有限元程序
constraints.M 841B
GaussQuadrature.M 2KB
PlateInplaneNonlinear.M 1KB
MeshRectangular.M 3KB
PlotFieldonDefoMesh.M 2KB
ShapefunctionDerivatives.M 1KB
BoundaryCondition.m 2KB
InitialStressMatrix.M 2KB
SDF.M 5KB
PlateBendingLinear.M 746B
PlotFieldonMesh.M 2KB
NonLinearMain.M 5KB
BoundaryCondition.asv 2KB
Force.M 685B
ShapeDerivativeForInitialStressMatrix.M 351B
SetColorbar.M 918B
PlotMesh.M 2KB
Assembly.m 1KB
elementdof.M 764B
新建文件夹
Jacobian.m.txt 1KB
GaussQuadrature.m.txt 2KB
PlotFieldonMesh.m.txt 2KB
PlateInplaneNonlinear.m.txt 1KB
SetColorbar.m.txt 918B
BoundaryCondition.asv.txt 2KB
BoundaryCondition.m.txt 2KB
elementdof.m.txt 764B
ShapeDerivativeForInitialStressMatrix.m.txt 351B
Assembly.m.txt 1KB
constraints.m.txt 841B
PlateBendingLinear.m.txt 746B
NonLinearMain.m.txt 5KB
SDF.m.txt 5KB
Force.m.txt 685B
InitialStressMatrix.m.txt 2KB
ShapefunctionDerivatives.m.txt 1KB
MeshRectangular.m.txt 3KB
Shapefunctions.m.txt 1KB
PlotMesh.m.txt 2KB
PlotFieldonDefoMesh.m.txt 2KB
Shapefunctions.M 1KB
Jacobian.M 1KB
共 42 条
- 1
心梓
- 粉丝: 804
- 资源: 8057
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- Python大作业:音乐播放软件(爬虫+可视化+数据分析+数据库)
- 课程设计-python爬虫-爬取日报,爬取日报文章后存储到本地,附带源代码+课程设计报告
- 软件和信息技术服务行业投资与前景预测.pptx
- 课程设计-基于SpringBoot + Mybatis+python爬虫NBA球员数据爬取可视化+源代码+文档+sql+效果图
- 软件品质管理系列二项目策划规范.doc
- 基于TensorFlow+PyQt+GUI的酒店评论情感分析,支持分析本地数据文件和网络爬取数据分析+源代码+文档说明+安装教程
- 软件定义无线电中的模拟电路测试技术.pptx
- 软件开发协议(作为技术开发合同附件).doc
- 软件开发和咨询行业技术趋势分析.pptx
- 软件测试题详解及答案.doc
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
- 4
- 5
- 6
前往页