Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/SoilProfile/MacroStabilityInwardsSoilProfileUnderSurfaceLineFactory.cs =================================================================== diff -u -rf2230a0fa03c42a2983e37b94cc053e6e99773f7 -r708bcebfe9e5db209c818a12d630cb418231f863 --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/SoilProfile/MacroStabilityInwardsSoilProfileUnderSurfaceLineFactory.cs (.../MacroStabilityInwardsSoilProfileUnderSurfaceLineFactory.cs) (revision f2230a0fa03c42a2983e37b94cc053e6e99773f7) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/SoilProfile/MacroStabilityInwardsSoilProfileUnderSurfaceLineFactory.cs (.../MacroStabilityInwardsSoilProfileUnderSurfaceLineFactory.cs) (revision 708bcebfe9e5db209c818a12d630cb418231f863) @@ -92,11 +92,29 @@ layer => new MacroStabilityInwardsSoilLayerUnderSurfaceLine( RingToPoints(layer.OuterRing), layer.Holes.Select(RingToPoints), - layer.Properties)); + ToUnderSurfaceLineProperties(layer.Properties))); return new MacroStabilityInwardsSoilProfileUnderSurfaceLine(layersUnderSurfaceLine); } + private static MacroStabilityInwardsSoilLayerPropertiesUnderSurfaceLine ToUnderSurfaceLineProperties( + MacroStabilityInwardsSoilLayerProperties properties) + { + var props = new MacroStabilityInwardsSoilLayerPropertiesUnderSurfaceLine( + new MacroStabilityInwardsSoilLayerPropertiesUnderSurfaceLine.ConstructionProperties + { + AbovePhreaticLevelMean = properties.AbovePhreaticLevelMean, + AbovePhreaticLevelCoefficientOfVariation = properties.AbovePhreaticLevelDeviation, + UsePop = properties.UsePop, + IsAquifer = properties.IsAquifer, + ShearStrengthModel = properties.ShearStrengthModel, + MaterialName = properties.MaterialName + }); + + props.AbovePhreaticLevelDesignVariable = MacroStabilityInwardsSemiProbabilisticDesignValueFactory.GetAbovePhreaticLevel(props).GetDesignValue(); + return props; + } + private static Point2D[] RingToPoints(Ring ring) { return ring.Points.ToArray(); @@ -112,7 +130,7 @@ { foreach (Point2D[] soilLayerArea in GetSoilLayerWithSurfaceLineIntersection(surfaceLineGeometryArray, layer.OuterLoop)) { - collection.Add(new MacroStabilityInwardsSoilLayerUnderSurfaceLine(soilLayerArea, layer.Properties)); + collection.Add(new MacroStabilityInwardsSoilLayerUnderSurfaceLine(soilLayerArea, ToUnderSurfaceLineProperties(layer.Properties))); } }