beam.m

来自「The Finite Element Method Usign MATLAB.p」· M 代码 · 共 29 行

M
29
字号
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Beam (Chapter 10)                    %
% Suleiman M. BaniHani                 %
% Rensselaer Polytechnic Institute     %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
clear all;
close all; 
 
% include global variables
include_flags;  

% Preprocessing 
 [K,f,d]	= preprocessor;

% Element matrix computations and assembly
for e = 1:nel
    [ke,fe]	= beamelem(e);
    [K, f]  = assembly(K,f,e,ke,fe);
end
% Add nodal boundary force vector
f = NaturalBC(f);

% Partition and solution
 [d,f_E] = solvedr(K,f,d);
 
% Postprocessing 
postprocessor(d)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?