Commit 9922a3a1 authored by Lukas Aspöck's avatar Lukas Aspöck

minor changes / refactoring to itaRavenProject

parent 27e8903a
......@@ -303,6 +303,10 @@ classdef itaRavenProject < handle
obj.deleteResultsInRavenFolder();
end
%------------------------------------------------------------------
function setRavenIniPath(obj, newPath)
obj.ravenIniFile = newPath;
end
%------------------------------------------------------------------
function copyProjectToNewRPFFile(obj, newPath)
......@@ -731,7 +735,7 @@ classdef itaRavenProject < handle
% (4) smaller wall (width x height; front)
% (5) larger wall (length x height; right)
% (6) smaller wall (width x height; back)
%
% Using:
% outputFileName = rpf.setModelToShoebox(myLength,myWidth,myHeight);
%
......@@ -907,7 +911,7 @@ classdef itaRavenProject < handle
quiver3(spos(:,1),spos(:,2),spos(:,3),sview(:,1),sview(:,2),sview(:,3),0,'color','r','maxheadsize',1.5,'linewidth',1.5);
% plot view/up vectors (red) of receivers
quiver3(rpos(:,1),rpos(:,2),rpos(:,3),rview(:,1),rview(:,2),rview(:,3),0,'color','r','maxheadsize',1.5,'linewidth',1.5);
% quiver3(rpos(:,1),rpos(:,2),rpos(:,3),rview(:,1),rview(:,2),rview(:,3),0,'color','r','maxheadsize',1.5,'linewidth',1.5);
% plot up vectors (green) of sources and receivers (currently
......
......@@ -2,6 +2,12 @@
% Author: las@akustik.rwth-aachen.de
% date: 2019/04/10
%
% <ITA-Toolbox>
% This file is part of the application Raven for the ITA-Toolbox. All rights reserved.
% You can find the license for this m-file in the application folder.
% </ITA-Toolbox>
%% project settings
myLength=10;
......@@ -15,21 +21,21 @@ rpf.copyProjectToNewRPFFile(['C:\ITASoftware\Raven\RavenInput\' projectName '.rp
rpf.setProjectName(projectName);
rpf.setModelToShoebox(myLength,myWidth,myHeight);
% set values of six surfaces:
% set values of six surfaces:
% 10% absorption and 10% scattering for floor and ceiling
% Identical material with 5% absorption and 20% scattering for walls
for iMat=1:2
myAbsorp = 0.1 * ones(1,31);
myScatter = 0.1 * ones(1,31);
rpf.setMaterial(rpf.getRoomMaterialNames{iMat},myAbsorp,myScatter);
myAbsorp = 0.1 * ones(1,31);
myScatter = 0.1 * ones(1,31);
rpf.setMaterial(rpf.getRoomMaterialNames{iMat},myAbsorp,myScatter);
end
for iMat=3:6
myAbsorp = 0.05 * ones(1,31);
myScatter = 0.2 * ones(1,31);
rpf.setMaterial(rpf.getRoomMaterialNames{iMat},myAbsorp,myScatter);
myAbsorp = 0.05 * ones(1,31);
myScatter = 0.2 * ones(1,31);
rpf.setMaterial(rpf.getRoomMaterialNames{iMat},myAbsorp,myScatter);
end
% uncomment to see plot of room and absorption coefficient
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment