-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathParameters.m
More file actions
38 lines (28 loc) · 881 Bytes
/
Parameters.m
File metadata and controls
38 lines (28 loc) · 881 Bytes
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
function [Mconversion,Const,Lx,Lz,val_up,val_down,nx_pixel,ny_pixel,overlap_x,overlap_y]=Parameters(varargin)
% PARAMETERS_FILE
M=0.0123; % From the calibration body: pixel/cm
%(see the numbers in the BOS sketch)
B=0*(1/M); % Distance section 5-6
W=20*(1/M); % Distance section 3-4
L=110*(1/M); % Distance section 1-2
t=0.5*(1/M); % thickness of the glass
ZD=(L+2*t+W+B)*(1/M);
% Set the indexes of refraction
n_air=1;
n_water=1.332;
n_glass=1.43;
% Computing the constant
Const_inv=2*(((L^2+B^2)/(n_air)) + (t^2/n_glass) + ((W)/(n_water)));
Const=(Const_inv)^-1;
% Dirichlet's conditions at the top and bottom
val_up=1.332;
val_down=1.433; %
% size of the images
Lx=1720; % IN PIXEL
Lz=2304;
Mconversion=M;
% PIV-parameters
nx_pixel = 64;
ny_pixel = 64;
overlap_x=0.5;
overlap_y=0.5;