-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathloadParameters_wave_func.m
More file actions
45 lines (38 loc) · 1.71 KB
/
loadParameters_wave_func.m
File metadata and controls
45 lines (38 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
function param = loadParameters_wave_func
%% loadParameters_wave_func.m
%
% Contains all the parameters of the wave model and the
% computational parameters for the simulations/calculations. It is
% necessary to make an instance of the function before you can use the
% parameters.
%
% Example:
% >> param = loadParameters_wave_func;
%
%
% Some important notes:
% 1. All the parameters can be changed by overwriting the existing instance
% (example: param.r_s = 10 if you want to change the length scale).
%
% 2. The dependent parameters need to be manually updated when other independent
% parameters are changed.
%
% Original: James Pang, Monash University, 2022
%%
% =====================================================================
% DEFAULT INDEPENDENT MODEL PARAMETERS
% =====================================================================
param.r_s = 30; % length scale [mm]
param.gamma_s = 116; % damping rate [s^-1]
% =====================================================================
% COMPUTATIONAL PARAMETERS
% =====================================================================
param.is_time_ms = 0; % 1 = if time is in ms; 0 = if time is in s
param.tstep = 0.01; % time step [s]
param.tmax = 1; % maximum time [s]
% =====================================================================
% DEPENDENT PARAMETERS
% =====================================================================
param.tspan = [0, param.tmax]; % time period limits
param.T = 0:param.tstep:param.tmax; % time vector
end