Index: Riskeer/MacroStabilityInwards/src/Riskeer.MacroStabilityInwards.Data/GeneralMacroStabilityInwardsInput.cs
===================================================================
diff -u -r3435ec516fda1313250e5ce2268347c73c0d3883 -r91b84db16bc1e13db9430f1de9bf6cfac34f4c43
--- Riskeer/MacroStabilityInwards/src/Riskeer.MacroStabilityInwards.Data/GeneralMacroStabilityInwardsInput.cs (.../GeneralMacroStabilityInwardsInput.cs) (revision 3435ec516fda1313250e5ce2268347c73c0d3883)
+++ Riskeer/MacroStabilityInwards/src/Riskeer.MacroStabilityInwards.Data/GeneralMacroStabilityInwardsInput.cs (.../GeneralMacroStabilityInwardsInput.cs) (revision 91b84db16bc1e13db9430f1de9bf6cfac34f4c43)
@@ -44,6 +44,11 @@
public double ModelFactor { get; }
///
+ /// Gets whether the length effect should be applied in the section.
+ ///
+ public bool ApplyLengthEffectInSection => true;
+
+ ///
/// Gets the volumetric weight of water.
///
public double WaterVolumetricWeight { get; }
Index: Riskeer/MacroStabilityInwards/src/Riskeer.MacroStabilityInwards.Forms/PropertyClasses/MacroStabilityInwardsFailurePathProperties.cs
===================================================================
diff -u -r26f427a7724ebe6e50c0d83fd87156df30f17e9c -r91b84db16bc1e13db9430f1de9bf6cfac34f4c43
--- Riskeer/MacroStabilityInwards/src/Riskeer.MacroStabilityInwards.Forms/PropertyClasses/MacroStabilityInwardsFailurePathProperties.cs (.../MacroStabilityInwardsFailurePathProperties.cs) (revision 26f427a7724ebe6e50c0d83fd87156df30f17e9c)
+++ Riskeer/MacroStabilityInwards/src/Riskeer.MacroStabilityInwards.Forms/PropertyClasses/MacroStabilityInwardsFailurePathProperties.cs (.../MacroStabilityInwardsFailurePathProperties.cs) (revision 91b84db16bc1e13db9430f1de9bf6cfac34f4c43)
@@ -196,7 +196,7 @@
{
get
{
- return true;
+ return data.GeneralInput.ApplyLengthEffectInSection;
}
}
Index: Riskeer/MacroStabilityInwards/test/Riskeer.MacroStabilityInwards.Data.Test/GeneralMacroStabilityInwardsInputTest.cs
===================================================================
diff -u -r80c53924c7488a48f8148ba8b73260446a262883 -r91b84db16bc1e13db9430f1de9bf6cfac34f4c43
--- Riskeer/MacroStabilityInwards/test/Riskeer.MacroStabilityInwards.Data.Test/GeneralMacroStabilityInwardsInputTest.cs (.../GeneralMacroStabilityInwardsInputTest.cs) (revision 80c53924c7488a48f8148ba8b73260446a262883)
+++ Riskeer/MacroStabilityInwards/test/Riskeer.MacroStabilityInwards.Data.Test/GeneralMacroStabilityInwardsInputTest.cs (.../GeneralMacroStabilityInwardsInputTest.cs) (revision 91b84db16bc1e13db9430f1de9bf6cfac34f4c43)
@@ -37,6 +37,7 @@
Assert.IsInstanceOf(inputParameters);
Assert.AreEqual(1.06, inputParameters.ModelFactor);
Assert.AreEqual(9.81, inputParameters.WaterVolumetricWeight);
+ Assert.IsTrue(inputParameters.ApplyLengthEffectInSection);
}
}
}
\ No newline at end of file
Index: Riskeer/Piping/src/Riskeer.Piping.Data/GeneralPipingInput.cs
===================================================================
diff -u -rc37eebd9171a53987f5929013edbe3d82e618ed0 -r91b84db16bc1e13db9430f1de9bf6cfac34f4c43
--- Riskeer/Piping/src/Riskeer.Piping.Data/GeneralPipingInput.cs (.../GeneralPipingInput.cs) (revision c37eebd9171a53987f5929013edbe3d82e618ed0)
+++ Riskeer/Piping/src/Riskeer.Piping.Data/GeneralPipingInput.cs (.../GeneralPipingInput.cs) (revision 91b84db16bc1e13db9430f1de9bf6cfac34f4c43)
@@ -72,6 +72,11 @@
#endregion
+ ///
+ /// Gets whether the length effect should be applied in the section.
+ ///
+ public bool ApplyLengthEffectInSection => true;
+
#region General parameters (used by multiple calculations)
private static readonly Range waterVolumetricWeightValidityRange = new Range(new RoundedDouble(waterVolumicWeightNumberOfDecimalPlaces),
Index: Riskeer/Piping/src/Riskeer.Piping.Forms/PropertyClasses/PipingFailurePathProperties.cs
===================================================================
diff -u -r26f427a7724ebe6e50c0d83fd87156df30f17e9c -r91b84db16bc1e13db9430f1de9bf6cfac34f4c43
--- Riskeer/Piping/src/Riskeer.Piping.Forms/PropertyClasses/PipingFailurePathProperties.cs (.../PipingFailurePathProperties.cs) (revision 26f427a7724ebe6e50c0d83fd87156df30f17e9c)
+++ Riskeer/Piping/src/Riskeer.Piping.Forms/PropertyClasses/PipingFailurePathProperties.cs (.../PipingFailurePathProperties.cs) (revision 91b84db16bc1e13db9430f1de9bf6cfac34f4c43)
@@ -196,7 +196,7 @@
{
get
{
- return true;
+ return data.GeneralInput.ApplyLengthEffectInSection;
}
}
Index: Riskeer/Piping/test/Riskeer.Piping.Data.Test/GeneralPipingInputTest.cs
===================================================================
diff -u -rc37eebd9171a53987f5929013edbe3d82e618ed0 -r91b84db16bc1e13db9430f1de9bf6cfac34f4c43
--- Riskeer/Piping/test/Riskeer.Piping.Data.Test/GeneralPipingInputTest.cs (.../GeneralPipingInputTest.cs) (revision c37eebd9171a53987f5929013edbe3d82e618ed0)
+++ Riskeer/Piping/test/Riskeer.Piping.Data.Test/GeneralPipingInputTest.cs (.../GeneralPipingInputTest.cs) (revision 91b84db16bc1e13db9430f1de9bf6cfac34f4c43)
@@ -72,6 +72,7 @@
Assert.AreEqual(9.81, inputParameters.Gravity);
Assert.AreEqual(2.08e-4, inputParameters.MeanDiameter70);
Assert.AreEqual(0.3, inputParameters.SellmeijerReductionFactor);
+ Assert.IsTrue(inputParameters.ApplyLengthEffectInSection);
}
[Test]