Skip to content

Commit

Permalink
prepare file for deviation computation from cnossos tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-f committed Jan 7, 2025
1 parent be6347b commit 04005aa
Show file tree
Hide file tree
Showing 10 changed files with 425 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3744,7 +3744,7 @@ public void TC15() throws IOException {
@Test
public void TC16() throws IOException {
//Out and computation settings
Attenuation propDataOut = computeCnossosPath("TC16_Direct", "TC16_Left");
Attenuation propDataOut = computeCnossosPath("TC16_Direct", "TC16_Reflection");

/* Table 163 */
List<Coordinate> expectedZProfile = new ArrayList<>();
Expand Down Expand Up @@ -3931,7 +3931,7 @@ public void TC16() throws IOException {
@Test
public void TC17() throws IOException {
//Out and computation settings
Attenuation propDataOut = computeCnossosPath("TC17_Direct", "TC17_Left");
Attenuation propDataOut = computeCnossosPath("TC17_Direct", "TC17_Reflection");

// Expected Values

Expand Down Expand Up @@ -4142,7 +4142,7 @@ public void TC17() throws IOException {
@Test
public void TC18() throws IOException {
//Out and computation settings
Attenuation propDataOut = computeCnossosPath("TC18_Direct", "TC18_Left");
Attenuation propDataOut = computeCnossosPath("TC18_Direct", "TC18_Reflection");

assertEquals(2, propDataOut.getPropagationPaths().size());

Expand Down Expand Up @@ -5642,7 +5642,7 @@ public void TC23() throws IOException {
*/
@Test
public void TC24() throws IOException {
Attenuation propDataOut = computeCnossosPath("TC24_Direct", "TC24_Left");
Attenuation propDataOut = computeCnossosPath("TC24_Direct", "TC24_Reflection");

/* Table 279 */
List<Coordinate> expectedZProfile = new ArrayList<>();
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
{
"cutPoints" : [ {
"type" : "Source",
"coordinate" : {
"x" : 10.0,
"y" : 10.0,
"z" : 1.0
},
"zGround" : 0.0,
"groundCoefficient" : 0.9,
"sourcePk" : -1,
"li" : 1.0,
"orientation" : {
"yaw" : 0.0,
"pitch" : 0.0,
"roll" : 0.0
}
}, {
"type" : "GroundEffect",
"coordinate" : {
"x" : 50.0,
"y" : 18.894651178790934,
"z" : 0.0
},
"zGround" : 0.0,
"groundCoefficient" : 0.5
}, {
"type" : "VEdgeDiffraction",
"coordinate" : {
"x" : 99.9893933982822,
"y" : 30.010606601717797,
"z" : 7.232234504389141
},
"zGround" : 0.0,
"groundCoefficient" : 0.5
}, {
"type" : "Topography",
"coordinate" : {
"x" : 120.0,
"y" : 31.344902798584958,
"z" : 0.0
},
"zGround" : 0.0,
"groundCoefficient" : 0.5
}, {
"type" : "GroundEffect",
"coordinate" : {
"x" : 150.0,
"y" : 33.34528623036851,
"z" : 4.615384615384615
},
"zGround" : 4.615384615384615,
"groundCoefficient" : 0.2
}, {
"type" : "VEdgeDiffraction",
"coordinate" : {
"x" : 174.99054111062358,
"y" : 35.01164171000175,
"z" : 12.343278448981938
},
"zGround" : 8.460083247788244,
"groundCoefficient" : 0.2
}, {
"type" : "Topography",
"coordinate" : {
"x" : 185.0,
"y" : 33.005847746748294,
"z" : 10.0
},
"zGround" : 10.0,
"groundCoefficient" : 0.2
}, {
"type" : "Receiver",
"coordinate" : {
"x" : 200.0,
"y" : 30.0,
"z" : 14.0
},
"zGround" : 10.0,
"groundCoefficient" : 0.2,
"receiverPk" : -1
} ],
"hasBuildingIntersection" : false,
"hasTopographyIntersection" : false
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{
"cutPoints" : [ {
"type" : "Source",
"coordinate" : {
"x" : 0.0,
"y" : 50.0,
"z" : 4.0
},
"zGround" : 0.0,
"groundCoefficient" : 0.5,
"sourcePk" : -1,
"li" : 1.0,
"orientation" : {
"yaw" : 0.0,
"pitch" : 0.0,
"roll" : 0.0
}
}, {
"type" : "VEdgeDiffraction",
"coordinate" : {
"x" : 249.9893933982822,
"y" : 180.0106066017178,
"z" : 3.2324491060497658
},
"zGround" : 0.0,
"groundCoefficient" : 0.5
}, {
"type" : "VEdgeDiffraction",
"coordinate" : {
"x" : 270.0106066017178,
"y" : 180.0106066017178,
"z" : 3.172535251076891
},
"zGround" : 0.0,
"groundCoefficient" : 0.5
}, {
"type" : "VEdgeDiffraction",
"coordinate" : {
"x" : 978.9916414594315,
"y" : 121.01245531210233,
"z" : 1.0597238975809367
},
"zGround" : 0.0,
"groundCoefficient" : 0.5
}, {
"type" : "VEdgeDiffraction",
"coordinate" : {
"x" : 993.0124553121024,
"y" : 118.0083585405684,
"z" : 1.0182158406809045
},
"zGround" : 0.0,
"groundCoefficient" : 0.5
}, {
"type" : "Receiver",
"coordinate" : {
"x" : 1000.0,
"y" : 100.0,
"z" : 1.0
},
"zGround" : 0.0,
"groundCoefficient" : 0.5,
"receiverPk" : -1
} ],
"hasBuildingIntersection" : false,
"hasTopographyIntersection" : false
}
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,7 @@ public void TC16() throws Exception {
assertEquals(2, propDataOut.getCutProfiles().size());

assertCutProfile("TC16_Direct", propDataOut.cutProfiles.poll());
assertCutProfile("TC16_Left", propDataOut.cutProfiles.poll());
assertCutProfile("TC16_Reflection", propDataOut.cutProfiles.poll());
}

/**
Expand Down Expand Up @@ -931,7 +931,7 @@ public void TC17() throws Exception {
assertEquals(2, propDataOut.getCutProfiles().size());

assertCutProfile("TC17_Direct", propDataOut.cutProfiles.poll());
assertCutProfile("TC17_Left", propDataOut.cutProfiles.poll());
assertCutProfile("TC17_Reflection", propDataOut.cutProfiles.poll());

}

Expand Down Expand Up @@ -979,7 +979,7 @@ public void TC18() throws Exception {
assertEquals(2, propDataOut.getCutProfiles().size());

assertCutProfile("TC18_Direct", propDataOut.cutProfiles.poll());
assertCutProfile("TC18_Left", propDataOut.cutProfiles.poll());
assertCutProfile("TC18_Reflection", propDataOut.cutProfiles.poll());
}

/**
Expand Down Expand Up @@ -1373,7 +1373,7 @@ public void TC24() throws Exception {
assertEquals(2, propDataOut.getCutProfiles().size());

assertCutProfile("TC24_Direct", propDataOut.cutProfiles.poll());
assertCutProfile("TC24_Left", propDataOut.cutProfiles.poll());
assertCutProfile("TC24_Reflection", propDataOut.cutProfiles.poll());
}

@Test
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/**
* NoiseModelling is a library capable of producing noise maps. It can be freely used either for research and education, as well as by experts in a professional use.
* <p>
* NoiseModelling is distributed under GPL 3 license. You can read a copy of this License in the file LICENCE provided with this software.
* <p>
* Official webpage : http://noise-planet.org/noisemodelling.html
* Contact: [email protected]
*/

package org.noise_planet.noisemodelling.propagation;

public class GenerateReferenceDeviation {

public static void main(String[] args) {

}

}
Loading

0 comments on commit 04005aa

Please sign in to comment.