예제 #1
0
        public void Calc5Friction()
        {
            List <Double> tempValues = new List <double>()
            {
                PointsDummyFriction.ModelData1.FRunFriction,
                PointsDummyFriction.ModelData2.FRunFriction,
                PointsDummyFriction.ModelData3.FRunFriction,
                PointsDummyFriction.ModelData4.FRunFriction,
                PointsDummyFriction.ModelData5.FRunFriction,
            };

            DataFrictionPointsList.Clear();

            PointsDummyFriction = new PointsDummy(_data);
            for (int i = 0; i < PointsDummyFriction.PointsDummyList.Count; i++)
            {
                PointsDummyFriction.PointsDummyList[i].FRunFriction = tempValues[i];
                PointsDummyFriction.PointsDummyList[i].CalcAll();
                DataFrictionPointsList.Add(PointsDummyFriction.PointsDummyList[i]);
            }

            dataGridFriction.ItemsSource  = null;
            dataGridFriction.ItemsSource  = DataFrictionPointsList;
            dataGridFriction2.ItemsSource = null;
            dataGridFriction2.ItemsSource = DataFrictionPointsList;
        }
예제 #2
0
        //retarded piece of code

        public void Calc5Temp()
        {
            List <Double> tempValues = new List <double>()
            {
                PointsDummyTemp.ModelData1.P0,
                PointsDummyTemp.ModelData2.P0,
                PointsDummyTemp.ModelData3.P0,
                PointsDummyTemp.ModelData4.P0,
                PointsDummyTemp.ModelData5.P0,
            };

            DataTempPointsList.Clear();

            PointsDummyTemp = new PointsDummy(_data);
            for (int i = 0; i < PointsDummyTemp.PointsDummyList.Count; i++)
            {
                PointsDummyTemp.PointsDummyList[i].P0 = tempValues[i];
                PointsDummyTemp.PointsDummyList[i].CalcAll();
                DataTempPointsList.Add(PointsDummyTemp.PointsDummyList[i]);
            }

            dataGridTemp.ItemsSource  = null;
            dataGridTemp2.ItemsSource = null;
            dataGridTemp.ItemsSource  = DataTempPointsList;
            dataGridTemp2.ItemsSource = DataTempPointsList;
        }
예제 #3
0
 public ViewModel()
 {
     _data = new ModelData();
     InitData(_data);
     _plotModel        = new PlotModel();
     _pointsDummyMass  = new PointsDummy();
     _pointsDummySpeed = new PointsDummy();
 }
예제 #4
0
        public ViewModel()
        {
            _data = new ModelData();
            //Shole point legend when hovering
            _customPlotController = new PlotController();
            _customPlotController.UnbindMouseDown(OxyMouseButton.Left);
            _customPlotController.BindMouseEnter(PlotCommands.HoverSnapTrack);
            _plotModel           = new PlotModel();
            _pointsDummyTemp     = new PointsDummy();
            _pointsDummyFriction = new PointsDummy();
            //TESTING
            InitData(_data);
            PointsDummyFriction.ModelData1.FRunFriction = 0.25;
            PointsDummyFriction.ModelData2.FRunFriction = 0.1;
            PointsDummyFriction.ModelData3.FRunFriction = 0.07;
            PointsDummyFriction.ModelData4.FRunFriction = 0.045;
            PointsDummyFriction.ModelData5.FRunFriction = 0.03;

            PointsDummyTemp.ModelData1.P0 = 1.1455;
            PointsDummyTemp.ModelData2.P0 = 1.1839;
            PointsDummyTemp.ModelData3.P0 = 1.225;
            PointsDummyTemp.ModelData4.P0 = 1.269;
            PointsDummyTemp.ModelData5.P0 = 1.3163;
        }
예제 #5
0
        public ViewModel()
        {
            _data = new ModelData();
            InitData(_data);
            _plotModel = new PlotModel();
            _pointsDummyMass = new PointsDummy();
            _pointsDummySpeed = new PointsDummy();

        }