% To find the crack tip & K for a defined path
clc, clear
load 'data' % contains 'crackpath (path) and displ. (Uy)
filt = 0.5; % filter in terms of %
m = 10; % cut out of strip of width 2m-1
rat = 7.6e-5; % pixel to meter ration
len = 100; % length of the domain of inter.
wid = 60; % width of the domain
dom = 0.2; % horizontal offset of the domain
c = 453.5; % crack prop. velocity
E = 6e9; % Young's modulus
nu = 0.33; % Poisson's ratio
rho = 1700; % density
crtip = [288, 457]; % previous cracktip/notch (pixel)
Ki = zeros(length(path), 1); % SIF declaration
err = zeros(length(path), 1); % error distribution
for i = 1 : length(path)
% selection of the domain of interest
rect = [crtip(1,1)-dom*len, crtip(1,2)-wid/2, len, wid];
v = uy( rect(2):rect(2)+rect(4), rect(1):rect(1)+rect(3) );
domsiz = [rect(4)+1, rect(3)+1];
% creating the analytical domain
yspan = linspace(0, domsiz(1)*rat, domsiz(1) );
xspan = linspace(0, domsiz(2)*rat, domsiz(2) );
[xd, yd] = meshgrid( xspan, yspan );
xdn = xd - ( path(i, 1) - rect(1) ) * rat;
ydn = yd - ( path(i, 2) - rect(2) ) * rat;
cent = round(path(i, :)) + [1 1] - rect(1:2);
% calling the function to create analytic. field and map
[Kv, er] = field(v, xdn, ydn, filt, cent, m, c, E, nu, rho);
Ki(i) = abs( Kv(1) );
err(i) = er;
end
figure(1), plot(err)
xlabel('crack path (pixel)'), ylabel('Error distribution')
[~, k1] = min(err); % point corresponding to min. err.
K = Ki(k1); % SIF at the instance
cr_tip = path(k1, :); % crack tip for this instance
% display of the crack path and tip
disp(['Crack tip is ([x, y] in pixels) = ', num2str(cr_tip)])
disp(['SIF = ' num2str(K)]);
figure(2), imshow('image.jpg'), hold on
plot(path(:, 1), path(:, 2), 'g.')
plot(cr_tip(1), cr_tip(2), 'r*')
disp(['The crack tip is shown in the image. The slight ',...
'offset in the path is due to the rigid body motion']);
main_断裂_sif_位移场_应力强度因子_matlab
版权申诉
5星 · 超过95%的资源 53 浏览量
2021-09-11
04:44:40
上传
评论 3
收藏 1KB ZIP 举报
心梓
- 粉丝: 808
- 资源: 8057
最新资源
- Edge浏览器下载文件提示 “无法安全下载” 的解决方法
- 基于springboot+layui的医院日常耗材管理系统.zip
- 计算机毕业设计-ASP.NET教育报表管理系统-权限管理模块(源代码+)-毕设源码实例.zip
- 计算机毕业设计-ASP.NET教务信息管理系统的设计与实现(源代码+)-毕设源码实例.zip
- 免费计算机毕业设计-线上公司求职招聘系统的设计与实现(包含论文+源码)
- Eleven的精益供应链管理-碓胤咨询龚胤全.rar
- 5套光伏、储能、充电收益测算表.zip
- C2 供应链集成演示平台操作手册(详细版).rar
- 3套光储充一体化站CAD+PDF图纸.zip
- c++游戏开发,本人开发的c++小游戏飞机大战(二)源码
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
- 1
- 2
- 3
- 4
前往页