Exemple #1
0
 public static void TestInit()
 {
     Systeme.Initialisation("init.xml", new Tuple <float, float>(-50, -50), new Tuple <float, float>(50, 50));
     Console.WriteLine("masse" + constants.masse);
     Console.WriteLine("masse" + constants.pasTemporel);
     Console.WriteLine("masse" + constants.rayonSPH);
     Console.WriteLine(Systeme.Particules[1531].Cellule);
     Console.ReadKey();
 }
Exemple #2
0
        public static void TestHydrostatique1()
        {
            Systeme.Initialisation(@"C:\Users\Ernest\Desktop\Conditions initiales TIPE\Hydrostatique-181054.xml", new Tuple <float, float>(-50000, -50000), new Tuple <float, float>(50000, 50000));
            string chemin = Environment.CurrentDirectory + "/Experiences/Hydrostatique-" + DateTime.Now.Day
                            + DateTime.Now.Month
                            + DateTime.Now.Hour
                            + DateTime.Now.Minute
                            + ".xml";

            Systeme.Experience(Environment.CurrentDirectory + "/Experiences/Vide.xml", chemin, 10);
        }
Exemple #3
0
 public static void TestHydrostatique0()
 {
     Systeme.Initialisation(@"C:\Users\Ernest\Desktop\Conditions initiales TIPE\Hydrostatique-2071718.xml", new Tuple <float, float>(-50, -50), new Tuple <float, float>(50, 50));
     Console.WriteLine("Masse:" + constants.masse);
     Console.WriteLine("Pas Temporel:" + constants.pasTemporel);
     Console.WriteLine("Rayon SPH:" + constants.rayonSPH);
     AfficherTableau();
     for (int i = 0; i < Systeme.NombreParticulesInstanciees; i++)
     {
         List <int> Voisines = Systeme.Particules[i].TrouverVoisines();
         Systeme.Particules[i].CalculerAcceleration(Voisines);
         Console.WriteLine(Systeme.Particules[i].MasseVolumique);
     }
     Console.ReadKey();
 }