• Регистрация
iunu
iunu +1.34
н/д

Решение задачи с пружинами FEM. 2 тележки соединены пружиной, определить полную систему уравнений равновесия системы

09.04.2021

Две тележки соединены пружиной, показанной на рисунке P2.7. Определить полную систему уравнений равновесия системы, вычислить смещение каждой тележки и усилие каждой пружины.

 

Two trolleys are connected by the arrangement of spring shown in featuring P2.7. Determine the complete set of equilibrium equations for the system in the form, compute the displacement of each trolley and force in each spring.

% b) Obtain the changes of axial displacement, force, stress and unit deformations that will occur along the rod by coding in MATLAB and plot them depending on the increase in the number of elements.
%------------------------------------------------------------
% SPRING ELEMENT CODE
%------------------------------------------------------------
clc;
clear all;
%------------------------------------------------------------
% Veri girisi Data input
k=50;
k1=k;
k2=2*k;
k3=2*k;
k4=k;
%------------------------------------------------------------
% Пространство памяти для матрицы жесткости системы и векторов нагрузки системы
K=zeros(4,4);
F=zeros(4,1);
%------------------------------------------------------------
% edof vektor create
edof=[1 1 2;2 2 3;3 2 4;4 4 3];
%
%
%------------------------------------------------------------
% Create element matrices for each arc
Ke1=spring1e(k1); % Ke1=[k1 -k1;-k1 k1];
Ke2=spring1e(k2);
Ke3=spring1e(k3);
Ke4=spring1e(k4);
%------------------------------------------------------------
% Insert the element stiffness matrices into the system stiffness matrix
K=assem(edof(1,:),K,Ke1);
K=assem(edof(2,:),K,Ke2);
K=assem(edof(3,:),K,Ke3);
K=assem(edof(4,:),K,Ke4);
%---------------------------------------------------------------------
% Задайте граничные условия смещения и нагрузки
bc=[1 0; 3 0];
F(2,1)=-20;
F(4,1)=15;
% kN.
%---------------------------------------------------------------------
[d,R]=solveq(K,F,bc);
%-----------------------------------------------------------------------

Теги

    09.04.2021

    Комментарии