没有合适的资源?快使用搜索试试~ 我知道了~
很好用的资源,对于初学者来说,非常容易入手。而且我编不下去了
资源推荐
资源详情
资源评论
%
% EFG1D - ONE DIMENSIONAL Galerkin-based MESHLESS PROGRAM FOR SOLVING A 1D BAR
% SUBJECTED TO A LINEAR BODY FORCE OF MAGNITUDE X WHOSE EXACT SOLUTION IS GIVEN BY
% u = \frac{50}{3} (x - x^3)/E, \sigma = \frac{50}{3}*(1-3x^2)
%
% BACKGROUND CELL QUADRATURE IS EMPLOYED TO EVALUATE INTEGRALS
% - CELLS ARE COINCIDE WITH THE INTERVALS BETWEEN THE NODES
%
% LAGRANGIAN MULTIPLIER METHOD IS EMPLOYER TO IMPOSE THE ESSENTIAL BOUNDARY CONDITIONS
clear all
% SET UP GLOBAL CONTROL PARAMETERS
scale = 2.4; % Scale used to determine the radius of support for nodes
nint = 3; % Order of Gauss quadrature
dx = 0.1; % Distance between adjacent nodes
base = 2; % Basis type - 1: Constant basis; 2: Linear basis; 3: Quadratic basis
type = 2; % Type of quadrature
% 1: Gauss quadrature; 2: Nodal quadrature; 3: Particle quadrature
WeightType = 'SPLIN'; % Type of weight function ('GAUSS', 'QUART', 'SPLIN','CSRBF')
% SET UP NODAL COORDINATES ALONG BAR, DETERMINE NUMBER OF CELLS
L = 1.0; % Length of the bar
xi = [0.0 : dx : L]; % Nodal coordinates
nnodes = length(xi);
ncells = nnodes-1;
% SET MATERIAL PROPERITES
E = 1.0; % Elastic modulus
area = 1.0; % Area of cross section
% EFG1D - ONE DIMENSIONAL Galerkin-based MESHLESS PROGRAM FOR SOLVING A 1D BAR
% SUBJECTED TO A LINEAR BODY FORCE OF MAGNITUDE X WHOSE EXACT SOLUTION IS GIVEN BY
% u = \frac{50}{3} (x - x^3)/E, \sigma = \frac{50}{3}*(1-3x^2)
%
% BACKGROUND CELL QUADRATURE IS EMPLOYED TO EVALUATE INTEGRALS
% - CELLS ARE COINCIDE WITH THE INTERVALS BETWEEN THE NODES
%
% LAGRANGIAN MULTIPLIER METHOD IS EMPLOYER TO IMPOSE THE ESSENTIAL BOUNDARY CONDITIONS
clear all
% SET UP GLOBAL CONTROL PARAMETERS
scale = 2.4; % Scale used to determine the radius of support for nodes
nint = 3; % Order of Gauss quadrature
dx = 0.1; % Distance between adjacent nodes
base = 2; % Basis type - 1: Constant basis; 2: Linear basis; 3: Quadratic basis
type = 2; % Type of quadrature
% 1: Gauss quadrature; 2: Nodal quadrature; 3: Particle quadrature
WeightType = 'SPLIN'; % Type of weight function ('GAUSS', 'QUART', 'SPLIN','CSRBF')
% SET UP NODAL COORDINATES ALONG BAR, DETERMINE NUMBER OF CELLS
L = 1.0; % Length of the bar
xi = [0.0 : dx : L]; % Nodal coordinates
nnodes = length(xi);
ncells = nnodes-1;
% SET MATERIAL PROPERITES
E = 1.0; % Elastic modulus
area = 1.0; % Area of cross section
% DETERMINE RADIUS OF SUPPORTS FOR EACH NODE
dm = scale*dx*ones(1,nnodes);
% INITIALIZE MATRICES
K = zeros(nnodes);
P = zeros(nnodes,1);
G = zeros(nnodes,2);
% ----------------------------- Quadrature ----------------------------------------
if type == 1 % Gauss quadrature
% LOOP OVER CELLS
for i = 1:ncells
x1 = xi(i); % Left point of cell i
x2 = xi(i+1); % Right point of cell i
x0 = (x1+x2)/2; % Coordinate of the mid-point of cell i
h = x2-x1; % Length of cell i
jac = h/2; % Jacobian for cell i
[r,w] = Gauss(nint); % Natural coordinates of Gauss quadrature points and weights
% LOOP OVER GAUSS POINTS
for j = 1:nint
xq = x0 + h*r(j)/2; % Coordinates of Gauss quadrature points
% EVALUATE SHAPE FUNCTIONS AND THEIR DERIVATIVES AT GAUSS POINT xg
剩余7页未读,继续阅读
资源评论
qq_42204511
- 粉丝: 0
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 技术资料分享多核处理器构架的高速JPEG解码算法很好的技术资料.zip
- 技术资料分享第24章 性能和资源占用很好的技术资料.zip
- 技术资料分享第23章 LCD驱动API函数很好的技术资料.zip
- 技术资料分享第22章 LCD驱动程序很好的技术资料.zip
- 技术资料分享第21章 高层次配置很好的技术资料.zip
- 技术资料分享第20章 底层配置很好的技术资料.zip
- 技术资料分享第19章 与时间相关的函数很好的技术资料.zip
- 技术资料分享第18章 输入设备很好的技术资料.zip
- 技术资料分享第17章 Shift-JIS支持很好的技术资料.zip
- 技术资料分享第16章 Unicode很好的技术资料.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功