version 0.0.31
This commit is contained in:
		| @@ -1,4 +1,4 @@ | ||||
| # Guan is an open-source python package developed and maintained by https://www.guanjihuan.com. The primary location of this package is on website https://py.guanjihuan.com. | ||||
| # Guan is an open-source python package developed and maintained by https://www.guanjihuan.com/about. The primary location of this package is on website https://py.guanjihuan.com. | ||||
|  | ||||
| # Fourier_transform | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| # Guan is an open-source python package developed and maintained by https://www.guanjihuan.com. The primary location of this package is on website https://py.guanjihuan.com. | ||||
| # Guan is an open-source python package developed and maintained by https://www.guanjihuan.com/about. The primary location of this package is on website https://py.guanjihuan.com. | ||||
|  | ||||
| # Hamiltonian of finite size | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| # Guan is an open-source python package developed and maintained by https://www.guanjihuan.com. The primary location of this package is on website https://py.guanjihuan.com. | ||||
| # Guan is an open-source python package developed and maintained by https://www.guanjihuan.com/about. The primary location of this package is on website https://py.guanjihuan.com. | ||||
|  | ||||
| # Hamiltonian of models in the reciprocal space | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| # Guan is an open-source python package developed and maintained by https://www.guanjihuan.com. The primary location of this package is on website https://py.guanjihuan.com. | ||||
| # Guan is an open-source python package developed and maintained by https://www.guanjihuan.com/about. The primary location of this package is on website https://py.guanjihuan.com. | ||||
|  | ||||
| # import modules | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| # Guan is an open-source python package developed and maintained by https://www.guanjihuan.com. The primary location of this package is on website https://py.guanjihuan.com. | ||||
| # Guan is an open-source python package developed and maintained by https://www.guanjihuan.com/about. The primary location of this package is on website https://py.guanjihuan.com. | ||||
|  | ||||
| # basic functions | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| # Guan is an open-source python package developed and maintained by https://www.guanjihuan.com. The primary location of this package is on website https://py.guanjihuan.com. | ||||
| # Guan is an open-source python package developed and maintained by https://www.guanjihuan.com/about. The primary location of this package is on website https://py.guanjihuan.com. | ||||
|  | ||||
| # calculate Green functions | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| # Guan is an open-source python package developed and maintained by https://www.guanjihuan.com. The primary location of this package is on website https://py.guanjihuan.com. | ||||
| # Guan is an open-source python package developed and maintained by https://www.guanjihuan.com/about. The primary location of this package is on website https://py.guanjihuan.com. | ||||
|  | ||||
| # calculate_band_structures_and_wave_functions | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| # Guan is an open-source python package developed and maintained by https://www.guanjihuan.com. The primary location of this package is on website https://py.guanjihuan.com. | ||||
| # Guan is an open-source python package developed and maintained by https://www.guanjihuan.com/about. The primary location of this package is on website https://py.guanjihuan.com. | ||||
|  | ||||
| # calculate conductance | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| # Guan is an open-source python package developed and maintained by https://www.guanjihuan.com. The primary location of this package is on website https://py.guanjihuan.com. | ||||
| # Guan is an open-source python package developed and maintained by https://www.guanjihuan.com/about. The primary location of this package is on website https://py.guanjihuan.com. | ||||
|  | ||||
| # calculate density of states | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| # Guan is an open-source python package developed and maintained by https://www.guanjihuan.com. The primary location of this package is on website https://py.guanjihuan.com. | ||||
| # Guan is an open-source python package developed and maintained by https://www.guanjihuan.com/about. The primary location of this package is on website https://py.guanjihuan.com. | ||||
|  | ||||
| # calculate scattering matrix | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| # Guan is an open-source python package developed and maintained by https://www.guanjihuan.com. The primary location of this package is on website https://py.guanjihuan.com. | ||||
| # Guan is an open-source python package developed and maintained by https://www.guanjihuan.com/about. The primary location of this package is on website https://py.guanjihuan.com. | ||||
|  | ||||
| # calculate topological invariant | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| # Guan is an open-source python package developed and maintained by https://www.guanjihuan.com. The primary location of this package is on website https://py.guanjihuan.com. | ||||
| # Guan is an open-source python package developed and maintained by https://www.guanjihuan.com/about. The primary location of this package is on website https://py.guanjihuan.com. | ||||
|  | ||||
| # others | ||||
|  | ||||
|   | ||||
| @@ -1,14 +1,14 @@ | ||||
| # Guan is an open-source python package developed and maintained by https://www.guanjihuan.com. The primary location of this package is on website https://py.guanjihuan.com. | ||||
| # Guan is an open-source python package developed and maintained by https://www.guanjihuan.com/about. The primary location of this package is on website https://py.guanjihuan.com. | ||||
|  | ||||
| # plot figures | ||||
|  | ||||
| import numpy as np | ||||
|  | ||||
| def plot(x_array, y_array, xlabel='x', ylabel='y', title='', filename='a', show=1, save=0, type='', y_min=None, y_max=None):  | ||||
| def plot(x_array, y_array, xlabel='x', ylabel='y', title='', filename='a', show=1, save=0, type='', y_min=None, y_max=None, linewidth=None, markersize=None):  | ||||
|     import matplotlib.pyplot as plt | ||||
|     fig, ax = plt.subplots() | ||||
|     plt.subplots_adjust(bottom=0.20, left=0.18)  | ||||
|     ax.plot(x_array, y_array, type) | ||||
|     ax.plot(x_array, y_array, type, linewidth=linewidth, markersize=markersize) | ||||
|     ax.grid() | ||||
|     ax.set_title(title, fontsize=20, fontfamily='Times New Roman') | ||||
|     ax.set_xlabel(xlabel, fontsize=20, fontfamily='Times New Roman')  | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| # Guan is an open-source python package developed and maintained by https://www.guanjihuan.com. The primary location of this package is on website https://py.guanjihuan.com. | ||||
| # Guan is an open-source python package developed and maintained by https://www.guanjihuan.com/about. The primary location of this package is on website https://py.guanjihuan.com. | ||||
|  | ||||
| # read and write | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user