Add NASS LIBRARY for simscape
This commit is contained in:
@@ -1,10 +1,17 @@
|
||||
function [] = initializeGranite()
|
||||
function [granite] = initializeGranite()
|
||||
%%
|
||||
granite = struct();
|
||||
|
||||
granite.m = 2000; % [kg]
|
||||
granite.k.ax = 1e8; % [N/m] x-y-z Stiffness of the granite
|
||||
granite.c.ax = 1e4; % [N/(m/s)]
|
||||
|
||||
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');
|
||||
|
@@ -1,4 +1,4 @@
|
||||
function [] = initializeMicroHexapod(opts_param)
|
||||
function [micro_hexapod] = initializeMicroHexapod(opts_param)
|
||||
%% Default values for opts
|
||||
opts = struct();
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
function [] = initializeSample(opts_param)
|
||||
function [sample] = initializeSample(opts_param)
|
||||
%% Default values for opts
|
||||
sample = struct('radius', 100, ...
|
||||
'height', 300, ...
|
||||
@@ -13,7 +13,17 @@ function [] = initializeSample(opts_param)
|
||||
sample.(opt{1}) = opts_param.(opt{1});
|
||||
end
|
||||
end
|
||||
|
||||
%%
|
||||
sample.k.x = 1e8;
|
||||
sample.c.x = sqrt(sample.k.x*sample.mass)/10;
|
||||
|
||||
%% Save if no output argument
|
||||
sample.k.y = 1e8;
|
||||
sample.c.y = sqrt(sample.k.y*sample.mass)/10;
|
||||
|
||||
sample.k.z = 1e8;
|
||||
sample.c.z = sqrt(sample.k.y*sample.mass)/10;
|
||||
|
||||
%% Save
|
||||
save('./mat/stages.mat', 'sample', '-append');
|
||||
end
|
||||
|
Reference in New Issue
Block a user