Eötvös Quantum Utilities  v4.9.146
Providing the Horsepowers in the Quantum Realm
createOutput.m
Go to the documentation of this file.
1 %% Eotvos Quantum Transport Utilities - parseInput
2 % Copyright (C) 2009-2015 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 createOutput.m
18 %> @brief This function creates an output file containing the running parameters.
19 %
20 %> @brief This function creates an output file containing the running parameters.
21 %> @param filename A string containing the absolute path to the file.
22 %> @param Opt An instance of structure #Opt.
23 %> @param param An instance of structure #param.
24 %%
25 function createOutput( filename, Opt, param )
26 
27 if isempty(filename)
28  return
29 end
30 
31 % determine the filter type
32 [directory, name, ext] = fileparts(filename);
33 
34  if strcmpi( ext, '.xml' )
35  XMLoutput( filename, Opt, param );
36  else
37  warning(['Unrecognized file type: ', ext, '. Creating XML output']);
38  XMLoutput( filename, Opt, param );
39  end
40 
41 end
Structure Opt contains the basic computational parameters used in EQuUs.
Definition: structures.m:60
function Transport(Energy, B)
Calculates the conductance at a given energy value.
function createOutput(filename, Opt, param)
This function creates an output file containing the running parameters.
Structure param contains data structures describing the physical parameters of the scattering center ...
Definition: structures.m:45
function XMLoutput(filename, Opt, param)
function parseInput(filename)
This function parses the input file containing the input parameters.