public RoundDuctViewModel( DarcyFrictionFactorApproximation approximation, double relativeRoughness, double diameter, double length, AirFlow airFlow, double targetValue) : base(approximation, relativeRoughness, diameter, length, airFlow) { TargetValue = targetValue; }
public RectangularDuctViewModel( DarcyFrictionFactorApproximation approximation, double relativeRoughness, double aSize, double bSize, double length, AirFlow airFlow, double targetValue) : base(approximation, relativeRoughness, aSize, bSize, length, airFlow) { TargetValue = targetValue; }
public void Execute( AirFlow airFloe, DarcyFrictionFactorApproximation approximation, double relativeRoughness, double ductLenght, SelectionType selType, double targetVal, ObservableCollection <LocalLoss> localLosses) { DuctCollection = new ObservableCollection <RoundDuctViewModel>(); foreach (double d in diameterList) { RoundDuctViewModel duct = new RoundDuctViewModel(approximation, relativeRoughness, d, ductLenght, airFloe, targetVal); duct.LocalLosses = localLosses.Where(x => x.LocalLossCoefficient > 0.0).ToList(); DuctCollection.Add(duct); } }