25 lines
629 B
Matlab
25 lines
629 B
Matlab
function [granite] = initializeGranite()
|
|
%%
|
|
granite = struct();
|
|
|
|
%% 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';
|
|
|
|
%% Dynamical Properties
|
|
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)]
|
|
|
|
%% Save
|
|
save('./mat/stages.mat', 'granite', '-append');
|
|
end
|