Index: DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/Common/PlLinesHelper.cs
===================================================================
diff -u -r6009 -r6404
--- DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/Common/PlLinesHelper.cs (.../PlLinesHelper.cs) (revision 6009)
+++ DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/Common/PlLinesHelper.cs (.../PlLinesHelper.cs) (revision 6404)
@@ -1,4 +1,4 @@
-// Copyright (C) Stichting Deltares 2024. All rights reserved.
+// Copyright (C) Stichting Deltares 2025. All rights reserved.
//
// This file is part of the Dam Engine.
//
@@ -97,7 +97,50 @@
///
/// Creates the pl lines.
///
+ /// The time step in date time format.
/// The location.
+ /// The soil profile.
+ /// The water level.
+ ///
+ public static PlLines CreatePlLinesForPiping(DateTime timeStepDateTime, Location location, SoilProfile1D soilProfile, double waterLevel)
+ {
+ var plLinesCreator = new PlLinesCreator.PlLinesCreator
+ {
+ WaterLevelRiverHigh = waterLevel,
+ SurfaceLine = location.SurfaceLine,
+ WaterLevelPolder = location.CurrentScenario.PolderLevel,
+ HeadInPlLine2 = location.CurrentScenario.HeadPl2,
+ HeadInPlLine3 = location.CurrentScenario.HeadPl3,
+ HeadInPlLine4 = location.CurrentScenario.HeadPl4,
+ ModelParametersForPlLines = location.ModelParametersForPlLines,
+ SoilProfile = soilProfile,
+ GaugePlLines = null, // TODO: Operational
+ Gauges = null, // TODO: Operational
+ IsAdjustPL3AndPL4SoNoUpliftWillOccurEnabled = false, // for piping this must be set to false
+ PlLineOffsetBelowDikeTopAtRiver = location.CurrentScenario.PlLineOffsetBelowDikeTopAtRiver,
+ PlLineOffsetBelowDikeTopAtPolder = location.CurrentScenario.PlLineOffsetBelowDikeTopAtPolder,
+ DikeEmbankmentMaterial = location.GetDikeEmbankmentSoil()
+ };
+ PlLines plLines;
+ if (location.ModelParametersForPlLines.PlLineCreationMethod == PlLineCreationMethod.Sensors)
+ {
+ var sensorPlLineCreatorSettings = new SensorPlLineCreatorSettings();
+ sensorPlLineCreatorSettings.SensorLocation = location.SensorLocation;
+ sensorPlLineCreatorSettings.DateTime = timeStepDateTime;
+ plLines = CreatePlLinesForStabilitySensors(location, sensorPlLineCreatorSettings); //ToDo Bka: consult with Tom whether we can just use this and just rename or does it really has to be different for Piping?
+ }
+ else
+ {
+ plLines = plLinesCreator.CreateAllPlLines(location);
+ }
+
+ return plLines;
+ }
+
+ ///
+ /// Creates the pl lines.
+ ///
+ /// The location.
/// The sub soil scenario.
/// The water level.
/// The water level river low.
@@ -146,47 +189,4 @@
};
return plLines;
}
-
- ///
- /// Creates the pl lines.
- ///
- /// The time step in date time format.
- /// The location.
- /// The soil profile.
- /// The water level.
- ///
- public static PlLines CreatePlLinesForPiping(DateTime timeStepDateTime, Location location, SoilProfile1D soilProfile, double waterLevel)
- {
- var plLinesCreator = new PlLinesCreator.PlLinesCreator
- {
- WaterLevelRiverHigh = waterLevel,
- SurfaceLine = location.SurfaceLine,
- WaterLevelPolder = location.CurrentScenario.PolderLevel,
- HeadInPlLine2 = location.CurrentScenario.HeadPl2,
- HeadInPlLine3 = location.CurrentScenario.HeadPl3,
- HeadInPlLine4 = location.CurrentScenario.HeadPl4,
- ModelParametersForPlLines = location.ModelParametersForPlLines,
- SoilProfile = soilProfile,
- GaugePlLines = null, // TODO: Operational
- Gauges = null, // TODO: Operational
- IsAdjustPL3AndPL4SoNoUpliftWillOccurEnabled = false, // for piping this must be set to false
- PlLineOffsetBelowDikeTopAtRiver = location.CurrentScenario.PlLineOffsetBelowDikeTopAtRiver,
- PlLineOffsetBelowDikeTopAtPolder = location.CurrentScenario.PlLineOffsetBelowDikeTopAtPolder,
- DikeEmbankmentMaterial = location.GetDikeEmbankmentSoil()
- };
- PlLines plLines;
- if (location.ModelParametersForPlLines.PlLineCreationMethod == PlLineCreationMethod.Sensors)
- {
- var sensorPlLineCreatorSettings = new SensorPlLineCreatorSettings();
- sensorPlLineCreatorSettings.SensorLocation = location.SensorLocation;
- sensorPlLineCreatorSettings.DateTime = timeStepDateTime;
- plLines = CreatePlLinesForStabilitySensors(location, sensorPlLineCreatorSettings); //ToDo Bka: consult with Tom whether we can just use this and just rename or does it really has to be different for Piping?
- }
- else
- {
- plLines = plLinesCreator.CreateAllPlLines(location);
- }
-
- return plLines;
- }
}
\ No newline at end of file