Eötvös Quantum Utilities  v4.9.146
Providing the Horsepowers in the Quantum Realm
gauge_field.m
Go to the documentation of this file.
1 % Scalar gauge fiald for transformation from Landauy to Landaux - Based on EQuUs v4.8
2 % Copyright (C) 2016 Peter Rakyta, Ph.D.
3 %
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.
8 %
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.
13 %
14 % You should have received a copy of the GNU General Public License
15 % along with this program. If not, see http://www.gnu.org/licenses/.
16 %
17 %> @file gauge_field.m
18 %> @brief Scalar gauge field connecting Landaux and Landauy gauges.
19 %
20 %% gauge_field
21 %> @brief Scalar gauge field connecting Landaux and Landauy gauges.
22 %> @param x X coordinates of the sites.
23 %> @param y Y coordinates of the sites.
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)
30 
31  %> preallocating array
32  ret = zeros( length(x),1 );
33 
34  %> Identifies region in the first lead (B=0)
35  indexes1 = logical( y<=0 );
36  ret( indexes1 ) = -Aconst*x(indexes1);
37 
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);
41 
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);
45  end
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 ...
Definition: structures.m:45
Structure sites contains data to identify the individual sites in a matrix.
Definition: structures.m:187
function gauge_field(x, y, eta_B, Aconst, height, lattice_constant)
Scalar gauge field connecting Landaux and Landauy gauges.