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 the scattering region.
22 %> @brief Base
class to construct a structure containing physical parameters of the scattering region.
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 %> String containing the filename of the external Hamiltonain source (see
Custom_Hamiltonians for details)
35 %> Cell array of structure @
Atom.
41 methods (Access=
public)
43 %% Contructor of the
class 44 %> @brief Constructor of the
class.
45 %> @
return An instance of the
class 48 % initializing
class members
49 obj.pair_potential = [];
58 %> @brief Copy the attributes of the input structure into the present
object.
59 %> @
param An instance of
class identical to the present class or its superclass.
60 %> @
return Returns with the modified
class 61 function obj = CopyParameters(obj, param_scatter_in )
63 % checking the type of the
class 64 class_type_obj =
class( obj );
65 class_type_input =
class( param_scatter_in );
67 if ~strcmpi( class_type_input, class_type_obj )
68 supClasses = superclasses(obj);
69 if sum( strcmp( supClasses, class_type_input ) ) == 0
70 error([
'EQuUs:Structures:',
class(obj),
':CopyParameters'],
'Invalid type of the input parameter');
74 % copy the attribute from the input
75 fieldnames_input = fieldnames( param_scatter_in );
76 for idx = 1:length(fieldnames_input)
77 fieldname = fieldnames_input{idx};
78 obj.(fieldname) = param_scatter_in.(fieldname);
84 end %
public methods end
Structure Atom contains the atomic identifiers of the sites.
Structure shape contains data about the geometry of the scattering region.
Property shape
An instance of structure shape describing the geometry of the scattering region.
function Transport(Energy, B)
Calculates the conductance at a given energy value.
A class to import custom Hamiltonians provided by other codes or created manually
Structure param contains data structures describing the physical parameters of the scattering center ...
Base class to construct a structure containing physical parameters of the scattering region.
function structures(name)