Add file sample.m (design and position of sample)

This commit is contained in:
Adrien Jublan 2018-04-24 15:45:32 +02:00
parent 73be1e0414
commit 5022743549
5 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,6 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info>
<Category UUID="FileClassCategory">
<Label UUID="design" />
</Category>
</Info>

View File

@ -0,0 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info Ref="" Type="Relative" />

Binary file not shown.

3
Data.m
View File

@ -1,4 +1,5 @@
run Assemblage_DataFile1.m run Assemblage_DataFile1.m
run Sample.m
%% Translation stage %% Translation stage
ty = struct(); ty = struct();
@ -60,6 +61,7 @@ nass.k.ax = 5e7; %z
nass.ksi.ax = 10; nass.ksi.ax = 10;
nass = updateDamping(nass); nass = updateDamping(nass);
%% %%
function element = updateDamping(element) function element = updateDamping(element)
field = fieldnames(element.k); field = fieldnames(element.k);
@ -67,3 +69,4 @@ function element = updateDamping(element)
element.c.(field{i}) = 1/element.ksi.(field{i})*sqrt(element.k.(field{i})/element.m); element.c.(field{i}) = 1/element.ksi.(field{i})*sqrt(element.k.(field{i})/element.m);
end end
end end

9
Sample.m Normal file
View File

@ -0,0 +1,9 @@
%% Sample Design
rs = 0.1 % (m) sample radius
ls = 0.33007 % (m) sample lenght
ms = 50 % (kg) sample mass
%% Sample position
raddec =0 ; % (m) decentralization radius