nass-simscape/Untitled.m

56 lines
1.3 KiB
Mathematica
Raw Normal View History

2018-04-11 13:44:50 +02:00
run Assemblage_DataFile1.m
%% Translation stage
ty = struct();
ty.m = smiData.Solid(4).mass+smiData.Solid(6).mass+smiData.Solid(7).mass+smiData.Solid(8).mass+smiData.Solid(9).mass+4*smiData.Solid(11).mass+smiData.Solid(24).mass+smiData.Solid(25).mass+smiData.Solid(28).mass;
2018-04-11 14:26:26 +02:00
ty.k.ax = 1e7/4; %z
ty.k.rad = 9e9/4; %x
ty.k.rrad = 9e9/4; %y
2018-04-11 13:44:50 +02:00
ty.ksi.ax = 10;
ty.ksi.rad = 10;
ty.ksi.rrad = 10;
ty = updateDamping(ty);
%% Tilt
ry = struct();
2018-04-11 14:32:16 +02:00
ry.m = smiData.Solid(26).mass+smiData.Solid(18).mass+smiData.Solid(10).mass;
ry.k.h = 357e6/4; %y
ry.k.rad = 555e6/4; %x
ry.k.rrad = 238e6/4; %z
ry.ksi.h = 10;
2018-04-11 13:44:50 +02:00
ry.ksi.rad = 10;
2018-04-11 14:32:16 +02:00
ry.ksi.rrad = 10;
2018-04-11 13:44:50 +02:00
ry = updateDamping(ry);
%% Spindle
rz = struct();
rz.m = smiData.Solid(12).mass+6*smiData.Solid(20).mass+smiData.Solid(19).mass;
2018-04-12 11:12:15 +02:00
rz.k.ax = 2e9/2; %x
rz.k.rad = 7e8/2; %z
rz.k.rrad = 7e8/2; %y
rz.ksi.ax = 10;
rz.ksi.rad = 10;
rz.ksi.rrad = 10;
rz = updateDamping(rz);
2018-04-11 13:44:50 +02:00
%% Hexapod Sym<EFBFBD>trie
2018-04-11 13:44:50 +02:00
hexapod = struct();
2018-04-12 14:16:58 +02:00
hexapod.m = smiData.Solid(16).mass;
hexapod.k.ax = (138e6)*1.2; %z
hexapod.ksi.ax = 10;
hexapod = updateDamping(hexapod);
2018-04-11 13:44:50 +02:00
%% NASS
n = struct();
%%
function element = updateDamping(element)
field = fieldnames(element.k);
for i = 1:length(field)
element.c.(field{i}) = 1/element.ksi.(field{i})*sqrt(element.k.(field{i})/element.m);
end
end