Escolar Documentos
Profissional Documentos
Cultura Documentos
m
% Created by: Salaheddin Hosseinzadeh
% Created on: 26 / Aug / 2016 (my GCU Office)
% Last Revision: 10.10.2017
% Notes:
clear all
clc
losFlag = 1;
reflectionFlag = 1; % whether or not calculate First reflections
secondReflectionFlag = 1;
reflectExaggerationFac = 1e0; % Must be 1 unless to emphasize reflection for
demonstration purposes
% whether or not calculate LoS
disableIncidentAngle = 0; % 1 Disables the incident angle calculation, if
disableIncidentAngle= 1
solidIncidentAngle = 45; % if disableIncidentAngle =1, then assign this which
overwrites all the incident angles! This is unnecessary feature
polarizationSwap = 1; % (See notes in HOW THIS WORSK) % 1, Applies TE to
walls and TM to ceiling. 0, applies TM to the walls and TE to the ceiling
antennaGainRes = 40;
antennaEffiLoss = -11.5; % dB antenna efficiency, missmatch and loss all together
%
mesh_.xNodeNum = 40; % Keep the x and y mesh size the same, increase the size for
better resolution and especially if you're increasing the frequency
mesh_.yNodeNum = 40;
mesh_.zNodeNum = 1;
Tx.xyz = [
27,12 ,1.5
% 18,10,1.5
];
wall.xyz1 = wallxyz1;
wall.xyz2 = wallxyz2;
wall.xyz3 = wallxyz3;
wall.xyz4 = wallxyz4;
wall.X = wallX;
wall.Y = wallY;
wall.Z = wallZ;
ceillFloor.xyz1 = [0,0,ceilingLevel
31.83,23.9,ceilingLevel
0,0,groundLevel
];
ceillFloor.xyz2 = [0,23.9,ceilingLevel
31.83,27.83,ceilingLevel
0,27.54,groundLevel
];
ceillFloor.xyz3 = [36.9,23.9,ceilingLevel
36.9,27.83,ceilingLevel
36.9,27.54,groundLevel
];
ceillFloor.xyz4 = [36.9,0,ceilingLevel
36.9,23.9,ceilingLevel
36.9,0,groundLevel
];
else
ceillFloor.xyz1 = [];
ceillFloor.xyz2 = [];
ceillFloor.xyz3 = [];
ceillFloor.xyz4 = [];
end
wall.xyz1 = [wall.xyz1;ceillFloor.xyz1(i,:)];
wall.xyz2 = [wall.xyz2;ceillFloor.xyz2(i,:)];
wall.xyz3 = [wall.xyz3;ceillFloor.xyz3(i,:)];
wall.xyz4 = [wall.xyz4;ceillFloor.xyz4(i,:)];
end
% RayTracingEng_V01
RayTracingEng_V02