Index: Ringtoets/Piping/src/Ringtoets.Piping.IO/Builders/SoilLayer1D.cs =================================================================== diff -u -r751aaf9b7623bac357cbacf4e6ddae87b2b69f1f -rcb6877f670bacc7a6a896ab132d592eeef1107b5 --- Ringtoets/Piping/src/Ringtoets.Piping.IO/Builders/SoilLayer1D.cs (.../SoilLayer1D.cs) (revision 751aaf9b7623bac357cbacf4e6ddae87b2b69f1f) +++ Ringtoets/Piping/src/Ringtoets.Piping.IO/Builders/SoilLayer1D.cs (.../SoilLayer1D.cs) (revision cb6877f670bacc7a6a896ab132d592eeef1107b5) @@ -19,7 +19,6 @@ // Stichting Deltares and remain full property of Stichting Deltares at all times. // All rights reserved. -using System.Drawing; using Ringtoets.Piping.Primitives; namespace Ringtoets.Piping.IO.Builders @@ -28,7 +27,7 @@ /// This class represents objects which were imported from a DSoilModel database. Instances of this class are transient and are not to be used /// once the DSoilModel database has been imported. /// - internal class SoilLayer1D + internal class SoilLayer1D : GenericSoilLayerParameters { /// /// Creates a new instance of . @@ -49,120 +48,23 @@ public double? IsAquifer { get; set; } /// - /// Gets or sets the volumic weight of the above the phreatic level. - /// [kN/m³] - /// - public double? AbovePhreaticLevel { get; set; } - - /// - /// Gets or sets the dry unit weight for the . - /// - public double? DryUnitWeight { get; set; } - - /// - /// Gets or sets the name of the material that was assigned to the . - /// - public string MaterialName { get; set; } - - /// - /// Gets or sets the value representing a color that was used to represent the . - /// - public double? Color { get; set; } - - /// - /// Gets or sets the distribution for the volumic weight of the below the - /// phreatic level. - /// [kN/m³] - /// - public double? BelowPhreaticLevelDistribution { get; set; } - - /// - /// Gets or sets the shift of the distribution for the volumic weight of the - /// below the phreatic level. - /// [kN/m³] - /// - public double? BelowPhreaticLevelShift { get; set; } - - /// - /// Gets or sets the mean of the distribution for the volumic weight of the - /// below the phreatic level. - /// [kN/m³] - /// - public double? BelowPhreaticLevelMean { get; set; } - - /// - /// Gets or sets the deviation of the distribution for the volumic weight of the below the phreatic level. - /// [kN/m³] - /// - public double? BelowPhreaticLevelDeviation { get; set; } - - /// - /// Gets or sets the distribution for the mean diameter of small scale tests applied to different kinds of sand, on which the - /// formula of Sellmeijer has been fit. - /// [m] - /// - public double? DiameterD70Distribution { get; set; } - - /// - /// Gets or sets the shift of the distribution for the mean diameter of small scale tests applied to different kinds of sand, - /// on which the formula of Sellmeijer has been fit. - /// [m] - /// - public double? DiameterD70Shift { get; set; } - - /// - /// Gets or sets the mean of the distribution for the mean diameter of small scale tests applied to different kinds of sand, - /// on which the formula of Sellmeijer has been fit. - /// [m] - /// - public double? DiameterD70Mean { get; set; } - - /// - /// Gets or sets the deviation of the distribution for the mean diameter of small scale tests applied to different kinds of sand, - /// on which the formula of Sellmeijer has been fit. - /// [m] - /// - public double? DiameterD70Deviation { get; set; } - - /// - /// Gets or sets the distribution for the Darcy-speed with which water flows through the aquifer layer. - /// [m/s] - /// - public double? PermeabilityDistribution { get; set; } - - /// - /// Gets or sets the shift of the distribution for the Darcy-speed with which water flows through the aquifer layer. - /// [m/s] - /// - public double? PermeabilityShift { get; set; } - - /// - /// Gets or sets the mean of the distribution for the the Darcy-speed with which water flows through the aquifer layer. - /// [m/s] - /// - public double? PermeabilityMean { get; set; } - - /// - /// Gets or sets the deviation of the distribution for the Darcy-speed with which water flows through the aquifer layer. - /// [m/s] - /// - public double? PermeabilityDeviation { get; set; } - - /// /// Constructs a (1D) based on the properties set for the . /// /// The with properties corresponding to those set on the . internal PipingSoilLayer AsPipingSoilLayer() { - return new PipingSoilLayer(Top) + ValidateFieldsForPiping(); + + var pipingSoilLayer = new PipingSoilLayer(Top) { - AbovePhreaticLevel = AbovePhreaticLevel, - BelowPhreaticLevel = BelowPhreaticLevelMean, - DryUnitWeight = DryUnitWeight, IsAquifer = IsAquifer.HasValue && IsAquifer.Value.Equals(1.0), MaterialName = MaterialName ?? string.Empty, Color = SoilLayerColorConversionHelper.ColorFromNullableDouble(Color) }; + + SetOptionalFields(pipingSoilLayer); + + return pipingSoilLayer; } } } \ No newline at end of file