Commit 2b2589e8 authored by Armin Erraji's avatar Armin Erraji

Test environment for testing model

parent 88c308a4
......@@ -71,14 +71,17 @@ int main(int iNumInArgs, char* pcInArgs[])
return 255;
}
//auto pEmitter = make_shared< CEmitter >(VistaVector3D(5.0f,-15.f, 1.0f));
//auto pEmitter = make_shared< CEmitter >(VistaVector3D(5.0f, 0.0f, 1.0f));
auto pEmitter = make_shared< CEmitter >(VistaVector3D(5.f, 10.f, 1.0f));
auto pSensor = make_shared< CSensor >(VistaVector3D(50.0f, 5.0f, 1.7f));
auto pEmitter = make_shared< CEmitter >(VistaVector3D(-1.0f,20.f, 1.0f)); //S_1 Car_1
//auto pEmitter = make_shared< CEmitter >(VistaVector3D(-1.0f, 0.0f, 1.0f)); //S_2 Car_2
//auto pEmitter = make_shared< CEmitter >(VistaVector3D(-1.0f, -20.f, 1.0f)); //S_3 Car_3
//auto pSensor = make_shared< CSensor >(VistaVector3D(50.0f, 5.0f, 1.7f)); //R_1 Human_street far
auto pSensor = make_shared< CSensor >(VistaVector3D(10.0f, 5.0f, 1.7f)); //R_3 Human_street near
//auto pSensor = make_shared< CSensor >(VistaVector3D(-30.0f, 0.0f, 1.7f)); //R_2 Human_Backyard
//auto pEmitter = make_shared< CEmitter >(VistaVector3D(-30.0f, 0.0f, 1.7f)); //S_4 Human_Backyard
/*auto pEmitter = make_shared< CEmitter >(VistaVector3D(50.0f, -5.0f, 1.7f));
auto pSensor = make_shared< CSensor >( VistaVector3D( 0.0f, 0.0f, 1.7f ) );
*/
......@@ -92,17 +95,17 @@ int main(int iNumInArgs, char* pcInArgs[])
//Configuration of the engine
const bool bOnlyNeighbouredEdgeDiffraction = false;
const bool bDiffractionOnlyIntoShadowRegion = false;
const bool bDiffractionOnlyIntoShadowRegion = true;
const bool bFilterNotVisiblePathsBetweenEdges = false; //Intersection test between edges(expensive)
const bool bFilterNotVisiblePointToEdge = true; //Intersection test between emitter/sensor and edges
const bool bFilterNotVisiblePaths = true; //Intersection test of calculated sub paths
const float fIntersectionTestResolution = 0.001;
const int iNumIterations = 4;//!< Number of iterations for the calculation of the aperture points
const int fMaxAccumulatedDiffractionAngle = -2 * ITAConstants::PI_F;
const int fMaxAccumulatedDiffractionAngle = ITAConstants::PI_F;
const float fLevelDropThreshhold = -90.f - 40.f - 11.f; //90 dB Power level car; 30 dB masking; 11 dB initial power level drop
const float fReflectionPenalty = -20 * log10f(0.7); //Level reduction of a reflection with reflection factor R = 0.7
const float fLevelDropThreshhold = 90.f - 30.f - 11.f; //90 dB Power level car; 30 dB masking; 11 dB initial power level drop
const float fReflectionPenalty = -10 * log10f(0.8); //Level reduction of a reflection with reflection factor rho = 0.8 from ISO9613-2
const float fDiffractionPenalty = 2.5f; // Minimum level reduction of a diffracted signal into the shadow region for a low frequency (Taken from BA Filbert Figure 16. UTD)
//Multiple simulations
......@@ -168,7 +171,7 @@ int main(int iNumInArgs, char* pcInArgs[])
//Single simulation
#if 1
const int iMaxDiffractionOrder = 0;
const int iMaxDiffractionOrder = 4;
const int iMaxReflectionOrder = 4;
const int iMaxCombinedOrder = 4; //iMaxDiffractionOrder + iMaxReflectionOrder;
......
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