Eötvös Quantum Utilities  v4.9.146
Providing the Horsepowers in the Quantum Realm
param_scatter_DFT.m
Go to the documentation of this file.
1 %% Eotvos Quantum Transport Utilities - param_scatter_DFT
2 % Copyright (C) 2018 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 %> @addtogroup structures Structures
18 %> @{
19 %> @file param_scatter_DFT.m
20 %> @brief Base class to construct a structure containing physical parameters of the scattering region for DFT calculations.
21 %> @}
22 %> @brief Base class to construct a structure containing physical parameters of the scattering region for DFT calculations.
23 %> @Available
24 %> EQuUs v4.9.145 or later
25 %%
27 
28  properties
29  %> The superconducting pair potential
30  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)
34  FileName
35  %> Cell array of structure @Atom.
36  Atom
37  %> Fermi energy from the calculation that gave us the Hamiltonian (e.g.: DFT)
38  E_Fermi
39  %> Number of the element in the periodic table
40  ElementNumber
41  %> The chemical symbol of the atom
42  ElementSymbol
43  %> Lattice vectors of the bulk structure if it is one
44  LatticeVectors
45  %> The number of spins in the representations:
46  %Non Spinpolarized = 1
47  %Collinear Spinpolarized = 2
48  %Non Collinear Spinpolarized 4
49  %Spin-orbit = 8
50  nspin
51  %> Coordinates of the atoms
52  coordinates
53  end
54 
55 
56 
57 methods (Access=public)
58 
59 %% Contructor of the class
60 %> @brief Constructor of the class.
61 %> @return An instance of the class
63 
64  % initializing class members
65  obj.pair_potential = [];
66  obj.shape = structures('shape');
67  obj.FileName = [];
68  obj.Atom = [];
69  obj.E_Fermi = 0;
70  obj.ElementNumber = 0;
71  obj.ElementSymbol = '';
72  obj.LatticeVectors = [1 0 0; 0 1 0; 0 0 1];
73  obj.nspin = 1 ;
74  coordinates = [];
75 
76  end
77 
78 
79 %% CopyParameters
80 %> @brief Copy the attributes of the input structure into the present object.
81 %> @param An instance of class identical to the present class or its superclass.
82 %> @return Returns with the modified class
83  function obj = CopyParameters(obj, param_scatter_in )
84 
85  % checking the type of the class
86  class_type_obj = class( obj );
87  class_type_input = class( param_scatter_in );
88 
89  if ~strcmpi( class_type_input, class_type_obj )
90  supClasses = superclasses(obj);
91  if sum( strcmp( supClasses, class_type_input ) ) == 0
92  error(['EQuUs:Structures:', class(obj), ':CopyParameters'], 'Invalid type of the input parameter');
93  end
94  end
95 
96  % copy the attribute from the input
97  fieldnames_input = fieldnames( param_scatter_in );
98  for idx = 1:length(fieldnames_input)
99  fieldname = fieldnames_input{idx};
100  obj.(fieldname) = param_scatter_in.(fieldname);
101  end
102 
103  end
104 
105 
106 end % public methods end
107 
108 end
Structure Atom contains the atomic identifiers of the sites.
Definition: structures.m:148
Structure shape contains data about the geometry of the scattering region.
Definition: structures.m:106
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
Base class to construct a structure containing physical parameters of the scattering region for DFT c...
function()
Structure param contains data structures describing the physical parameters of the scattering center ...
Definition: structures.m:45
Structure containing the coordinates and other quantum number identifiers of the sites in the Hamilto...
Definition: Coordinates.m:24
function structures(name)