Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| documentation:getting_started [2017/03/27 14:49] – created Maurits W. Haverkort | documentation:getting_started [2017/03/27 15:44] (current) – Maurits W. Haverkort | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ### | ### | ||
| - | alligned paragraph | + | Quanty is a text based program that allows you to write scripts to do calculations in quantum mechanics. (If you want a graphical interface have a look at [[ctm4:| CTM4]] and [[crispy: |
| ### | ### | ||
| - | ===== Example | + | ===== Hello World example |
| ### | ### | ||
| - | description | + | In order to understand the commands you can give in the text file this site provides many examples. The example that prints the text Hello World in the terminal is |
| ### | ### | ||
| - | + | <code Quanty | |
| - | ==== Input ==== | + | print(" |
| - | <code Quanty | + | |
| - | -- some example code | + | |
| </ | </ | ||
| - | + | ### | |
| - | ==== Result ==== | + | In order to run it you need to create a text file that contains the text written above. A simple way to do so is to click on the text **HelloWorld.Quanty**. This will download a text file containing the example. Next you need to save this file, open a terminal, change to the directory where you saved this file and type: //Quanty HelloWorld.Quanty// |
| + | ### | ||
| + | ### | ||
| + | The output will be: | ||
| + | ### | ||
| <file Quanty_Output> | <file Quanty_Output> | ||
| - | text produced as output | + | ============================================================= |
| + | ==== written by Maurits W. Haverkort | ||
| + | ==== with contributions from: | ||
| + | ==== Yi Lu, Robert Green and Sebastian Macke ==== | ||
| + | ==== (C) 1995-2015 | ||
| + | ==== www.quanty.org | ||
| + | ==== Beta version, be critical and report errors!!! | ||
| + | ============================================================= | ||
| + | ==== Version compiled at: Mar 2 2017 at 15: | ||
| + | ============================================================= | ||
| + | ==== When used in scientific publications please cite ==== | ||
| + | ==== Phys. Rev. B 85, 165113 (2012) | ||
| + | ==== Phys. Rev. B 90, 085102 (2014) | ||
| + | ==== Euro Phys. Lett. 108, 57004 (2014) | ||
| + | ============================================================= | ||
| + | Program executed on: Mon Mar 27 15:04:30 2017 | ||
| + | Running on host : Haverkort-M-wifi2.itp.uni-heidelberg.de | ||
| + | number of available processors | ||
| + | maximum number of threads in parallel region: 0 | ||
| + | Smallest positive float : 2.225074E-308 | ||
| + | Smallest deviation from 1: 2.220446E-16 | ||
| + | |||
| + | Hello World | ||
| </ | </ | ||
| + | ### | ||
| + | In a terminal (Mac or linux) this looks like: | ||
| + | {{ : | ||
| + | ### | ||
| + | ===== Where to go from here ===== | ||
| + | |||
| + | ### | ||
| + | A good place to start is to look some [[documentation: | ||
| + | ### | ||
| + | |||
| + | ### | ||
| + | After this first example you can have a look at the [[documentation: | ||
| + | ### | ||
| + | |||
| + | ### | ||
| + | A Quick entrance into the basic idea of Quanty can be found in the section [[documentation: | ||
| + | ### | ||
| + | |||
| + | ### | ||
| + | The [[documentation: | ||
| + | ### | ||
| + | |||
| + | ### | ||
| + | Have fun! | ||
| + | ### | ||
| ===== Table of contents ===== | ===== Table of contents ===== | ||
| {{indexmenu> | {{indexmenu> | ||
| - | |||