Eötvös Quantum Utilities  v4.9.146
Providing the Horsepowers in the Quantum Realm
Landaux.m
Go to the documentation of this file.
1 % Landau gauge parallel to the x direction - 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 Landaux.m
18 %> @brief Vector potential in the Landau gauge parallel to the x direction.
19 %% Landaux
20 %> @brief Vector potential in the Landau gauge parallel to the x direction.
21 %> @param x X coordinates of the sites.
22 %> @param y Y coordinates of the sites.
23 %> @param eta_B Dimensionless strength of the magnetic field.
24 %> @param Aconst A constant vectorpotential .
25 %> @param height The number of unit cells in the scattering region.
26 %> @param lattice_constant The lattice constant in the scattering region.
27 %> @return Returns with N x 2 array containing the x and y components of the vector potential. N is the number of sites.
28  function ret = Landaux( x,y, eta_B, Aconst, height, lattice_constant )
29 
30  %> preallocating array
31  ret = zeros( length(x),2 );
32 
33  %> Identifies region in the first lead (B=0)
34  indexes1 = logical( y<=0 );
35  ret( indexes1, 1 ) = -Aconst;
36 
37  %> Identifies region in the second lead (B=0)
38  indexes2 = logical( y>=height*lattice_constant );
39  ret( indexes2, 1 ) = -eta_B*height*lattice_constant-Aconst;
40 
41  %> Identifies region in the scattering region (B>0)
42  indexes3 = ~( indexes1 | indexes2 );
43  ret( indexes3, 1) = -eta_B*y(indexes3)-Aconst;
44  end
function Landaux(x, y, eta_B, Aconst, height, lattice_constant)
Vector potential in the Landau gauge parallel to the x direction.
Property version
The current version of the package.
Property B
The magnetic field in Tesla (OBSOLETE)
Definition: SNSJosephson.m:31
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