基于Matlab实现齿轮系统的传递路径分析 (TPA)

✅作者简介:热爱科研的Matlab仿真开发者,修心和技术同步精进,matlab项目合作可私信。

🍎个人主页:Matlab科研工作室

🍊个人信条:格物致知。

更多Matlab仿真内容点击👇

智能优化算法       神经网络预测       雷达通信       无线传感器        电力系统

信号处理              图像处理               路径规划       元胞自动机        无人机 

⛄ 内容介绍

This MATLAB code can reproduce some results in: “Fault tracing of gear systems: An in-situ measurement-based transfer path analysis method” [1]. This paper focuses on transfer path analysis (TPA) for gear systems. A virtual decoupling method is proposed to realize the in-situ measurement-based TPA. An identification of the bearing force is performed based on the Tikhonov regularization theory.

A gear dynamic model is adopted as the numerical example to illustrate the procedure of the transfer path analysis. Details about the proposed TPA algorithm can be seen in Ref. [1]. The complementary information of the time-varying mesh stiffness and dynamic modelling can be seen in Refs. [2, 3].

⛄ 部分代码

function [X,Xd,Xdd] = newmark(M,C,K,f,dt,gamma0,beta0,Xi,Xdi,Xddi) 

%% ================================================================ 

%  This function is intended to perform the numerical integration of a structural system 

%  subjected to an external dynamic excitation such as a wind or earthquake.

%  The structural model is assumed to be a lumped mass shear model.

%  The integration scheme utilized for this analysis is the newmark alpha-beta method. 

%  The newmark alpha-beta method is an implicit time steping scheme so stability of the system need not be considered.

%% ================================================================

%  Input Variables: 

%  [M] = Mass Matrix (nxn) 

%  [C] = Damping Matrix (nxn) 

%  [K] = Stiffness Matrix (nxn) 

%  {f} = Excitation Vector (nx1) 

%  dt = Time Stepping Increment 

%  beta= Newmark Const (1/6 or 1/4 usually),alpha

%  gamma = Newmark Const (1/2) ,delta

%  Xi = Initial Displacement Vector (nx1) 

%  Xdi = Initial Velocity Vector (nx1) 

% ------*------*------*------

%  Output Variables: 

%  {t} = Time Vector (mx1) 

%  [X] = Response Matrix (mxn) 

%% ================================================================ 

% %%  Check Input Excitation 

%   n = size(M,1); 

%   fdimc = size(f,2); 

% %   fdimr = size(f,1);   

%    if(fdimc==n)

%        f=f';

%    end

% %    m=size(f,2);  

%% ================================================================ 

%%  Coefficients 

        c0 = 1/(beta0*dt*dt) ; 

        c1 = gamma0/(beta0*dt) ; 

        c2 = 1/(beta0*dt) ; 

        c3 = 1/(beta0*2) - 1 ; 

        c4 = gamma0/beta0 - 1 ; 

        c5 = 0.5*dt*(gamma0/beta0 - 2 ) ; 

        c6 = dt*(1 - gamma0 ) ; 

        c7 = dt* gamma0 ; 

%% ============================== 

%% Initialize Stiffness Matrix Equivalent

        Keff = c0*M + c1*C + K ;      

%% ============================== 

%% Perform First Step 

        f= f+ M*(c0*Xi+c2*Xdi+c3*Xddi)+C*(c1*Xi+c4*Xdi+c5*Xddi) ; 

%         X=Keff\f;

        [L,U]=lu(Keff); % LU decomposition can speed up if Keff is in sparse 

        X=U\(L\f);

        Xdd= c0*(X-Xi) - c2*Xdi - c3*Xddi ; 

        Xd= Xdi + c6*Xddi + c7*Xdd;  

⛄ 运行结果

⛄ 参考文献

[1]Y.F. Huangfu, X.J. Dong, X.L. Yu, K.K. Chen, Z.W. Li, Z.K. Peng, Fault tracing of gear systems: An in-situ measurement-based transfer path analysis method, Journal of Sound and Vibration 553 (2023) 117610.1-26.

[2]K.K. Chen, Y.F. Huangfu, H. Ma, Z.T. Xu, X. Li, B.C. Wen, Calculation of mesh stiffness of spur gears considering complex foundation types and crack propagation paths, Mechanical Systems and Signal Processing 130 (2019) 273-292.

[3]Y.F. Huangfu, K.K. Chen, H. Ma, X. Li, H.Z. Han, Z.F. Zhao, Meshing and dynamic characteristics analysis of spalled gear systems: A theoretical and experimental study, Mechanical Systems and Signal Processing 139 (2020) 106640.1-21.

⛳️ 完整代码

❤️部分理论引用网络文献,若有侵权联系博主删除

❤️ 关注我领取海量matlab电子书和数学建模资料

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
要在MATLAB实现TPA-LSTM(时间注意力机制长短期记忆神经网络)多输入单输出,可以按照以下步骤进行操作: 1. 导入所需的MATLAB工具箱。首先,确保安装了Deep Learning Toolbox和Signal Processing Toolbox,这两个工具箱提供了实现神经网络和信号处理的功能。 2. 数据准备。准备输入数据和目标输出数据。例如,如果要对时间序列数据进行预测,则可以将多个时间步的输入数据作为网络的输入,并将预测的下一个时间步数据作为网络的输出。 3. 构建TPA-LSTM网络模型。使用MATLAB的深度学习工具箱,可以使用预定义的Layer函数和Network函数来构建神经网络模型。根据TPA-LSTM的结构,可以使用time-attention layer和LSTM layer构建网络。 4. 网络训练。使用准备的数据集对网络进行训练。可以使用MATLAB的trainNetwork函数来训练网络。在训练过程中,可以设置训练选项,例如训练周期数、批处理大小和学习速率等。 5. 网络预测。训练完成后,可以使用训练好的网络模型对新的输入数据进行预测。可以使用MATLAB的predict函数对输入数据进行预测。 6. 评估性能。使用评价指标(例如均方根误差RMSE或平均绝对误差MAE)来评估网络的预测性能。可以使用MATLAB的评价函数来计算这些指标。 7. 调整网络结构和参数。根据实际需求,可以尝试调整TPA-LSTM网络的结构和训练参数,以提高网络性能和预测精度。 最后,要提醒的是,实现TPA-LSTM网络可能更复杂,需要对时间注意力机制和LSTM层进行深入了解。为了更好地理解和实现该网络,建议参考相关的论文和文献资料,以便能够正确地实现和应用TPA-LSTM网络。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

matlab科研助手

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值