Exemple #1
0
        public void CreateSellmeijerCalculator_Always_ReturnsSellmeijerCalculator()
        {
            // Setup
            IPipingSubCalculatorFactory factory = PipingSubCalculatorFactory.Instance;

            // Call
            ISellmeijerCalculator calculator = factory.CreateSellmeijerCalculator();

            // Assert
            Assert.IsInstanceOf <SellmeijerCalculator>(calculator);
        }
Exemple #2
0
        private ISellmeijerCalculator CreateSellmeijerCalculator()
        {
            ISellmeijerCalculator calculator = factory.CreateSellmeijerCalculator();

            calculator.SetModelFactorPiping(input.SellmeijerModelFactor);
            calculator.SetHRiver(input.AssessmentLevel);
            calculator.SetHExit(input.PhreaticLevelExit);
            calculator.SetRc(input.SellmeijerReductionFactor);
            calculator.SetDTotal(input.ThicknessCoverageLayer);
            calculator.SetSeepageLength(input.SeepageLength);
            calculator.SetGammaSubParticles(input.SandParticlesVolumicWeight);
            calculator.SetWhitesDragCoefficient(input.WhitesDragCoefficient);
            calculator.SetD70(input.Diameter70);
            calculator.SetVolumetricWeightOfWater(input.WaterVolumetricWeight);
            calculator.SetDarcyPermeability(input.DarcyPermeability);
            calculator.SetKinematicViscosityWater(input.WaterKinematicViscosity);
            calculator.SetGravity(input.Gravity);
            calculator.SetDAquifer(input.ThicknessAquiferLayer);
            calculator.SetD70Mean(input.MeanDiameter70);
            calculator.SetBeddingAngle(input.BeddingAngle);
            calculator.SetBottomLevelAquitardAboveExitPointZ(GetBottomAquitardLayerAboveExitPointZ());

            return(calculator);
        }