Example #1
0
        private void UpdateConsolidatieGrid()
        {
            SpecificTestInformation specific = Model.SpecificTestInformation[0];
            GenericTestInformation  generic  = Model.GenericTestInformation;

            int   duration      = 0;
            float deltaH        = 0;
            float normal_stress = 0;

            for (int i = 0; i < Model.dataPoints.Length; i++)
            {
                if (Model.dataPoints[i].stage_number == 2)
                {
                    duration      = (int)Math.Round((float)Model.dataPoints[i - 1].time_since_start_stage / 3600);
                    normal_stress = (int)Math.Round((float)Model.dataPoints[i].normal_stress);
                }
                if (Model.dataPoints[i].axial_displacement > deltaH)
                {
                    deltaH = Model.dataPoints[i].axial_displacement;
                }
            }

            List <GeneralDataEntry> items = new List <GeneralDataEntry>();

            items.Add(new GeneralDataEntry("Δh:", deltaH.ToString(), "mm"));
            items.Add(new GeneralDataEntry("h na consolidatie:", (generic.InitieleHoogte - deltaH).ToString(), "mm"));
            items.Add(new GeneralDataEntry("Normal stress:", Utilities.RoundTo(normal_stress, 1).ToString(), "kPa"));
            items.Add(new GeneralDataEntry("Duur:", duration.ToString(), "uur"));
            ConsolidatieGrid.ItemsSource = items;
        }
Example #2
0
        private void Continue_Button_Click(object sender, RoutedEventArgs e)
        {
            GenericTestInformation genericTestInformation = GenericInformationComponent.GetInformation();

            if (genericTestInformation == null)
            {
                return;
            }
            SpecificTestInformation[] specific = new SpecificTestInformation[3];
            int i = 0;

            foreach (SpecificTestInformationComponent component in InformationComponents)
            {
                if (component == null)
                {
                    continue;
                }
                SpecificTestInformation info = component.GetInformation();
                if (info == null)
                {
                    return;
                }
                else
                {
                    specific[i] = info;
                    i++;
                }
            }


            ResultsWindow wind = new ResultsWindow(FileNames, genericTestInformation, specific);

            wind.Show();
        }
Example #3
0
        private void UpdateAfschuifGrid()
        {
            SpecificTestInformation specific = Model.SpecificTestInformation[0];
            GenericTestInformation  generic  = Model.GenericTestInformation;

            float max_horizontal_strain = 0;
            float max_stage_time        = 0;
            float max_horizontal_stress = 0;
            int   max_tau_index         = 0;

            for (int i = 0; i < Model.dataPoints.Length; i++)
            {
                if (Model.dataPoints[i].horizontal_strain > max_horizontal_strain)
                {
                    max_horizontal_strain = Model.dataPoints[i].horizontal_strain;
                }
                if (Model.dataPoints[i].stage_number == 2 && Model.dataPoints[i].time_since_start_stage > max_stage_time)
                {
                    max_stage_time = Model.dataPoints[i].time_since_start_stage;
                }
                if (Model.dataPoints[i].horizontal_stress > max_horizontal_stress)
                {
                    max_horizontal_stress = Model.dataPoints[i].horizontal_stress;
                    max_tau_index         = i;
                }
            }

            float afschuifsnelheid            = max_horizontal_strain / max_stage_time * 3600;
            float max_tau                     = Model.dataPoints[max_tau_index].horizontal_strain;
            float max_shear                   = calculateMaxShear();
            float best_error                  = float.MaxValue;
            float target                      = max_shear / 2;
            float horizontal_strain_at_target = 0;

            for (int i = 0; i < Model.dataPoints.Length; i++)
            {
                float current_error = Math.Abs(target - Model.dataPoints[i].horizontal_stress);
                if (current_error < best_error)
                {
                    best_error = current_error;
                    horizontal_strain_at_target = Model.dataPoints[i].horizontal_strain;
                }
            }
            float g50 = max_shear / 2 / horizontal_strain_at_target / 10;

            List <GeneralDataEntry> items = new List <GeneralDataEntry>();

            items.Add(new GeneralDataEntry("Afschuifsnelheid:", Utilities.RoundTo(afschuifsnelheid, 1).ToString(), "%/h"));
            items.Add(new GeneralDataEntry("Max. shear stress:", Utilities.RoundTo(max_horizontal_stress, 1).ToString(), "kPa"));
            items.Add(new GeneralDataEntry("Shear strain bij max.", Utilities.RoundTo(max_tau, 1).ToString(), "%"));
            items.Add(new GeneralDataEntry("G" + '\u2085' + '\u2080' + ":", Utilities.RoundTo(g50, 3).ToString(), "Mpa"));
            AfschuifGrid.ItemsSource = items;
        }
Example #4
0
        private void UpdateEigenschappenMonsterGrid()
        {
            SpecificTestInformation specific = Model.SpecificTestInformation[0];
            GenericTestInformation  generic  = Model.GenericTestInformation;

            List <GeneralDataEntry> items = new List <GeneralDataEntry>();

            items.Add(new GeneralDataEntry("Initiële hoogte:", generic.InitieleHoogte.ToString(), "mm"));
            items.Add(new GeneralDataEntry("Initiëel volumegewicht γ:", specific.InitieelVolumegewicht.ToString(), "kN/m3"));
            items.Add(new GeneralDataEntry("Droog volumegewicht γ:", specific.DroogVolumegewicht.ToString(), "kN/m3"));
            items.Add(new GeneralDataEntry("Watergehalte:", specific.WatergehalteVoor.ToString(), "%"));
            EigenschappenMonsterGrid.ItemsSource = items;
        }
Example #5
0
        private void UpdateProjectGrid()
        {
            GenericTestInformation  generic  = Model.GenericTestInformation;
            SpecificTestInformation specific = Model.SpecificTestInformation[0];

            List <GeneralDataEntry> items = new List <GeneralDataEntry>();

            items.Add(new GeneralDataEntry("Project:", generic.Project, ""));
            items.Add(new GeneralDataEntry("", specific.Boring, ""));
            items.Add(new GeneralDataEntry("", generic.Projectnummer, ""));
            items.Add(new GeneralDataEntry("", "DIRECT SIMPLE SHEAR TEST", ""));

            ProjectGrid.ItemsSource = items;
        }
Example #6
0
        private void UpdateBoringGrid()
        {
            GenericTestInformation  generic  = Model.GenericTestInformation;
            SpecificTestInformation specific = Model.SpecificTestInformation[0];

            List <GeneralDataEntry> items = new List <GeneralDataEntry>();

            items.Add(new GeneralDataEntry("Boring:", specific.Boring, ""));
            items.Add(new GeneralDataEntry("Monsterdiepte:", "MV " + specific.MonsterDiepteMaaiveld + " m", ""));
            items.Add(new GeneralDataEntry("", "MV NAP " + specific.MonsterDiepteNAP + " m", ""));
            items.Add(new GeneralDataEntry("", "NAP " + specific.DiepteMaaiveld + " m", ""));
            items.Add(new GeneralDataEntry("Grondsoort:", generic.GrondSoort, ""));
            items.Add(new GeneralDataEntry("Monsterklasse:", specific.MonsterKlasse.ToString(), ""));
            items.Add(new GeneralDataEntry("Datum proef:", specific.DatumProef, ""));
            BoringGrid.ItemsSource = items;
        }
Example #7
0
        public SpecificTestInformation GetInformation()
        {
            SpecificTestInformation information = new SpecificTestInformation();

            information.Boring = BoringField.Text;
            try
            {
                information.Monster = Convert.ToInt32(MonsterField.Text);
            }
            catch
            {
                MessageBox.Show("Waarde Monster (" + MonsterField.Text + ") is geen geheel getal");
                return(null);
            }

            try
            {
                information.Bus = Convert.ToInt32(BusField.Text);
            }
            catch
            {
                MessageBox.Show("Waarde Bus (" + BusField.Text + ") is geen geheel getal");
                return(null);
            }

            try
            {
                information.DiepteMaaiveld = Convert.ToDouble(DiepteMaaiveldField.Text);
            }
            catch
            {
                MessageBox.Show("Waarde Diepte maaiveld (" + DiepteMaaiveldField.Text + ") is geen decimaal getal");
                return(null);
            }

            try
            {
                information.MonsterDiepteMaaiveld = Convert.ToDouble(MonsterdiepteMaaiveldField.Text);
            }
            catch
            {
                MessageBox.Show("Waarde Monsterdiepte (t.o.v maaiveld) (" + MonsterdiepteMaaiveldField.Text + ") is geen decimaal getal");
                return(null);
            }

            try
            {
                information.MonsterDiepteNAP = Convert.ToDouble(MonsterDiepteNAPField.Text);
            }
            catch
            {
                MessageBox.Show("Waarde Monsterdiepte (t.o.v maaiveld) (" + MonsterDiepteNAPField.Text + ") is geen decimaal getal");
                return(null);
            }

            try
            {
                information.MonsterKlasse = Convert.ToInt32(MonsterklasseField.Text);
            }
            catch
            {
                MessageBox.Show("Waarde Monsterklasse (" + MonsterklasseField.Text + ") is geen geheel getal");
                return(null);
            }

            information.DatumProef = DatumProefField.Text;

            try
            {
                information.InitieelVolumegewicht = Convert.ToDouble(InitieelVolumeGewichtField.Text);
            }
            catch
            {
                MessageBox.Show("Waarde Initieel volumegewicht (" + InitieelVolumeGewichtField.Text + ") is geen decimaal getal");
                return(null);
            }

            try
            {
                information.DroogVolumegewicht = Convert.ToDouble(DroogVolumeGewichtField.Text);
            }
            catch
            {
                MessageBox.Show("Waarde Droog volumegewicht (" + DroogVolumeGewichtField.Text + ") is geen decimaal getal");
                return(null);
            }

            try
            {
                information.WatergehalteVoor = Convert.ToInt32(WatergehalteVoorField.Text);
            }
            catch
            {
                MessageBox.Show("Waarde Watergehalte (voor) (" + WatergehalteVoorField.Text + ") is geen geheel getal");
                return(null);
            }

            try
            {
                information.WatergehalteNa = Convert.ToInt32(WatergehalteNaField.Text);
            }
            catch
            {
                MessageBox.Show("Waarde Watergehalte (na) (" + WatergehalteNaField.Text + ") is geen geheel getal");
                return(null);
            }

            return(information);
        }