Class RailWayCnossosParameters
java.lang.Object
org.noise_planet.noisemodelling.emission.railway.RailWayParameters
org.noise_planet.noisemodelling.emission.railway.cnossos.RailWayCnossosParameters
Data result stockage
-
Field Summary
FieldsFields inherited from class RailWayParameters
railwaySourceList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleCompute the total acoustic power (in Watts) of low sources (ROLLING, TRACTIONA, AERODYNAMICA) from the railway source list.doublegetCref()doublestatic DoublegetDirectionAttenuation(LineSource lineSource, double phi, double theta, double frequency) Compute the attenuation for the specified noise source and parametersdouble[]double[]double[]double[]double[]double[]voidsetCref(double cref) Set the reflection coefficient of the vehicle body barrier.voidsetCrefTotalWeight(double crefTotalWeight) Set the accumulated weight for cref averaging.voidsetLWAerodynamicA(double[] LWAerodynamicA) voidsetLWAerodynamicB(double[] LWAerodynamicB) voidsetLWBridge(double[] LWBridge) voidsetLWRolling(double[] LWRolling) voidsetLWTractionA(double[] LWTractionA) voidsetLWTractionB(double[] LWTractionB) static RailWayCnossosParameterssumRailwaySource(RailWayCnossosParameters lineSource1, RailWayCnossosParameters lineSource2) Sum two train emission instancesMethods inherited from class RailWayParameters
addRailwaySource, appendVperHour, getRailwaySourceList, setRailwaySourceList, sumRailwaySource
-
Field Details
-
DEFAULT_FREQUENCIES_THIRD_OCTAVE
-
sourceType
-
-
Constructor Details
-
RailWayCnossosParameters
public RailWayCnossosParameters()
-
-
Method Details
-
sumRailwaySource
public static RailWayCnossosParameters sumRailwaySource(RailWayCnossosParameters lineSource1, RailWayCnossosParameters lineSource2) Sum two train emission instances- Parameters:
lineSource1- Emission 1lineSource2- Emission 2- Returns:
- Merged level
-
getLWRolling
public double[] getLWRolling() -
setLWRolling
public void setLWRolling(double[] LWRolling) -
getLWTractionA
public double[] getLWTractionA() -
setLWTractionA
public void setLWTractionA(double[] LWTractionA) -
getLWTractionB
public double[] getLWTractionB() -
setLWTractionB
public void setLWTractionB(double[] LWTractionB) -
getLWAerodynamicA
public double[] getLWAerodynamicA() -
setLWAerodynamicA
public void setLWAerodynamicA(double[] LWAerodynamicA) -
getLWAerodynamicB
public double[] getLWAerodynamicB() -
setLWAerodynamicB
public void setLWAerodynamicB(double[] LWAerodynamicB) -
getLWBridge
public double[] getLWBridge() -
setLWBridge
public void setLWBridge(double[] LWBridge) -
getDirectionAttenuation
public static Double getDirectionAttenuation(LineSource lineSource, double phi, double theta, double frequency) Compute the attenuation for the specified noise source and parameters- Parameters:
phi- (0 2π) 0 is fronttheta- (-π/2 π/2) 0 is horizontal π is topfrequency- Emission frequency- Returns:
- Directional sound power
-
computeLowSourcePower
public double computeLowSourcePower()Compute the total acoustic power (in Watts) of low sources (ROLLING, TRACTIONA, AERODYNAMICA) from the railway source list. This is used as the weight for Cref averaging.- Returns:
- total power in Watts of the low source types, or 0 if none present
-
getCref
public double getCref()- Returns:
- Reflection coefficient of the vehicle body barrier (0-1), power-weighted average.
-
setCref
public void setCref(double cref) Set the reflection coefficient of the vehicle body barrier.- Parameters:
cref- 0 = open freight (no reflection), 1 = fully reflecting body
-
getCrefTotalWeight
public double getCrefTotalWeight()- Returns:
- Accumulated weight for cref averaging
-
setCrefTotalWeight
public void setCrefTotalWeight(double crefTotalWeight) Set the accumulated weight for cref averaging.- Parameters:
crefTotalWeight- acoustic power in Watts of low sources
-