Class SceneWithAttenuation
java.lang.Object
org.noise_planet.noisemodelling.pathfinder.path.Scene
org.noise_planet.noisemodelling.propagation.SceneWithAttenuation
- Direct Known Subclasses:
SceneWithEmission
Scene is used by ProfileBuilder to construct profiles with only taking account of geometry information.
This scene is adding information about attenuation and source power
-
Field Summary
FieldsModifier and TypeFieldDescriptionintMaximum number of reflections between train body and barrier (body barrier interaction).Define attenuation settings to apply for each periodstatic final Stringstatic final doubleIfcnossosParametersPerPeriodis empty, attenuation visitor will use this default settings and output empty periodAttenuation and other attributes relative to direction on spherestatic final StringKeep a known set of all periods of the simulation This set is used to output a default value when there is no sound source found for a specific periodLink between sources PK and Cref (vehicle body reflection coefficient). 0 = no body barrier (road sources or open freight), 1 = fully reflecting body.Link between sources PK and DirectivitySphere specified in linked with directionAttributesLink between sources PK and gs ground factor of the source areaLink between sources PK and hRail (rail platform height).Fields inherited from class Scene
computeHorizontalDiffraction, computeVerticalDiffraction, DEFAULT_G, DEFAULT_G_BUILDING, DEFAULT_MAX_PROPAGATION_DISTANCE, DEFAULT_MAXIMUM_REF_DIST, DEFAULT_RECEIVER_DIST, defaultGroundAttenuation, DIRECTIVITY_DATABASE_FIELD, GS_DATABASE_FIELD, lineSourceSpacingRatio, maxRefDist, maxSrcDist, PITCH_DATABASE_FIELD, profileBuilder, receivers, receiversPk, reflexionOrder, ROLL_DATABASE_FIELD, sourceGeometries, sourceOrientation, sourcesIndex, sourcesPk, YAW_DATABASE_FIELD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd geometry with additional attributesvoidaddSource(Long pk, org.locationtech.jts.geom.Geometry geom, org.h2gis.utilities.SpatialResultSet rs, Map<String, Integer> sourceFieldNames) Add geometry with additional attributesvoiddouble[]getSourceAttenuation(int srcIndex, double[] frequencies, double phi, double theta) doublegetSourceGs(int srcIndex) Retrieves the ground speed of the noise source at the specified index.doublegetSourceGs(long srcPrimaryKey) Retrieves the ground speed of the noise source at the specified index.booleanisOmnidirectional(int srcIndex) Checks if the noise source at the specified index is omnidirectional.voidsetDirectionAttributes(Map<Integer, DirectivitySphere> directionAttributes) Sets the direction attributes for the receiver.Methods inherited from class Scene
addReceiver, addReceiver, addReceiver, addSource, addSource, addSource, getCloseReceiverReflectionWallDistance, getReflexionOrder, setCloseReceiverReflectionWallDistance, setComputeHorizontalDiffraction, setComputeVerticalDiffraction, setDefaultGroundAttenuation, setReflexionOrder
-
Field Details
-
DEFAULT_GS
public static final double DEFAULT_GS- See Also:
-
directionAttributes
Attenuation and other attributes relative to direction on sphere -
sourceEmissionAttenuation
-
sourceGs
-
sourceHRail
-
sourceCref
-
bodyBarrierMaxReflectionOrder
public int bodyBarrierMaxReflectionOrderMaximum number of reflections between train body and barrier (body barrier interaction). Default is 3 as recommended by NMPB guide. Set to higher values (e.g. 10) for convergence studies. -
HRAIL_DATABASE_FIELD
- See Also:
-
CREF_DATABASE_FIELD
- See Also:
-
defaultCnossosParameters
IfcnossosParametersPerPeriodis empty, attenuation visitor will use this default settings and output empty period -
cnossosParametersPerPeriod
Define attenuation settings to apply for each period -
periodSet
-
-
Constructor Details
-
SceneWithAttenuation
-
SceneWithAttenuation
public SceneWithAttenuation()
-
-
Method Details
-
getSourceGs
public double getSourceGs(int srcIndex) Retrieves the ground speed of the noise source at the specified index.- Parameters:
srcIndex- Source index- Returns:
- the ground speed of the noise source at the specified index.
-
getSourceGs
public double getSourceGs(long srcPrimaryKey) Retrieves the ground speed of the noise source at the specified index.- Parameters:
srcPrimaryKey- Source primary key- Returns:
- the ground speed of the noise source at the specified index.
-
addSource
-
setDirectionAttributes
Sets the direction attributes for the receiver.- Parameters:
directionAttributes-
-
addSource
public void addSource(Long pk, org.locationtech.jts.geom.Geometry geom, org.h2gis.utilities.SpatialResultSet rs, Map<String, Integer> sourceFieldNames) throws SQLExceptionAdd geometry with additional attributes- Parameters:
pk- Unique source identifiergeom- Source geometryrs- Additional attributes fetched from database- Throws:
SQLException
-
isOmnidirectional
public boolean isOmnidirectional(int srcIndex) Checks if the noise source at the specified index is omnidirectional.- Parameters:
srcIndex- Source index in the list sourceGeometries- Returns:
- True if the source is omnidirectional and so does not have orientation dependant attenuation, false otherwise.
-
getSourceAttenuation
public double[] getSourceAttenuation(int srcIndex, double[] frequencies, double phi, double theta) - Parameters:
srcIndex- Source index in the list sourceGeometriesfrequencies- Frequency in Hertzphi- (0 2π) 0 is fronttheta- (-π/2 π/2) 0 is horizontal π is top- Returns:
-
clearSources
public void clearSources()- Overrides:
clearSourcesin classScene
-