Esempio n. 1
0
 private void RectangularDuctDesignExecute(bool canExecute)
 {
     if (canExecute)
     {
         RectangularDuctDesigner.Execute(AirFlow,
                                         Approximation,
                                         RelativeRoughness,
                                         DuctLenght,
                                         RectangularDuctHeight,
                                         SelectionType,
                                         TargetValue,
                                         LocalLosses);
         RectangularDuctList = RectangularDuctDesigner.DuctCollection;
     }
 }
Esempio n. 2
0
        public DuctDesignViewModel()
        {
            PropertyChanged += DuctDesignViewModel_PropertyChanged;

            AirFlow                 = new AirFlow(293.15, 101325, 0.0);
            TargetValue             = 3.5;
            SelectionType           = SelectionType.Velocity;
            Approximation           = DarcyFrictionFactorApproximation.GoudarSonnad;
            RectangularDuctHeight   = 0.2;
            RelativeRoughness       = 0.00001;
            DuctLenght              = 1;
            RoundDuctDesigner       = new RoundDuctDesigner();
            RectangularDuctDesigner = new RectangularDuctDesigner();
            LocalLosses             = new ObservableCollection <LocalLoss>();
            DuctSystem              = new DuctSystem();
        }