2 % Copyright (C) 2018 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:
20 %> @brief Base
class to construct a structure containing physical parameters of a specific lead.
22 %> @brief Base
class to construct a structure containing physical parameters of a specific lead.
24 %> EQuUs v4.9 or later
29 %> The superconducting pair potential
31 %> An instance of structure @
shape describing the geometry of the scattering region.
33 %> Cell array of structure @
Atom.
35 %> A physical parameter, see the individual lattice documentations
for details
37 %> Orientation of the lead. Set to +1 (
default)
if the propagating direction of the states heading to the central device is defined in the +x or +y direction, and
"-1" otherwise.
39 %> The number of regular
sites in the cross section of one unit cell in the lead.
45 methods (Access=
public)
47 %% Contructor of the
class 48 %> @brief Constructor of the
class.
49 %> @
return An instance of the
class 52 % initializing
class members
53 obj.pair_potential = [];
57 obj.Lead_Orientation = 1;
63 %> @brief Copy the attributes of the input structure into the present
object.
64 %> @
param An instance of
class identical to the present class or its superclass.
65 %> @
return Returns with the modified
class 66 function obj = CopyParameters(obj, param_lead_in )
68 % checking the type of the
class 69 class_type_obj =
class( obj );
70 class_type_input =
class( param_lead_in );
72 if ~strcmpi( class_type_input, class_type_obj )
73 supClasses = superclasses(obj);
74 if sum( strcmp( supClasses, class_type_input ) ) == 0
75 error([
'EQuUs:Structures:',
class(obj),
':CopyParameters'],
'Invalid type of the input parameter');
79 % copy the attribute from the input
80 fieldnames_input = fieldnames( param_lead_in );
81 for idx = 1:length(fieldnames_input)
82 fieldname = fieldnames_input{idx};
83 obj.(fieldname) = param_lead_in.(fieldname);
89 end %
public methods end
Structure Atom contains the atomic identifiers of the sites.
Base class to construct a structure containing physical parameters of a specific lead.
Structure shape contains data about the geometry of the scattering region.
function Transport(Energy, B)
Calculates the conductance at a given energy value.
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 structures(name)
Property FileName
An instance of structure shape describing the geometry of the scattering region.