1 % Scalar gauge fiald
for transformation from
Landauy to
Landaux - Based on EQuUs v4.8
2 % Copyright (C) 2016 Peter Rakyta, Ph.D.
4 % This program is free software: you can redistribute it and/or modify
5 % it under the terms of the GNU General Public License as published by
6 % the Free Software Foundation, either version 3 of the License, or
7 % (at your option) any later version.
9 % This program is distributed in the hope that it will be useful,
10 % but WITHOUT ANY WARRANTY; without even the implied warranty of
11 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 % GNU General Public License
for more details.
14 % You should have received a copy of the GNU General Public License
15 % along with
this program. If not, see http:
18 %> @brief Scalar gauge field connecting
Landaux and
Landauy gauges.
21 %> @brief Scalar gauge field connecting
Landaux and
Landauy gauges.
24 %> @
param eta_B Dimensionless strength of the magnetic field.
25 %> @
param Aconst A constant vectorpotential .
26 %> @
param height The number of unit cells in the scattering region.
27 %> @
param lattice_constant The lattice constant in the scattering region.
28 %> @
return Returns with N x 1 array containing the scalar potential field. N is the number of
sites.
29 function ret =
gauge_field(x,y, eta_B, Aconst, height, lattice_constant)
31 %> preallocating array
32 ret = zeros( length(x),1 );
34 %> Identifies region in the first lead (B=0)
35 indexes1 = logical( y<=0 );
36 ret( indexes1 ) = -Aconst*x(indexes1);
38 %> Identifies region in the second lead (B=0)
39 indexes2 = logical( y>=height*lattice_constant );
40 ret( indexes2 ) = -eta_B*height*lattice_constant*x(indexes2) - Aconst*x(indexes2);
42 %> Identifies region in the scattering region (B>0)
43 indexes3 = ~( indexes1 | indexes2 );
44 ret( indexes3 ) = -eta_B*x(indexes3).*y(indexes3) - Aconst*x(indexes3);
function Landaux(x, y, eta_B, Aconst, height, lattice_constant)
Vector potential in the Landau gauge parallel to the x direction.
function Landauy(x, y, eta_B)
Vector potential in the Landau gauge parallel to the y direction.
Structure param contains data structures describing the physical parameters of the scattering center ...
Structure sites contains data to identify the individual sites in a matrix.
function gauge_field(x, y, eta_B, Aconst, height, lattice_constant)
Scalar gauge field connecting Landaux and Landauy gauges.