## Step 1: The calculations for leads

The calculation of the step 1 is the conventional band structure calculation to construct information of the lead except for adding the following two keywords 'NEGF.output_hks' and 'NEGF.filename.hks':

```    NEGF.output_hks    on
```

The calculated results such as Hamiltonian matrix elements, charge distribution, and difference Hartree potential are stored in a file specified by the keyword 'NEGF.filename.hks'. In this case, a file 'lead-chain.hks' is generated. The file 'NEGF.filename.hks' is used in the calculation of the step 2. Since the electronic transport is assumed to be along the a-axis in the current implementation, you have to set the a-axis for the direction of electronic transport in the band structure calculation. However, you do not need rotate your structure. All you have to do is to change the specification of the lattice vectors. For example, if you want to specify a vector (0.0, 0.0, 10.0) as the a-axis in the following lattice vectors:
```      <Atoms.UnitVectors
3.0  0.0  0.0
0.0  3.0  0.0
0.0  0.0 10.0
Atoms.UnitVectors>
```

you only have to specify as follows:
```      <Atoms.UnitVectors
0.0  0.0 10.0
3.0  0.0  0.0
0.0  3.0  0.0
Atoms.UnitVectors>
```

Then, the direction of (0.0, 0.0, 10.0) becomes the direction of electronic transport. As shown in the above example, when you change the order of the lattice vectors, please make sure that the keyword 'scf.Kgrid' has to be changed as well.

In the calculation of the step 2, the semi-infiniteness of the leads is taken into account by using the surface Green function which allows us to treat the semi-infiniteness without introducing any discretization. Thus, it would be better to use a large number of k-points along the a-axis to keep the consistency between the steps 1 and 2 with respect to treatment of the semi-infiniteness of the a-axis. Also it is noted that the number of k-points for the bc-plane should be consistent in the steps 1 and 2.

2016-04-03
{"ft_lang_label":"__label__en","ft_lang_prob":0.8442459,"math_prob":0.92921305,"size":1939,"snap":"2022-27-2022-33","text_gpt3_token_len":521,"char_repetition_ratio":0.13074936,"word_repetition_ratio":0.019607844,"special_character_ratio":0.24909747,"punctuation_ratio":0.16055046,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9676251,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-07-07T11:14:46Z\",\"WARC-Record-ID\":\"<urn:uuid:4598ff6d-680d-484a-94b7-4670118ae1f6>\",\"Content-Length\":\"5956\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:64cc323e-00ab-4ddb-965d-ecfc7cf21d5c>\",\"WARC-Concurrent-To\":\"<urn:uuid:253ec73d-5eb0-4f98-bff9-5df5ad654acc>\",\"WARC-IP-Address\":\"153.127.139.222\",\"WARC-Target-URI\":\"http://www.openmx-square.org/openmx_man3.8/node115.html\",\"WARC-Payload-Digest\":\"sha1:IJJY4IGOSGSBR3OPXADZVQVD4MVENNZR\",\"WARC-Block-Digest\":\"sha1:MZQMPU6CSMFZQAXSIZDDAAHXR3WOSECO\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-27/CC-MAIN-2022-27_segments_1656104690785.95_warc_CC-MAIN-20220707093848-20220707123848-00756.warc.gz\"}"}