diff --git a/index.org b/index.org index 075afb2..67ca908 100644 --- a/index.org +++ b/index.org @@ -301,28 +301,6 @@ A simulink library is developed in order to share elements between the different ** RotationMatrixToAngle -* Scripts -** Simulation Initialization - :PROPERTIES: - :header-args:matlab+: :tangle src/init_simulation.m - :header-args:matlab+: :comments org :mkdirp yes - :header-args:matlab+: :eval no :results none - :END: - <> - -This Matlab script is accessible [[file:src/init_simulation.m][here]]. - -This script runs just before the simulation is started. -It is used to load the simulation configuration and the controllers used for the simulation. - -#+begin_src matlab - %% Load all the data used for the simulation - load('sim_conf.mat'); - - %% Load Controller - load('controllers.mat'); -#+end_src - * Functions ** computePsdDispl :PROPERTIES: diff --git a/init_data.m b/init_data.m deleted file mode 100644 index 6f1d3d1..0000000 --- a/init_data.m +++ /dev/null @@ -1,55 +0,0 @@ -%% -clear; close all; clc; - -%% Initialize simulation configuration -opts_sim = struct(... - 'Tsim', 5 ... -); - -initializeSimConf(opts_sim); - -%% Initialize Inputs -opts_inputs = struct(... - 'Dw', true, ... - 'Ry', false, ... - 'Rz', true ... -); - -initializeInputs(opts_inputs); - -%% Initialize Ground -initializeGround(); - -%% Initialize Granite -initializeGranite(); - -%% Initialize Translation stage -initializeTy(); - -%% Initialize Tilt Stage -initializeRy(); - -%% Initialize Spindle -initializeRz(); - -%% Initialize Hexapod Symétrie -initializeMicroHexapod(); - -%% Initialize Center of Gravity compensation -initializeAxisc(); - -%% Initialize NASS -initializeNanoHexapod(struct('actuator', 'lorentz')); - -%% Initialize the Mirror -initializeMirror(struct('shape', 'spherical')); - -%% Initialize Sample -initializeSample(struct('mass', 20)); - -%% Controllers -K = tf(zeros(6)); - -K_iff = tf(zeros(6)); - -save('./mat/controllers.mat', 'K', 'K_iff'); diff --git a/init_perturbations.m b/init_perturbations.m deleted file mode 100644 index 65f8114..0000000 --- a/init_perturbations.m +++ /dev/null @@ -1,16 +0,0 @@ -%% -clear; close all; clc; - -%% -s = tf('s'); - -%% Ground Motion -Wxg = 1e-5*(s/(2e2)^(1/3) + 2*pi*0.1)^3/(s + 2*pi*0.1)^3; -Wxg = Wxg*(s/(0.5e6)^(1/3) + 2*pi*10)^3/(s + 2*pi*10)^3; -Wxg = Wxg/(1+s/(2*pi*2000)); - -%% Sensor Noise -Wn = tf(1e-12); - -%% Save Weights -save('./mat/perturbations.mat', 'Wxg', 'Wn'); \ No newline at end of file diff --git a/init_simulation.m b/init_simulation.m deleted file mode 100644 index 75a6154..0000000 --- a/init_simulation.m +++ /dev/null @@ -1,8 +0,0 @@ -%% Script that is run just before -% the simulation is started - -%% Load all the data used for the simulation -load('./mat/sim_conf.mat'); - -%% Load Controller -load('./mat/controllers.mat');