Index: Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Data/GrassCoverErosionInwardsCalculation.cs =================================================================== diff -u -rfaa4f56b7eac1c69190e6c97464b8cfad6299f6d -rd2de88a141d3ba20d1f3b301a3c38723b682b206 --- Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Data/GrassCoverErosionInwardsCalculation.cs (.../GrassCoverErosionInwardsCalculation.cs) (revision faa4f56b7eac1c69190e6c97464b8cfad6299f6d) +++ Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Data/GrassCoverErosionInwardsCalculation.cs (.../GrassCoverErosionInwardsCalculation.cs) (revision d2de88a141d3ba20d1f3b301a3c38723b682b206) @@ -20,8 +20,12 @@ // All rights reserved. using Core.Common.Base; +using Core.Common.Base.Data; +using Core.Common.Base.Geometry; using Ringtoets.Common.Data.Calculation; +using Ringtoets.Common.Data.Probabilistics; using Ringtoets.GrassCoverErosionInwards.Data.Properties; +using Ringtoets.HydraRing.Data; namespace Ringtoets.GrassCoverErosionInwards.Data { @@ -37,6 +41,7 @@ { Name = Resources.GrassCoverErosionInwardsCalculation_DefaultName; InputParameters = new GrassCoverErosionInwardsInput(); + AddDemoInput(); } /// @@ -78,5 +83,33 @@ { InputParameters.HydraulicBoundaryLocation = null; } + + private void AddDemoInput() + { + // BreakWater + InputParameters.BreakWater.Add(new BreakWater(BreakWaterType.Dam, 10)); + InputParameters.BreakWaterPresent = true; + + // Orientation + InputParameters.Orientation = new RoundedDouble(RoundedDouble.MaximumNumberOfDecimalPlaces, 5.5); + + // CriticalFlowRate + InputParameters.CriticalFlowRate = new LognormalDistribution(3); + + // Dike and Foreshore + var sections = new[] + { + new RoughnessProfileSection(new Point2D(1.1, 2.2), new Point2D(3.3, 4.4), 1.1), + new RoughnessProfileSection(new Point2D(3.3, 4.4), new Point2D(5.5, 6.6), 2.2) + }; + InputParameters.SetGeometry(sections, 1); + InputParameters.ForeshorePresent = true; + + // Hydraulic boundaries location + InputParameters.HydraulicBoundaryLocation = new HydraulicBoundaryLocation(1300001, "Demo", 0.0, 1.1); + + // Dike height + InputParameters.DikeHeight = 10; + } } } \ No newline at end of file