Index: Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Data/ClosingStructuresInput.cs
===================================================================
diff -u -rc7da0846a135f849273407e16fe52237371e8f7a -ra76bb82a008a01449840d2afcc31d5aec4f5ba3f
--- Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Data/ClosingStructuresInput.cs (.../ClosingStructuresInput.cs) (revision c7da0846a135f849273407e16fe52237371e8f7a)
+++ Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Data/ClosingStructuresInput.cs (.../ClosingStructuresInput.cs) (revision a76bb82a008a01449840d2afcc31d5aec4f5ba3f)
@@ -143,6 +143,76 @@
UpdateForeshoreProperties();
}
+ private bool ValidProbabilityValue(double probability)
+ {
+ return !double.IsNaN(probability) && probability <= 1 && probability >= 0;
+ }
+
+ #region Structure properties
+
+ ///
+ /// Gets or sets the closing structure.
+ ///
+ public ClosingStructure ClosingStructure { get; set; }
+
+ ///
+ /// Gets or sets the type of closing structure.
+ ///
+ public ClosingStructureType ClosingStructureType { get; set; }
+
+ #endregion
+
+ #region Model Factors
+
+ ///
+ /// Gets or sets the model factor for the super critical flow.
+ ///
+ /// Only sets the mean.
+ public NormalDistribution ModelFactorSuperCriticalFlow
+ {
+ get
+ {
+ return modelFactorSuperCriticalFlow;
+ }
+ set
+ {
+ modelFactorSuperCriticalFlow.Mean = value.Mean;
+ }
+ }
+
+ ///
+ /// Gets or sets the drain coefficient.
+ ///
+ /// Only sets the mean.
+ public NormalDistribution DrainCoefficient
+ {
+ get
+ {
+ return drainCoefficient;
+ }
+ set
+ {
+ drainCoefficient.Mean = value.Mean;
+ }
+ }
+
+ ///
+ /// Gets or sets the storm duration for an open structure.
+ ///
+ public RoundedDouble FactorStormDurationOpenStructure
+ {
+ get
+ {
+ return factorStormDurationOpenStructure;
+ }
+ set
+ {
+ factorStormDurationOpenStructure = value.ToPrecision(factorStormDurationOpenStructure.NumberOfDecimalPlaces);
+ }
+ }
+
+ #endregion
+
#region Hydraulic load and data properties
public HydraulicBoundaryLocation HydraulicBoundaryLocation { get; set; }
@@ -218,40 +288,65 @@
#endregion
- #endregion
+ ///
+ /// Gets or sets the inside water level.
+ /// [m+NAP]
+ ///
+ public NormalDistribution InsideWaterLevel
+ {
+ get
+ {
+ return insideWaterLevel;
+ }
+ set
+ {
+ insideWaterLevel.Mean = value.Mean;
+ insideWaterLevel.StandardDeviation = value.StandardDeviation;
+ }
+ }
- #region Model inputs
-
- #endregion
-
- #region Schematization
-
- #endregion
-
- #region Hydraulic Boundary Location
-
- #endregion
-
- #region Structure properties
-
///
- /// Gets or sets the closing structure.
+ /// Gets or sets the deviation of the wave direction.
+ /// [degrees]
///
- public ClosingStructure ClosingStructure { get; set; }
+ public RoundedDouble DeviationWaveDirection
+ {
+ get
+ {
+ return deviationWaveDirection;
+ }
+ set
+ {
+ deviationWaveDirection = value.ToPrecision(deviationWaveDirection.NumberOfDecimalPlaces);
+ }
+ }
///
- /// Gets or sets the type of closing structure.
+ /// Gets or sets the storm duration.
+ /// [hrs]
///
- public ClosingStructureType ClosingStructureType { get; set; }
+ /// Only sets the mean.
+ public LogNormalDistribution StormDuration
+ {
+ get
+ {
+ return stormDuration;
+ }
+ set
+ {
+ stormDuration.Mean = value.Mean;
+ }
+ }
#endregion
- #region Deterministic inputs
+ #region Schematization
#region Structure Normal orientation
///
/// Gets or sets the orientation of the normal of the structure.
+ /// [degrees]
///
///
/// - When the value is smaller than 0, it will be set to 0.
@@ -292,27 +387,42 @@
#endregion
///
- /// Gets or sets the storm duration for an open structure.
+ /// Gets or sets the threshold height of the open weir.
+ /// [m+NAP]
///
- public RoundedDouble FactorStormDurationOpenStructure
+ public NormalDistribution ThresholdHeightOpenWeir
{
get
{
- return factorStormDurationOpenStructure;
+ return thresholdHeightOpenWeir;
}
set
{
- factorStormDurationOpenStructure = value.ToPrecision(factorStormDurationOpenStructure.NumberOfDecimalPlaces);
+ thresholdHeightOpenWeir.Mean = value.Mean;
+ thresholdHeightOpenWeir.StandardDeviation = value.StandardDeviation;
}
}
///
- /// Gets or sets the identical apertures to use during the calculation.
+ /// Gets or sets the area flow apertures.
+ /// [m^2]
///
- public int IdenticalApertures { get; set; }
+ public LogNormalDistribution AreaFlowApertures
+ {
+ get
+ {
+ return areaFlowApertures;
+ }
+ set
+ {
+ areaFlowApertures.Mean = value.Mean;
+ areaFlowApertures.StandardDeviation = value.StandardDeviation;
+ }
+ }
///
/// Gets or sets the failure probability of an open structure.
+ /// [1/year]
///
/// Thrown when the value of the probability
/// is not between [0, 1].
@@ -334,6 +444,7 @@
///
/// Gets or sets the reparation failure probability.
+ /// [1/year]
///
/// Thrown when the value of the probability
/// is not between [0, 1].
@@ -354,133 +465,14 @@
}
///
- /// Gets or sets the failure probability of structure given erosion.
+ /// Gets or sets the identical apertures to use during the calculation.
///
- /// Thrown when the value of the probability
- /// is not between [0, 1].
- public double FailureProbabilityStructureWithErosion
- {
- get
- {
- return failureProbabilityStructureWithErosion;
- }
- set
- {
- if (!ValidProbabilityValue(value))
- {
- throw new ArgumentException(RingtoetsCommonDataResources.FailureProbability_Value_needs_to_be_between_0_and_1);
- }
- failureProbabilityStructureWithErosion = value;
- }
- }
+ public int IdenticalApertures { get; set; }
///
- /// Gets or sets the deviation of the wave direction.
+ /// Gets or sets the level of crest of the structures that are not closed.
+ /// [m+NAP]
///
- public RoundedDouble DeviationWaveDirection
- {
- get
- {
- return deviationWaveDirection;
- }
- set
- {
- deviationWaveDirection = value.ToPrecision(deviationWaveDirection.NumberOfDecimalPlaces);
- }
- }
-
- ///
- /// Gets or sets the failure probability of an open structure before flooding.
- ///
- /// Thrown when the value of the probability
- /// is not between [0, 1].
- public double ProbabilityOpenStructureBeforeFlooding
- {
- get
- {
- return probabilityOpenStructureBeforeFlooding;
- }
- set
- {
- if (!ValidProbabilityValue(value))
- {
- throw new ArgumentException(RingtoetsCommonDataResources.FailureProbability_Value_needs_to_be_between_0_and_1);
- }
- probabilityOpenStructureBeforeFlooding = value;
- }
- }
-
- #endregion
-
- #region Probabilistic inputs
-
- ///
- /// Gets or sets the drain coefficient.
- ///
- /// Only sets the mean.
- public NormalDistribution DrainCoefficient
- {
- get
- {
- return drainCoefficient;
- }
- set
- {
- drainCoefficient.Mean = value.Mean;
- }
- }
-
- ///
- /// Gets or sets the model factor super critical flow.
- ///
- /// Only sets the mean.
- public NormalDistribution ModelFactorSuperCriticalFlow
- {
- get
- {
- return modelFactorSuperCriticalFlow;
- }
- set
- {
- modelFactorSuperCriticalFlow.Mean = value.Mean;
- }
- }
-
- ///
- /// Gets or sets the threshold low weir height.
- ///
- public NormalDistribution ThresholdHeightOpenWeir
- {
- get
- {
- return thresholdHeightOpenWeir;
- }
- set
- {
- thresholdHeightOpenWeir.Mean = value.Mean;
- thresholdHeightOpenWeir.StandardDeviation = value.StandardDeviation;
- }
- }
-
- ///
- /// Gets or sets the area flow apertures.
- ///
- public LogNormalDistribution AreaFlowApertures
- {
- get
- {
- return areaFlowApertures;
- }
- set
- {
- areaFlowApertures.Mean = value.Mean;
- areaFlowApertures.StandardDeviation = value.StandardDeviation;
- }
- }
-
- ///
- /// Gets or sets the level crest of structure not closing.
- ///
public NormalDistribution LevelCrestStructureNotClosing
{
get
@@ -495,23 +487,8 @@
}
///
- /// Gets or sets the inside water level.
- ///
- public NormalDistribution InsideWaterLevel
- {
- get
- {
- return insideWaterLevel;
- }
- set
- {
- insideWaterLevel.Mean = value.Mean;
- insideWaterLevel.StandardDeviation = value.StandardDeviation;
- }
- }
-
- ///
/// Gets or sets the allowable increase of level for storage.
+ /// [m]
///
public LogNormalDistribution AllowedLevelIncreaseStorage
{
@@ -528,6 +505,7 @@
///
/// Gets or sets the storage structure area.
+ /// [m^2]
///
public LogNormalDistribution StorageStructureArea
{
@@ -543,7 +521,8 @@
}
///
- /// Gets or sets the flow widt at bottom protection.
+ /// Gets or sets the flow width at the bottom protection.
+ /// [m]
///
public LogNormalDistribution FlowWidthAtBottomProtection
{
@@ -560,6 +539,7 @@
///
/// Gets or sets the critical overtopping discharge.
+ /// [m^3/s/m]
///
public LogNormalDistribution CriticalOverToppingDischarge
{
@@ -575,7 +555,30 @@
}
///
+ /// Gets or sets the failure probability of structure given erosion.
+ /// [1/year]
+ ///
+ /// Thrown when the value of the probability
+ /// is not between [0, 1].
+ public double FailureProbabilityStructureWithErosion
+ {
+ get
+ {
+ return failureProbabilityStructureWithErosion;
+ }
+ set
+ {
+ if (!ValidProbabilityValue(value))
+ {
+ throw new ArgumentException(RingtoetsCommonDataResources.FailureProbability_Value_needs_to_be_between_0_and_1);
+ }
+ failureProbabilityStructureWithErosion = value;
+ }
+ }
+
+ ///
/// Gets or sets the width of flow apertures.
+ /// [m]
///
public NormalDistribution WidthFlowApertures
{
@@ -591,26 +594,26 @@
}
///
- /// Gets or sets the storm duration.
+ /// Gets or sets the failure probability of an open structure before flooding.
///
- /// Only sets the mean.
- public LogNormalDistribution StormDuration
+ /// Thrown when the value of the probability
+ /// is not between [0, 1].
+ public double ProbabilityOpenStructureBeforeFlooding
{
get
{
- return stormDuration;
+ return probabilityOpenStructureBeforeFlooding;
}
set
{
- stormDuration.Mean = value.Mean;
+ if (!ValidProbabilityValue(value))
+ {
+ throw new ArgumentException(RingtoetsCommonDataResources.FailureProbability_Value_needs_to_be_between_0_and_1);
+ }
+ probabilityOpenStructureBeforeFlooding = value;
}
}
#endregion
-
- private bool ValidProbabilityValue(double probability)
- {
- return !double.IsNaN(probability) && probability <= 1 && probability >= 0;
- }
}
}
\ No newline at end of file