2019-07-15 11:07:24 +02:00
|
|
|
% Granite
|
|
|
|
% :PROPERTIES:
|
|
|
|
% :header-args:matlab+: :tangle src/initializeGranite.m
|
|
|
|
% :header-args:matlab+: :comments org :mkdirp yes
|
|
|
|
% :header-args:matlab+: :eval no :results none
|
|
|
|
% :END:
|
|
|
|
% <<sec:initializeGranite>>
|
|
|
|
|
|
|
|
% This Matlab function is accessible [[file:src/initializeGranite.m][here]].
|
|
|
|
|
|
|
|
|
2018-10-25 11:00:30 +02:00
|
|
|
function [granite] = initializeGranite()
|
2018-06-16 22:57:54 +02:00
|
|
|
%%
|
|
|
|
granite = struct();
|
|
|
|
|
2018-10-29 12:57:13 +01:00
|
|
|
%% Static Properties
|
|
|
|
granite.density = 2800; % [kg/m3]
|
|
|
|
granite.volume = 0.72; % [m3] TODO - should
|
|
|
|
granite.mass = granite.density*granite.volume; % [kg]
|
|
|
|
granite.color = [1 1 1];
|
|
|
|
granite.STEP = './STEPS/granite/granite.STEP';
|
2018-10-25 11:00:30 +02:00
|
|
|
|
2018-10-29 12:57:13 +01:00
|
|
|
%% Dynamical Properties
|
2018-10-25 11:00:30 +02:00
|
|
|
granite.k.x = 1e8; % [N/m]
|
|
|
|
granite.c.x = 1e4; % [N/(m/s)]
|
|
|
|
|
|
|
|
granite.k.y = 1e8; % [N/m]
|
|
|
|
granite.c.y = 1e4; % [N/(m/s)]
|
|
|
|
|
|
|
|
granite.k.z = 1e8; % [N/m]
|
|
|
|
granite.c.z = 1e4; % [N/(m/s)]
|
2018-10-11 10:25:57 +02:00
|
|
|
|
2018-10-30 14:37:19 +01:00
|
|
|
%% Positioning parameters
|
|
|
|
granite.sample_pos = 0.8; % Z-offset for the initial position of the sample [m]
|
|
|
|
|
2018-10-11 10:25:57 +02:00
|
|
|
%% Save
|
|
|
|
save('./mat/stages.mat', 'granite', '-append');
|
2018-06-16 22:57:54 +02:00
|
|
|
end
|