コード例 #1
0
        protected override HeightStructuresCalculationConfiguration ToConfiguration(StructuresCalculationScenario <HeightStructuresInput> calculation)
        {
            HeightStructuresInput input  = calculation.InputParameters;
            var calculationConfiguration = new HeightStructuresCalculationConfiguration(calculation.Name)
            {
                HydraulicBoundaryLocationName        = input.HydraulicBoundaryLocation?.Name,
                ShouldIllustrationPointsBeCalculated = input.ShouldIllustrationPointsBeCalculated,
                StormDuration = input.StormDuration.ToStochastConfigurationWithMean(),
                ModelFactorSuperCriticalFlow = input.ModelFactorSuperCriticalFlow.ToStochastConfigurationWithMean(),
                Scenario = calculation.ToScenarioConfiguration()
            };

            calculationConfiguration.SetConfigurationForeshoreProfileDependentProperties(input);

            if (input.Structure != null)
            {
                calculationConfiguration.StructureId = input.Structure.Id;
                calculationConfiguration.StructureNormalOrientation             = input.StructureNormalOrientation;
                calculationConfiguration.FailureProbabilityStructureWithErosion = input.FailureProbabilityStructureWithErosion;

                calculationConfiguration.FlowWidthAtBottomProtection  = input.FlowWidthAtBottomProtection.ToStochastConfiguration();
                calculationConfiguration.WidthFlowApertures           = input.WidthFlowApertures.ToStochastConfiguration();
                calculationConfiguration.StorageStructureArea         = input.StorageStructureArea.ToStochastConfiguration();
                calculationConfiguration.AllowedLevelIncreaseStorage  = input.AllowedLevelIncreaseStorage.ToStochastConfiguration();
                calculationConfiguration.LevelCrestStructure          = input.LevelCrestStructure.ToStochastConfiguration();
                calculationConfiguration.CriticalOvertoppingDischarge = input.CriticalOvertoppingDischarge.ToStochastConfiguration();
            }

            return(calculationConfiguration);
        }
コード例 #2
0
        protected override ClosingStructuresCalculationConfiguration ToConfiguration(StructuresCalculationScenario <ClosingStructuresInput> calculation)
        {
            ClosingStructuresInput input = calculation.InputParameters;
            var calculationConfiguration = new ClosingStructuresCalculationConfiguration(calculation.Name)
            {
                HydraulicBoundaryLocationName          = input.HydraulicBoundaryLocation?.Name,
                ShouldIllustrationPointsBeCalculated   = input.ShouldIllustrationPointsBeCalculated,
                FailureProbabilityStructureWithErosion = input.FailureProbabilityStructureWithErosion,
                FactorStormDurationOpenStructure       = input.FactorStormDurationOpenStructure,
                StormDuration                = input.StormDuration.ToStochastConfigurationWithMean(),
                DrainCoefficient             = input.DrainCoefficient.ToStochastConfiguration(),
                ModelFactorSuperCriticalFlow = input.ModelFactorSuperCriticalFlow.ToStochastConfigurationWithMean(),
                Scenario = calculation.ToScenarioConfiguration()
            };

            calculationConfiguration.SetConfigurationForeshoreProfileDependentProperties(input);

            if (input.Structure != null)
            {
                calculationConfiguration.StructureId = input.Structure.Id;
                calculationConfiguration.StructureNormalOrientation = input.StructureNormalOrientation;

                calculationConfiguration.InflowModelType    = (ConfigurationClosingStructureInflowModelType?)new ConfigurationClosingStructureInflowModelTypeConverter().ConvertFrom(input.InflowModelType);
                calculationConfiguration.IdenticalApertures = input.IdenticalApertures;
                calculationConfiguration.FailureProbabilityOpenStructure        = input.FailureProbabilityOpenStructure;
                calculationConfiguration.FailureProbabilityReparation           = input.FailureProbabilityReparation;
                calculationConfiguration.ProbabilityOpenStructureBeforeFlooding = input.ProbabilityOpenStructureBeforeFlooding;

                calculationConfiguration.FlowWidthAtBottomProtection  = input.FlowWidthAtBottomProtection.ToStochastConfiguration();
                calculationConfiguration.WidthFlowApertures           = input.WidthFlowApertures.ToStochastConfiguration();
                calculationConfiguration.StorageStructureArea         = input.StorageStructureArea.ToStochastConfiguration();
                calculationConfiguration.AllowedLevelIncreaseStorage  = input.AllowedLevelIncreaseStorage.ToStochastConfiguration();
                calculationConfiguration.CriticalOvertoppingDischarge = input.CriticalOvertoppingDischarge.ToStochastConfiguration();

                calculationConfiguration.AreaFlowApertures             = input.AreaFlowApertures.ToStochastConfiguration();
                calculationConfiguration.InsideWaterLevel              = input.InsideWaterLevel.ToStochastConfiguration();
                calculationConfiguration.LevelCrestStructureNotClosing = input.LevelCrestStructureNotClosing.ToStochastConfiguration();
                calculationConfiguration.ThresholdHeightOpenWeir       = input.ThresholdHeightOpenWeir.ToStochastConfiguration();
            }

            return(calculationConfiguration);
        }
コード例 #3
0
        protected override StabilityPointStructuresCalculationConfiguration ToConfiguration(StructuresCalculationScenario <StabilityPointStructuresInput> calculation)
        {
            StabilityPointStructuresInput input = calculation.InputParameters;

            var calculationConfiguration = new StabilityPointStructuresCalculationConfiguration(calculation.Name)
            {
                DrainCoefficient = input.DrainCoefficient.ToStochastConfiguration(),
                FactorStormDurationOpenStructure       = input.FactorStormDurationOpenStructure,
                FailureProbabilityStructureWithErosion = input.FailureProbabilityStructureWithErosion,
                HydraulicBoundaryLocationName          = input.HydraulicBoundaryLocation?.Name,
                VolumicWeightWater = input.VolumicWeightWater,
                StormDuration      = input.StormDuration.ToStochastConfigurationWithMean(),
                ShouldIllustrationPointsBeCalculated = input.ShouldIllustrationPointsBeCalculated,
                Scenario = calculation.ToScenarioConfiguration()
            };

            SetConfigurationStructureDependentParameters(calculationConfiguration, input);
            calculationConfiguration.SetConfigurationForeshoreProfileDependentProperties(input);
            return(calculationConfiguration);
        }