/// <summary> /// Calculates the piezometric head at the exit point based on the values of the <see cref="PipingCalculatorInput"/>. /// </summary> /// <returns>The piezometric head at the exit point.</returns> public double CalculatePiezometricHeadAtExit() { IPiezoHeadCalculator calculator = factory.CreatePiezometricHeadAtExitCalculator(); calculator.SetPhiPolder(input.PhreaticLevelExit); calculator.SetHRiver(input.AssessmentLevel); calculator.SetRExit(input.DampingFactorExit); calculator.Calculate(); return(calculator.PhiExit); }
public void CreatePiezometricHeadAtExitCalculator_Always_ReturnsPiezometricHeadAtExitCalculator() { // Setup IPipingSubCalculatorFactory factory = PipingSubCalculatorFactory.Instance; // Call IPiezoHeadCalculator calculator = factory.CreatePiezometricHeadAtExitCalculator(); // Assert Assert.IsInstanceOf <PiezoHeadCalculator>(calculator); }