资源简介
用来简单计算复合材料的ABD矩阵的、适合期末大作业编程使用
代码片段和文件信息
% ++++++++++++++++++++++++ ABDlam.m +++++++++++++++++++++++++++++++
% ++++++++++++++++++++++++ v1.0 - 4 Mar 2008 ++++++++++++++++++++++
% Written for a class homework for the Air Force Institute of Technology
% (AFIT) MECH541 class Intro. to Composite Materials. Program is “as-is“
% consider it “beta“ software any bug report can be sent to: oeasterd@afit.edu
% The code is not optimized has redundent variables and quite assuradly
% violates the MATLAB aesthetic of minimizing “for-next“ looping...but
% that‘s for version 1.1 ....
%
% Program is a MATLAB based thin-layer implementation to determine
% the laminate ABD matrix laminate strain and ply stress profile
% as well as effective properties of the laminate using thin plate theory.
% This code is in essense a GENLAM clone.
% Plies should be sequenced from top surface to bottom!
% The input file is “Infile.dat“ and Output is “Outfile.dat“; lack of an
% “Input.dat“ file will result in the writing of a default file with the
% formatting and a sample layup; this can then be further modified.
%
% This program was written referencing the following text: Herakovich Carl T.
% Mechanics of Fiberous Composites John Wiley & Sons Inc. New York 1998
% ISBN - 0-471-10636-4. Refer to the attached diagrams for
% variable/dimension conventions.
%
% More documentation follows at the end of the code.
%
function ABDlam(InfileOutfile)
if nargin == 0 ;
defaultdata ;
Infile = ‘infile.dat‘
Outfile = ‘outfile.dat‘
elseif nargin == 1 ;
Outfile = ‘outfile.dat‘;
end ;
%% -------------------------------
% ROUTINE - READIN DATA FILE
% -------------------------------
% readindata(Infile) ;
% Read in data from inputfile
% IN = fopen(Infile‘r‘) ;
[plots matnum] = textread(Infile‘%u %u‘1‘headerlines‘3) ;
[Nx Ny Nxy Mx My Mxy] = textread(Infile‘%f %f %f %f %f %f‘1‘headerlines‘10) ;
[matnu1 Ex Ey Gxy nu_xy alpha_x alpha_y beta_x beta_y] = textread(Infile‘%f %f %f %f %f %f %f %f %f‘matnum‘headerlines‘17) ;
[matnu2 Ft_x Fc_x Ft_y Fc_y Fs_xy Del_T Del_C matname] = textread(Infile‘%f %f %f %f %f %f %f %f %s‘matnum‘headerlines‘27) ;
[plynum theta thick matid] = textread(Infile‘%f %f %f %f‘‘headerlines‘39) ;
fclose(‘all‘) ;
%% Assemble load vectors each lamina compliance and stiffiness matrix
plymax = max(plynum) ; % loop through the number of plys in the laminate
N_m = [Nx ; Ny ; Nxy] % Mechanical normal loads on laminate edges
M_m = [Mx ; My ; Mxy] % Mechanical moment loads on laminate edges
%% Determine ply coordinates datuum plane z-coords and H
stackthick = 0.0 ;
z(1) = 0.0 ; % top plane of laminate
for i = 2:1:plymax+1 ;
z(i) = z(i-1) + thick(i-1) ;
stackthick = stackthick + thick(i-1) ;
end ;
H = stackthick/2.0 ; % determine 1/2 the laminate thickness
z = z - H ; % reset z-coodinate origin to the datuum plane in the laminate
z = transpose(z)
%% ----------
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 25327 2008-03-04 22:35 ABDlam.m
文件 10676 2008-03-01 21:39 Drawing1.wmf
文件 56824 2008-03-01 22:05 Drawing2.wmf
文件 9272 2008-03-01 23:16 Drawing3.wmf
文件 1306 2014-02-12 14:10 license.txt
- 上一篇:雷达MATLAB仿真171350
- 下一篇:矩形贴片天线Matlab仿真
相关资源
- 矩形贴片天线Matlab仿真
- 雷达MATLAB仿真171350
- matlab对两张彩色图进行直方图匹配并
- (212)和(317)卷积码编解码的MTAL
- WVD时频代码matlab
- 利用鸢尾花数据进行K均值分类
- 基于matlab的傅里叶频域滤波
- 基于MATLAB深度极限学习机与代码
- 双边高效率冲击电压发生器的matlab仿
- matlab广义回归程序代码
- ap聚类算法MATLAB实现代码
- 图像峰度计算函数matlab
- matlab基于笔记本电脑的摄像头的人脸
- 基于K-means算法的图像分割matlab
- matlab菲涅尔衍射
- 遗传算法优化BP标注清晰matlab
- 基于pso的测试函数Griewank得MATLAB算法代
- 平方根法的matlab实现
- MATLAB代码,用于快速平滑滤波
- MATLAB代码,用于分峰拟合
- 2次B样条曲线和3次B样条曲线的matlab绘
- matlab幅频图
- MATLAB 模糊PID
- chirp信号的用cos函数产生并带详细注释
- 数字全息图像matlab程序
- matlab基于小波变换的图像融合代码
- 广义预测控制MATLAB算法
- matlab guide仿真sir模型
- 3种matlab截取指定区域图片.zip
- MATLAB2018b破解文件
评论
共有 条评论