Exemple #1
0
        public static int Main(string[] args)
        {
            using (BootStrap b = new BootStrap())
            {
                System.Diagnostics.Stopwatch watch = new System.Diagnostics.Stopwatch();
                watch.Start();


                string filename = b.GetInputFile("Tight Binding code", "tb", args);

                TightBinding c = new TightBinding();

                c.LoadTB(filename);
                c.RunTB();

                watch.Stop();
                Output.WriteLine("Total time: {0} s", watch.ElapsedMilliseconds / 1000.0);

                long milliseconds = watch.ElapsedMilliseconds;
                int  seconds      = (int)(milliseconds / 1000L);
                int  minutes      = seconds / 60;
                int  hours        = minutes / 60;
                minutes      %= 60;
                seconds      %= 60;
                milliseconds %= 1000;

                Output.WriteLine("            {0}:{1:00}:{2:00}.{3:000}", hours, minutes, seconds, milliseconds);
                return(0);
            }
        }
Exemple #2
0
        public static int Main(string[] args)
        {
            using (BootStrap b = new BootStrap())
            {
                System.Diagnostics.Stopwatch watch = new System.Diagnostics.Stopwatch();
                watch.Start();

                string filename = b.GetInputFile("Tight Binding code", "tb", args);

                TightBinding c = new TightBinding();

                c.LoadTB(filename);
                c.RunTB();

                watch.Stop();
                Output.WriteLine("Total time: {0} s", watch.ElapsedMilliseconds / 1000.0);

                long milliseconds = watch.ElapsedMilliseconds;
                int seconds = (int)(milliseconds / 1000L);
                int minutes = seconds / 60;
                int hours = minutes / 60;
                minutes %= 60;
                seconds %= 60;
                milliseconds %= 1000;

                Output.WriteLine("            {0}:{1:00}:{2:00}.{3:000}", hours, minutes, seconds, milliseconds);
                return 0;
            }
        }
Exemple #3
0
        static void Main(string[] args)
        {
            using (BootStrap b = new BootStrap())
            {
                string inputfile = b.GetInputFile("Random Phase Approximation code", "rpa", args);

                RPA inst = new RPA();
                inst.Run(inputfile);
            }
        }
        static void Main(string[] args)
        {
            using (BootStrap b = new BootStrap())
            {
                string inputfile = b.GetInputFile("Green's function generator", "g", args);

                PlotGreenProgram inst = new PlotGreenProgram();
                inst.Run(inputfile);
            }
        }
        static void Main(string[] args)
        {
            using (BootStrap b = new BootStrap())
            {
                string inputfile = b.GetInputFile("Green's function generator", "g", args);

                PlotGreenProgram inst = new PlotGreenProgram();
                inst.Run(inputfile);
            }
        }
Exemple #6
0
        static void Main(string[] args)
        {
            using (BootStrap b = new BootStrap())
            {
                string inputfile = b.GetInputFile("RPA Analysis code", "rpanal", args);

                TightBinding tb   = new TightBinding(inputfile);
                RPA          inst = new RPA();

                Vector3 q = GetQpoint();

                List <KPoint> qpt = new List <KPoint>();
                qpt.Add(new KPoint(q));

                var parameters = inst.CreateRpaParameterList(tb, qpt);
            }
        }
Exemple #7
0
        static void Main(string[] args)
        {
            using (BootStrap b = new BootStrap())
            {
                string inputfile = b.GetInputFile("RPA Analysis code", "rpanal", args);

                TightBinding tb = new TightBinding(inputfile);
                RPA inst = new RPA();

                Vector3 q = GetQpoint();

                List<KPoint> qpt = new List<KPoint>();
                qpt.Add(new KPoint(q));

                var parameters = inst.CreateRpaParameterList(tb, qpt);
            }
        }
Exemple #8
0
        public static void Main(string[] args)
        {
            Directory.SetCurrentDirectory("/home/eylvisaker/Calculations/rpa/tests");

            using (BootStrap b = new BootStrap())
            {
                if (args.Length == 0)
                {
                    Console.WriteLine("Must specify tight binding input and eigenvalues files on command line.");
                    System.Environment.Exit(1);
                }

                string inputfile = b.GetInputFile("Band Path code", "bandpath", args);
                TightBinding tb = new TightBinding(inputfile);

                var argsList = args.ToList();
                argsList.RemoveAt(0);

                new BandPath().Run(tb, argsList);
            }
        }
Exemple #9
0
        public static void Main(string[] args)
        {
            Directory.SetCurrentDirectory("/home/eylvisaker/Calculations/rpa/tests");

            using (BootStrap b = new BootStrap())
            {
                if (args.Length == 0)
                {
                    Console.WriteLine("Must specify tight binding input and eigenvalues files on command line.");
                    System.Environment.Exit(1);
                }

                string       inputfile = b.GetInputFile("Band Path code", "bandpath", args);
                TightBinding tb        = new TightBinding(inputfile);

                var argsList = args.ToList();
                argsList.RemoveAt(0);

                new BandPath().Run(tb, argsList);
            }
        }
Exemple #10
0
        static void Main(string[] args)
        {
            using (BootStrap b = new BootStrap())
            {
                string inputfile = b.GetInputFile("Random Phase Approximation code", "rpa", args);

                RPA inst = new RPA();
                inst.Run(inputfile);
            }
        }