aiida-kkr
AiiDA plugin for the JuKKR codes
General information
Registry checks
Plugins provided
Entry points
-
kkr.kkr
class:aiida_kkr.calculations.kkr:KkrCalculationAiiDA calculation plugin for a KKR calculation.
Input Required Valid types Description parameterstrue DictUse a node that specifies the input parameters parent_foldertrue RemoteDataUse a remote or local repository folder as parent folder (also for restarts and similar). It should contain all the needed files for a KKR calc, only edited files should be uploaded from the repository. anomalous_densityfalse FolderData, NoneTypeFolderData that contains anomalous density input files for the KKRhost BdG calculation. If these are not give the code looks for them in the retrieved of the parent calculation and takes them from there. bfieldfalse Dict, NoneTypeNon-collinear exteral B-field used for constraint calculations. The Dict node should be of the form initial_noco_angles = Dict(dict={ 'theta': [theta_at1, theta_at2, ..., theta_atN], # list theta values in degrees (0..180) 'phi': [phi_at1, phi_at2, ..., phi_atN], # list phi values in degrees (0..360) 'magnitude': [magnitude at_1, ..., magnitude at_N] # list of magnitude of the applied fields in Ry units }) Note: The length of the theta, phi and magnitude lists have to be equal to the number of atoms. codefalse AbstractCode, NoneTypeThe `Code` to use for this job. This input is required, unless the `remote_folder` input is specified, which means an existing job is being imported and no code will actually be run. deciout_parentfalse RemoteData, NoneTypeKkrCalculation RemoteData folder from deci-out calculation impurity_infofalse Dict, NoneTypeUse a Parameter node that specifies properties for a following impurity calculation (e.g. setting of impurity cluster in scoef file that is automatically created). initial_noco_anglesfalse Dict, NoneTypeInitial non-collinear angles for the magnetic moments of the impurities. These values will be written into the `kkrflex_angle` input file of KKRimp. The Dict node should be of the form initial_noco_angles = Dict(dict={ 'theta': [theta_at1, theta_at2, ..., theta_atN], # list theta values in degrees (0..180) 'phi': [phi_at1, phi_at2, ..., phi_atN], # list phi values in degrees (0..360) 'fix_dir': [True/False at_1, ..., True/False at_N] # list of booleans indicating if the direction of the magnetic # moment should be fixed or is allowed relax (True means keep the # direction of the magnetic moment fixed) }) Note: The length of the theta, phi and fix_dir lists have to be equal to the number of atoms. kpointsfalse KpointsData, NoneTypeUse a KpointsData node that specifies the kpoints for which a bandstructure (i.e. 'qdos') calculation should be performed. metadatafalse monitorsfalse DictAdd monitoring functions that can inspect output files while the job is running and decide to prematurely terminate the job. remote_folderfalse RemoteData, NoneTypeRemote directory containing the results of an already completed calculation job without AiiDA. The inputs should be passed to the `CalcJob` as normal but instead of launching the actual job, the engine will recreate the input files and then proceed straight to the retrieve step where the files of this `RemoteData` will be retrieved as if it had been actually launched through AiiDA. If a parser is defined in the inputs, the results are parsed and attached as output nodes as usual. retrieve_kkrflexfalse Bool, NoneTypeFor a GF writeout calculation, determine whether or not the kkrflex_* files are copied to the retrieved (can clutter the database) or are ony left in the remote folder. settings_LDAUfalse Dict, NoneTypeSettings for running a LDA+U calculation. The Dict node should be of the form settings_LDAU = Dict(dict={'iatom=0':{ 'L': 3, # l-block which gets U correction (1: p, 2: d, 3: f-electrons) 'U': 7., # U value in eV 'J': 0.75, # J value in eV 'Eref_EF': 0., # reference energy in eV relative to the Fermi energy. This is the energy where the projector wavefunctions are calculated (should be close in energy where the states that are shifted lie (e.g. for Eu use the Fermi energy)) }}) Note: you can add multiple entries like the one for iatom==0 in this example. The atom index refers to the corresponding atom in the impurity cluster. Output Required Valid types Description output_parameterstrue Dictresults of the KKR calculation remote_foldertrue RemoteDataInput files necessary to run the process will be stored in this folder node. retrievedtrue FolderDataFiles that are retrieved by the daemon will be stored in this node. By default the stdout and stderr of the scheduler will be added, but one can add more by specifying them in `CalcInfo.retrieve_list`. remote_stashfalse RemoteStashDataContents of the `stash.source_list` option are stored in this remote folder after job completion. Exit status Message 1 The process has failed with an unspecified error. 2 The process failed with legacy failure mode. 10 The process returned an invalid output. 11 The process did not register a required output. 100 The process did not have the required `retrieved` output. 110 The job ran out of memory. 120 The job ran out of walltime. 131 The specified account is invalid. 140 The node running the job failed. 150 {message} 301 KKR output file not found 302 KKR parser retuned an error 303 Could not find shapefun from voronoi parent -
kkr.kkrimp
class:aiida_kkr.calculations.kkrimp:KkrimpCalculationAiiDA calculation plugin for a KKRimp calculation.
Input Required Valid types Description host_Greenfunction_foldertrue RemoteDataUse a node that specifies the host KKR calculation contaning the host Green function and tmatrix (KkrCalculation with impurity_info input). codefalse AbstractCode, NoneTypeThe `Code` to use for this job. This input is required, unless the `remote_folder` input is specified, which means an existing job is being imported and no code will actually be run. host_Greenfunction_folder_Efshiftfalse RemoteData, NoneTypeUse a node that specifies the host KKR calculation contaning the host Green function and tmatrix with Fermi level shift (used to set Fermi level). impurity_infofalse Dict, NoneTypeUse a parameter node that specifies properties for a immpurity calculation. impurity_potentialfalse SinglefileData, NoneTypeUse a node that contains the input potential. initial_noco_anglesfalse Dict, NoneTypeInitial non-collinear angles for the magnetic moments of the impurities. These values will be written into the `kkrflex_angle` input file of KKRimp. The Dict node should be of the form initial_noco_angles = Dict({ 'theta': [theta_at1, theta_at2, ..., theta_atN], # list theta values in degrees (0..180) 'phi': [phi_at1, phi_at2, ..., phi_atN], # list phi values in degrees (0..360) 'fix_dir': [True, False, ..., True/False], # list of booleans indicating of the direction of the magentic moment should be fixed or is allowed to be updated (True means keep the direction of the magnetic moment fixed) }) Note: The length of the theta, phi and fix_dir lists have to be equal to the number of atoms in the impurity cluster. metadatafalse monitorsfalse DictAdd monitoring functions that can inspect output files while the job is running and decide to prematurely terminate the job. parametersfalse Dict, NoneTypeUse a node that specifies the input parameters (calculation settings). parent_calc_folderfalse RemoteData, NoneTypeUse a node that specifies a parent KKRimp calculation. remote_folderfalse RemoteData, NoneTypeRemote directory containing the results of an already completed calculation job without AiiDA. The inputs should be passed to the `CalcJob` as normal but instead of launching the actual job, the engine will recreate the input files and then proceed straight to the retrieve step where the files of this `RemoteData` will be retrieved as if it had been actually launched through AiiDA. If a parser is defined in the inputs, the results are parsed and attached as output nodes as usual. rimpshiftfalse Dict, NoneTypeShift for atoms in the impurity cluster used in U-transformation. The Dict node should be of the form rimpshift = Dict({'shifts': [[0., 0., 0.], ... ]}) where the shifts are given in atomic units (i.e. the internal KKR units). Note: The length of the 'shifts' attribute should be an array with three numbers indicating the shift for each atom in the impurity cluster. settings_LDAUfalse Dict, NoneTypeSettings for running a LDA+U calculation. The Dict node should be of the form settings_LDAU = Dict({'iatom=0':{ 'L': 3, # l-block which gets U correction (1: p, 2: d, 3: f-electrons) 'U': 7., # U value in eV 'J': 0.75, # J value in eV 'Eref_EF': 0., # reference energy in eV relative to the Fermi energy. This is the energy where the projector wavefunctions are calculated (should be close in energy where the states that are shifted lie (e.g. for Eu use the Fermi energy)) }}) Note: you can add multiple entries like the one for iatom==0 in this example. The atom index refers to the corresponding atom in the impurity cluster. Output Required Valid types Description output_parameterstrue Dictresults of the KKRimp calculation remote_foldertrue RemoteDataInput files necessary to run the process will be stored in this folder node. retrievedtrue FolderDataFiles that are retrieved by the daemon will be stored in this node. By default the stdout and stderr of the scheduler will be added, but one can add more by specifying them in `CalcInfo.retrieve_list`. remote_stashfalse RemoteStashDataContents of the `stash.source_list` option are stored in this remote folder after job completion. Exit status Message 1 The process has failed with an unspecified error. 2 The process failed with legacy failure mode. 10 The process returned an invalid output. 11 The process did not register a required output. 110 The job ran out of memory. 120 The job ran out of walltime. 131 The specified account is invalid. 140 The node running the job failed. 150 {message} 301 Retrieved folder of KKRimp calculation not found. 302 KKRimp parser returned an error. -
kkr.kkrimporter
class:aiida_kkr.calculations.kkrimporter:KkrImporterCalculationImporter dummy calculation for a previous KKR run :param remote_workdir: Absolute path to the directory where the job was run. The transport of the computer you link ask input to the calculation is the transport that will be used to retrieve the calculation's files. Therefore, ``remote_workdir`` should be the absolute path to the job's directory on that computer. :type remote_workdir: str :param input_file_names: The file names of the job's input file. :type input_file_name: dict with str entries :param output_file_name: The file names of the job's output file (i.e. the file containing the stdout of kkr.x). :type output_file_name: dict with str entries
Input Required Valid types Description parameterstrue DictUse a node that specifies the input parameters parent_foldertrue RemoteDataUse a remote or local repository folder as parent folder (also for restarts and similar). It should contain all the needed files for a KKR calc, only edited files should be uploaded from the repository. anomalous_densityfalse FolderData, NoneTypeFolderData that contains anomalous density input files for the KKRhost BdG calculation. If these are not give the code looks for them in the retrieved of the parent calculation and takes them from there. bfieldfalse Dict, NoneTypeNon-collinear exteral B-field used for constraint calculations. The Dict node should be of the form initial_noco_angles = Dict(dict={ 'theta': [theta_at1, theta_at2, ..., theta_atN], # list theta values in degrees (0..180) 'phi': [phi_at1, phi_at2, ..., phi_atN], # list phi values in degrees (0..360) 'magnitude': [magnitude at_1, ..., magnitude at_N] # list of magnitude of the applied fields in Ry units }) Note: The length of the theta, phi and magnitude lists have to be equal to the number of atoms. codefalse AbstractCode, NoneTypeThe `Code` to use for this job. This input is required, unless the `remote_folder` input is specified, which means an existing job is being imported and no code will actually be run. deciout_parentfalse RemoteData, NoneTypeKkrCalculation RemoteData folder from deci-out calculation impurity_infofalse Dict, NoneTypeUse a Parameter node that specifies properties for a following impurity calculation (e.g. setting of impurity cluster in scoef file that is automatically created). initial_noco_anglesfalse Dict, NoneTypeInitial non-collinear angles for the magnetic moments of the impurities. These values will be written into the `kkrflex_angle` input file of KKRimp. The Dict node should be of the form initial_noco_angles = Dict(dict={ 'theta': [theta_at1, theta_at2, ..., theta_atN], # list theta values in degrees (0..180) 'phi': [phi_at1, phi_at2, ..., phi_atN], # list phi values in degrees (0..360) 'fix_dir': [True/False at_1, ..., True/False at_N] # list of booleans indicating if the direction of the magnetic # moment should be fixed or is allowed relax (True means keep the # direction of the magnetic moment fixed) }) Note: The length of the theta, phi and fix_dir lists have to be equal to the number of atoms. kpointsfalse KpointsData, NoneTypeUse a KpointsData node that specifies the kpoints for which a bandstructure (i.e. 'qdos') calculation should be performed. metadatafalse monitorsfalse DictAdd monitoring functions that can inspect output files while the job is running and decide to prematurely terminate the job. remote_folderfalse RemoteData, NoneTypeRemote directory containing the results of an already completed calculation job without AiiDA. The inputs should be passed to the `CalcJob` as normal but instead of launching the actual job, the engine will recreate the input files and then proceed straight to the retrieve step where the files of this `RemoteData` will be retrieved as if it had been actually launched through AiiDA. If a parser is defined in the inputs, the results are parsed and attached as output nodes as usual. retrieve_kkrflexfalse Bool, NoneTypeFor a GF writeout calculation, determine whether or not the kkrflex_* files are copied to the retrieved (can clutter the database) or are ony left in the remote folder. settings_LDAUfalse Dict, NoneTypeSettings for running a LDA+U calculation. The Dict node should be of the form settings_LDAU = Dict(dict={'iatom=0':{ 'L': 3, # l-block which gets U correction (1: p, 2: d, 3: f-electrons) 'U': 7., # U value in eV 'J': 0.75, # J value in eV 'Eref_EF': 0., # reference energy in eV relative to the Fermi energy. This is the energy where the projector wavefunctions are calculated (should be close in energy where the states that are shifted lie (e.g. for Eu use the Fermi energy)) }}) Note: you can add multiple entries like the one for iatom==0 in this example. The atom index refers to the corresponding atom in the impurity cluster. Output Required Valid types Description output_parameterstrue Dictresults of the KKR calculation remote_foldertrue RemoteDataInput files necessary to run the process will be stored in this folder node. retrievedtrue FolderDataFiles that are retrieved by the daemon will be stored in this node. By default the stdout and stderr of the scheduler will be added, but one can add more by specifying them in `CalcInfo.retrieve_list`. remote_stashfalse RemoteStashDataContents of the `stash.source_list` option are stored in this remote folder after job completion. Exit status Message 1 The process has failed with an unspecified error. 2 The process failed with legacy failure mode. 10 The process returned an invalid output. 11 The process did not register a required output. 100 The process did not have the required `retrieved` output. 110 The job ran out of memory. 120 The job ran out of walltime. 131 The specified account is invalid. 140 The node running the job failed. 150 {message} 301 KKR output file not found 302 KKR parser retuned an error 303 Could not find shapefun from voronoi parent -
kkr.kkrnano
class:aiida_kkr.calculations.kkrnano:KKRnanoCalculationAiiDA calculation plugin for a KKRnano calculation
Input Required Valid types Description codefalse AbstractCode, NoneTypeThe `Code` to use for this job. This input is required, unless the `remote_folder` input is specified, which means an existing job is being imported and no code will actually be run. convertfalse Bool, NoneTypeActivate to use together with set up convert code in order to retrieve potential files. metadatafalse monitorsfalse DictAdd monitoring functions that can inspect output files while the job is running and decide to prematurely terminate the job. nocoanglesfalse Dict, NoneTypeDict node that specifies the starting angles for non-colinear calculations (only needed in conjunction with non-colinear calculations, i. e. KORBIT=1 (which is also necessary for SOC calculations!)) parametersfalse Dict, NoneTypeDict node that specifies the input parameters for KKRnano (k-point density etc.) parent_folderfalse RemoteData, NoneTypeUse a node that specifies a parent KKRnano or voronoi calculation passed_lattice_param_angsfalse Float, NoneTypeUse a prespecified lattice constant in Angstrom as input for KKRnano, i. e. in the input.conf file. Default is the length of the longest Bravais vector in the structure object used for the voronoi calculation. This can be useful in the context of treating supercells. remote_folderfalse RemoteData, NoneTypeRemote directory containing the results of an already completed calculation job without AiiDA. The inputs should be passed to the `CalcJob` as normal but instead of launching the actual job, the engine will recreate the input files and then proceed straight to the retrieve step where the files of this `RemoteData` will be retrieved as if it had been actually launched through AiiDA. If a parser is defined in the inputs, the results are parsed and attached as output nodes as usual. strucwithpotfalse StrucWithPotData, NoneTypeOutput Required Valid types Description output_parameterstrue Dictresults of the calculation remote_foldertrue RemoteDataInput files necessary to run the process will be stored in this folder node. retrievedtrue FolderDataFiles that are retrieved by the daemon will be stored in this node. By default the stdout and stderr of the scheduler will be added, but one can add more by specifying them in `CalcInfo.retrieve_list`. remote_stashfalse RemoteStashDataContents of the `stash.source_list` option are stored in this remote folder after job completion. Exit status Message 1 The process has failed with an unspecified error. 2 The process failed with legacy failure mode. 10 The process returned an invalid output. 11 The process did not register a required output. 100 The process did not have the required `retrieved` output. 110 The job ran out of memory. 120 The job ran out of walltime. 131 The specified account is invalid. 140 The node running the job failed. 150 {message} 301 KKRnano output file not found 302 KKRnano parser retuned an error -
kkr.voro
class:aiida_kkr.calculations.voro:VoronoiCalculationAiiDA calculation plugin for a voronoi calculation (creation of starting potential and shapefun).
Input Required Valid types Description parameterstrue DictUse a node that specifies the input parameters codefalse AbstractCode, NoneTypeThe `Code` to use for this job. This input is required, unless the `remote_folder` input is specified, which means an existing job is being imported and no code will actually be run. metadatafalse monitorsfalse DictAdd monitoring functions that can inspect output files while the job is running and decide to prematurely terminate the job. parent_KKRfalse RemoteData, NoneTypeUse a node that specifies a parent KKR calculation potential_overwritefalse SinglefileData, NoneTypeUse a node that specifies the potential which is used instead of the voronoi output potential remote_folderfalse RemoteData, NoneTypeRemote directory containing the results of an already completed calculation job without AiiDA. The inputs should be passed to the `CalcJob` as normal but instead of launching the actual job, the engine will recreate the input files and then proceed straight to the retrieve step where the files of this `RemoteData` will be retrieved as if it had been actually launched through AiiDA. If a parser is defined in the inputs, the results are parsed and attached as output nodes as usual. shapefun_overwritefalse SinglefileData, NoneTypeUse a node that specifies the shapefun which is used instead of the voronoi output structurefalse StructureData, NoneTypeUse a node that specifies the input crystal structure Output Required Valid types Description output_parameterstrue Dictresults of the calculation remote_foldertrue RemoteDataInput files necessary to run the process will be stored in this folder node. retrievedtrue FolderDataFiles that are retrieved by the daemon will be stored in this node. By default the stdout and stderr of the scheduler will be added, but one can add more by specifying them in `CalcInfo.retrieve_list`. remote_stashfalse RemoteStashDataContents of the `stash.source_list` option are stored in this remote folder after job completion. Exit status Message 1 The process has failed with an unspecified error. 2 The process failed with legacy failure mode. 10 The process returned an invalid output. 11 The process did not register a required output. 100 The process did not have the required `retrieved` output. 110 The job ran out of memory. 120 The job ran out of walltime. 131 The specified account is invalid. 140 The node running the job failed. 150 {message} 301 Voronoi output file not found 302 Voronoi parser retuned an error
-
kkr.strucwithpot
aiida_kkr.data.strucwithpot:StrucWithPotData
-
kkr.kkrimporterparser
aiida_kkr.parsers.kkrimporter:KkrImporterParser -
kkr.kkrimpparser
aiida_kkr.parsers.kkrimp:KkrimpParser -
kkr.kkrnanoparser
aiida_kkr.parsers.kkrnano:KKRnanoParser -
kkr.kkrparser
aiida_kkr.parsers.kkr:KkrParser -
kkr.voroparser
aiida_kkr.parsers.voro:VoronoiParser
-
kkr.STM
class:aiida_kkr.workflows.kkr_STM:kkr_STM_wcWorkchain for the Simulation of a (superconducting) STM tip around a magnetic impurity. The workchain uses the (converged) impurity calculation of a host system and combines them with vacuum sites in positions inputs:: :param options: (Dict), computer options :param tip_position: (Dict), specify the position of the STM tip :param impurity_info: (Dict), information about the impurity cluster :param host_calc: (RemoteData), information about the host structure of the sample :param wf_parameters: (Dict), parameters that are used to run the workflow :param kkr: (Code), KKR host code for the writing out kkrflex files :param kkrimp: (Code), KKR impurity code for the normal state impurity scf and BdG impurity DOS calculation :param gf_writeout.params_kkr_overwrite (Dict), overwrite parameters for the GF calculation :param kkr_imp_sub.params_overwrite (Dict), overwrite parameters for the impurity calculation returns:: :return workflow_info: (Dict), Information of workflow results like success, last result node, list with convergence behavior :return STM_dos_data: (XYData), Returns the plot of the lmDOS of the calculation :retrun STM_lmdos_data: (XYData), Returns the interpolated lmDOS of the calculation
Input Required Valid types Description BdGtrue Datagf_writeouttrue Datahost_remotetrue RemoteDataRemote Data containing the remote folder from the outputs of the host calculation imp_infotrue DictInformation of the impurity like position in the unit cell, screening cluster, atom type. imp_potential_nodetrue SinglefileDataImpurity potential node kkrimptrue CodeKKRimp code, always needed. initial_noco_anglesfalse Dict, NoneTypeInitial non-collinear angles for the magnetic moments of the impurities. These values will be written into the `kkrflex_angle` input file of KKRimp. The Dict node should be of the form initial_noco_angles = Dict({ 'theta': [theta_at1, theta_at2, ..., theta_atN], # list theta values in degrees (0..180) 'phi': [phi_at1, phi_at2, ..., phi_atN], # list phi values in degrees (0..360) 'fix_dir': [True, False, ..., True/False], # list of booleans indicating of the direction of the magentic moment should be fixed or is allowed to be updated (True means keep the direction of the magnetic moment fixed) }) Note: The length of the theta, phi and fix_dir lists have to be equal to the number of atoms in the impurity cluster. kkrfalse Code, NoneTypeKKRhost code, needed if gf_dos_remote is not given. kkrflex_filesfalse RemoteData, NoneTypewith this input we can directly load the gf_dos files without calculating them metadatafalse optionsfalse Dict, NoneTypeComputer options (resources, quene name, etc.). rimpshiftfalse Dict, NoneTypeShift for atoms in the impurity cluster used in U-transformation. The Dict node should be of the form rimpshift = Dict({'shifts': [[0., 0., 0.], ... ]}) where the shifts are given in atomic units (i.e. the internal KKR units). Note: The length of the 'shifts' attribute should be an array with three numbers indicating the shift for each atom in the impurity cluster. tip_positionfalse Dict, NoneTypeHow many sites will be scanned in the da and db direction (Bravais Lattice). And the layer that is being scanned. wf_parametersfalse Dict, NoneTypeWorkflow parameter (see `kkr_dos_wc.get_wf_defaults()`). Output Required Valid types Description STM_dos_datatrue XyDataSTM_dos_data_lmdostrue XyDatacombined_imp_infotrue Dictcombined_imp_potentialtrue SinglefileDatakkrflexfilestrue RemoteDatatip_positiontrue DictExit status Message 1 The process has failed with an unspecified error. 2 The process failed with legacy failure mode. 10 The process returned an invalid output. 11 The process did not register a required output. 100 The position provided for the STM probe are incorrect 101 The node provided for the impurity info is not valid 102 No impurity node has been given in the intput 103 No impurity info has been given in the input 104 Neither the kkrflex files nor the KKR builder have been given. Please provide already converged kkrflex files, or the kkr builder to evaluate them 201 A step in the kkr_imp_dos workflow has failed -
kkr.bs
class:aiida_kkr.workflows.bs:kkr_bs_wcWorkchain for BandStructure calculation, starting from RemoteFolderData of the previous converged KKR calculation remote folder data inputs: :param wf_parameters: (Dict), (optional); Workchain Specifications, contains nepts, tempr, emin (in eV relative to EF), emax (in eV), and RCLUSTZ (can be used to increase the screening cluster radius) keys. :param options: (Dict), (optional); Computer Specifications, scheduler command, parallel or serial :param kpoints: (KpointsData),(optional); Kpoints data type from the structure, but not mendatory as it can be extracted from structure internaly from the remote data :param remote_data: (RemoteData)(mendaory); From the previous kkr-converged calculation. :param kkr: (Code)(mendaory); KKR code specifiaction :param label: (Str) (optional) ; label for WC but will be found in the 'result_wf' output Dict as 'BS_wf_label' key :param description: (Str) (optional) : description for WC but will be found in the 'result_wf' output Dict as 'BS_wf_description' key returns: :out BS_Data : (ArrayData) ; Consist of BlochSpectralFunction, k_points (list), energy_points (list), special_kpoints(dict) :out result_wf: (Dict); work_chain_specifications node, BS_data node, remote_folder node
Input Required Valid types Description kkrtrue CodeKKRhost code, needed to run the qdos KkrCalculation remote_datatrue RemoteDataParent folder of previously converged KkrCalculation descriptionfalse Str, NoneTypedescription for the workflow initial_noco_anglesfalse Dict, NoneTypeInitial non-collinear angles for the magnetic moments. See KkrCalculation for details. If this is found in the input potentially extracted nonco angles from the parent calulation are overwritten! kpointsfalse KpointsData, NoneTypeK-points data for the calculation. If not given the seekpath library is used to find the irreducable k-points of a structure. labelfalse Str, NoneTypelabel for the workflow metadatafalse optionsfalse Dict, NoneTypeComputer options (walltime etc.) passed onto KkrCalculation params_kkr_overwritefalse Dict, NoneTypeOverwrite some input parameters of the parent KKR calculation. settings_LDAUfalse Dict, NoneTypeSettings for running a LDA+U calculation. The Dict node should be of the form settings_LDAU = Dict(dict={'iatom=0':{ 'L': 3, # l-block which gets U correction (1: p, 2: d, 3: f-electrons) 'U': 7., # U value in eV 'J': 0.75, # J value in eV 'Eref_EF': 0., # reference energy in eV relative to the Fermi energy. This is the energy where the projector wavefunctions are calculated (should be close in energy where the states that are shifted lie (e.g. for Eu use the Fermi energy)) }}) Note: you can add multiple entries like the one for iatom==0 in this example. The atom index refers to the corresponding atom in the impurity cluster. wf_parametersfalse Dict, NoneTypeParameters of the bandstructure workflow (see output of kkr_bs_wc.get_wf_default() for more details). Output Required Valid types Description BS_Datatrue ArrayDataresults_wftrue DictExit status Message 1 The process has failed with an unspecified error. 2 The process failed with legacy failure mode. 10 The process returned an invalid output. 11 The process did not register a required output. 161 No remote_data was provided as Input 162 The code you provided for kkr does not use the plugin kkr.kkr 163 calc_parameters given are not consistent! Hint: did you give an unknown keyword? 164 calc_parameters not complete 165 KKR Band Structure calculation failed 166 No K-POINTS can be extracted from the structure data 167 No K-POINTS can be extracted from the primtive structure data rather conventional structure data 168 Input remote_data node neither output of a KKR/voronoi calculation nor of kkr_scf_wc workflow -
kkr.combine_imp
class:aiida_kkr.workflows._combine_imps:combine_imps_wcWorkchain that combines 2 converged single-impurity calculations to a bigger impurity, reusing the preconverged potentials. This is useful, for example, to study co-doping. Inputs: :param impurity1_output_node:(Dict), required, output node from singel impurity wc, and should be one of the following: * for `kkr_imp_wc`: single_imp_worlfow.outputs.workflow_info * for `kkr_imp_sub_wc`: single_imp_worlfow.outputs.workflow_info * for `KkrimpCalculation`: single_imp_worlfow.outputs.output_parameters :param impurity2_output_node:(Dict), required, output node from second singel impurity wc, and should be one of the following: * for `kkr_imp_wc`: single_imp_worlfow.outputs.workflow_info * for `kkr_imp_sub_wc`: single_imp_worlfow.outputs.workflow_info * for `KkrimpCalculation`: single_imp_worlfow.outputs.output_parameters :offset_imp2:(Dict), required, offset of the second impurity with respect to the first impurity position. e.g. {'index:0 or 1}, the replacement by the second impurity will take place at the same cell or at the next nearest cell respectively. :param scf.kkrimp: (Code), mandatory, KKRimp code needed to submit kkr_imp_wc :param scf.wf_parameters: (Dict), optional, KKRimp code needed to submit kkr_imp_sub_wc :param scf.options: (Dict), optional, computer options for kkr_imp_sub_wc :param host_gf.kkr: (Code), optional, KKR code for submit kkr_flex_wc, needed if remote_data_gf is not given :param host_gf.options: (Dict), optional, computer options for kkr_flex_wc :param host_gf.params_kkr_overwrite: (Dict), optional, needed for kkr calculation for GF writeout :param wf_parameters_overwrite: (Dict), optional, specifications for wf_parameters of kkr_imp_sub_wc as well as well as wf_parameters of kkr_flex_wc. :param gf_host_remote: (RemoteData), optional, remote folder of a previous kkrflex writeout step calculations containing the flexfiles and will be used for combine host GF. Returns: :return workflow_info: (Dict), Information of workflow results :return last_calc_output_parameters: (Dict), link to output parameters of the last called calculation of the scf kkr_imp_sub_wc. :return last_potential: (SingleFileData) link to last output potential of scf kkr_imp_sub_wc step. :return last_calc_remote: (RemoteData) link to remote data of last called calculation of the scf step. :return remote_data_gf: (RemoteData) link to GF_host_remote of outputs of kkr_flex_wc e.g. gf_writeou step (only present of host GF was generated here). :return JijData: (ArrayData) Consists magnetic interaction data among the magnetic impurity atoms, such as vector distance(rx, ry, rz) between atoms, spin interaction magnetude J, Dzyaloshinskii-Moriya vector magnitude, and Dzyaloshinskii-Moriya vector component(Dx, Dy, Dz) :return JijInfo :(Dict) Consists description about the JijData.
Input Required Valid types Description impurity1_output_nodetrue DictOutput node of a single impurity calculation. This can be the output of either the `kkr_imp_wc`, `kkr_imp_sub_wc` workflows or of an `KkrimpCalculation`. Use these output Dict nodes: * for `kkr_imp_wc`: single_imp_workfow.outputs.workflow_info * for `kkr_imp_sub_wc`: single_imp_workfow.outputs.workflow_info * for `KkrimpCalculation`: single_imp_workfow.outputs.output_parameters impurity2_output_nodetrue DictOutput node of second single impurity calculation. See help string of `impurity1_output_node` for more details. offset_imp2true DictOffset of the secon impurity with respect to the first impurity. Can be given either via the 'vector' or the 'index' keys in the dictionary. The 'vector' option allows to give the offset vector in cartesian units and the 'index' option allows to five the offset vector in units of the lattice vectors of the host system's structure. scftrue Datagf_host_remotefalse RemoteData, NoneTypeRemoteData node of pre-calculated host Green function (i.e. with kkr_flex_wc). If given then the writeout step of the host GF is omitted. host_gffalse Datametadatafalse wf_parameters_overwritefalse Dict, NoneTypeTo add or edit wf_parameters in scf namespace and add run optioins, if needed Output Required Valid types Description last_calc_output_parameterstrue last_calc_remotetrue last_potentialtrue workflow_infotrue JijDatafalse JijInfofalse remote_data_gffalse Exit status Message 1 The process has failed with an unspecified error. 2 The process failed with legacy failure mode. 10 The process returned an invalid output. 11 The process did not register a required output. 700 The writeout of the host GF failed 800 Impurity input is not a single impurity calculation. 850 i_neighbor_inplane needs to be positive and bigger than 0 for in-plane neighbors 900 Host structures of impurity 1 and impurity 2 are not identical! 950 The impurity calculations have different NSPIN values 999 ERROR: take a look -
kkr.decimation
class:aiida_kkr.workflows._decimation:kkr_decimation_wcWorkchain a decimation calculation with KKR starting from a thick slab (center potential should be bulk-like). The workchain - creates the structure nodes of the substrate and decimation region from thick slab structure - creates starting potentials of the slab structure - runs auxiliary voronoi steps to get starting setup correctly for the KKR calculations - runs the deci-out step in serial - runs the decimation step The workflow starts either from a converged thick film of from a previous decimation calculation (skips the structure and starting potential setup and the voronoi steps). The workflow parameters input can be: {'nkz' : 30, # number of k-points in z-direction for substrate 'nprinc': 4, # number of layer in principle layer 'nplayer': 4, # number of principle layers (naez deci: nprinc*nplayer) 'dosmode': False, # run DOS calculation 'dos_params': {'emin_EF': -5.0, # EMIN-EF in eV 'emax_EF': 3.0, # EMAX-EF in eV 'nepts': 96, # number of points in contour 'tempr': 100, # smearing temperature 'kmesh': [50, 50, 50]}, # k-mesh used in dos calculation } :param wf_parameters: Dict node with workchain parameters (see kkr_decimation_wc.get_wf_defaults()) :param options: Dict node with specifications for the computer (used in decimation step only) :param remote_data: mandatory RemoteData node of either a parent slab or previous decimation calculation :param kkr: mandatory Code node with KKR code for running deci-out and decimation steps :param voronoi: Code node that is mandatory if starting from slab calculation. Is the voronoi code for auxiliary calculations :param kpoints: KpointsData node that triggers a band structure calculation. The kpoints specify the k-point path along which the bandstructure is computed with the qdos mode of KKRhost. :param calc_parameters: Dict node that contains KKR parameters which overwrites settings from the slab parent. :returns structure_decimate: StructureData node of the structure of the decimation region. :returns structure_substrate: StructureData node of the structure of thesubstrate lattice continuation. :returns out_params_calc_deci_out: Dict node of the output parameters of the deci-out calculation. :returns out_params_calc_decimate: Dict node of the output parameters of the decimation calculation. :returns out_remote_calc_decimate: RemoteData node of the decimation calculation. :returns out_retrieved_calc_decimate: retrieved FolderData node of the decimation calculation. :returns dos_data: XyData node with the DOS data at finite imaginary part in the energy contour. Only present in DOS mode. :returns dos_data_interpol: XyData node with the interpolated DOS data onto the real axis. Only present in DOS mode.
Input Required Valid types Description kkrtrue CodeKKRhost code. remote_datatrue RemoteDataParent calculation (either previous decimation calculation, then voronoi steps are skipped or slab calculation). calc_parametersfalse Dict, NoneTypeIf given overwrites KKR parameters starting from slab params (can be used to run DOS for instance). calc_parameters_decimatefalse Dict, NoneTypeOverwrite calculation parameters in the decimation step kpointsfalse KpointsData, NoneTypeIf given this triggers a bandstructure (i.e. qdos) calculation. metadatafalse optionsfalse Dict, NoneTypeComputer options used in the deicmation step (voronoi and deci-out steps run serially but use the walltime given here). options_deci_outfalse Dict, NoneTypeComputer options used in the deci-out step (createion of decifile, if not provided, this step will run in serial). shapefun_deci_overwritefalse SinglefileData, NoneTypeUse a node that specifies the shapefun which is used instead of the voronoi output for the decimation step shapefun_substrate_overwritefalse SinglefileData, NoneTypeUse a node that specifies the shapefun which is used instead of the voronoi output for the deci-out step voronoifalse Code, NoneTypeVoronoi code. Only needed if remote_data is slab claculation and not a previous decimation run. wf_parametersfalse Dict, NoneTypeparameters for decimation setup (used only if not started from previous decimation calculation). Output Required Valid types Description out_params_calc_deci_outtrue DictOutput parameter node of deci-out calculation. out_params_calc_decimatetrue DictOutput parameter node of decimation calculation. out_remote_calc_decimatetrue RemoteDataRemote folder of decimation calculation. out_retrieved_calc_decimatetrue FolderDataRetrieved folder of decimation calculation. structure_decimatetrue StructureDataStructure of decimation region. structure_substratetrue StructureDataStructure of substrate lattice continuation. dos_datafalse XyDataDOS data with finite imaginary part in the energy contour. dos_data_interpolfalse XyDatainterpolated DOS data onto the real axis. Exit status Message 1 The process has failed with an unspecified error. 2 The process failed with legacy failure mode. 10 The process returned an invalid output. 11 The process did not register a required output. 300 Given remote_data is not correct (needs to be a slab or decimation KKR calculation) 301 The code you provided for kkr does not use the plugin kkr.kkr 302 The code you provided for voronoi does not use the plugin kkr.voro 303 The voronoi step for the starting potential of the substrate failed. 304 The voronoi step for the starting potential of the decimation region failed. 305 The deci-out step (writeout of continuation GF) failed. -
kkr.dos
class:aiida_kkr.workflows.dos:kkr_dos_wcWorkchain a DOS calculation with KKR starting from the remoteData node of a previous calculation (either Voronoi or KKR). :param wf_parameters: (Dict); Workchain specifications :param options: (Dict); specifications for the computer :param remote_data: (RemoteData), mandatory; from a KKR or Vornoi calculation :param kkr: (Code), mandatory; KKR code running the dos calculation :return result_kkr_dos_wc: (Dict), Information of workflow results like Success, last result node, list with convergence behavior
Input Required Valid types Description kkrtrue CodeKKRhost Code node used to run the DOS calculation. remote_datatrue RemoteDataRemoteData node of the parent calculation. initial_noco_anglesfalse Dict, NoneTypeInitial non-collinear angles for the magnetic moments. See KkrCalculation for details. If this is found in the input potentially extracted nonco angles from the parent calulation are overwritten! metadatafalse optionsfalse Dict, NoneTypeComputer options used by the workflow. params_kkr_overwritefalse Dict, NoneTypeOverwrite some input parameters of the parent KKR calculation. settings_LDAUfalse Dict, NoneTypeSettings for running a LDA+U calculation. The Dict node should be of the form settings_LDAU = Dict(dict={'iatom=0':{ 'L': 3, # l-block which gets U correction (1: p, 2: d, 3: f-electrons) 'U': 7., # U value in eV 'J': 0.75, # J value in eV 'Eref_EF': 0., # reference energy in eV relative to the Fermi energy. This is the energy where the projector wavefunctions are calculated (should be close in energy where the states that are shifted lie (e.g. for Eu use the Fermi energy)) }}) Note: you can add multiple entries like the one for iatom==0 in this example. The atom index refers to the corresponding atom in the impurity cluster. wf_parametersfalse Dict, NoneTypeWorkflow parameter (see `kkr_dos_wc.get_wf_defaults()`). Output Required Valid types Description results_wftrue DictResults collected by the workflow. dos_datafalse XyDataXyData node of the parsed DOS output. dos_data_interpolfalse XyDataXyData node of the parsed DOS output, interpolated onto the real axis. Exit status Message 1 The process has failed with an unspecified error. 2 The process failed with legacy failure mode. 10 The process returned an invalid output. 11 The process did not register a required output. 161 No remote_data was provided as Input 162 The code you provided for kkr does not use the plugin kkr.kkr 163 calc_parameters given are not consistent! Hint: did you give an unknown keyword? 164 calc_parameters not complete 165 dos_params given in wf_params are not valid 166 KKR dos calculation failed -
kkr.eos
class:aiida_kkr.workflows.eos:kkr_eos_wcWorkchain of an equation of states calculation with KKR. Layout of the workflow: 1. determine V0, scale_range, etc. from input 2. run voro_start for V0 and smallest volume 2.1 get minimum for RMTCORE (needs to be fixed for all calculations to be able to compare total energies 3. submit kkr_scf calculations for all volumes using RMTCORE setting determined in step 2 4. collect results
Input Required Valid types Description kkrtrue CodeCode entry for the KKRhost calculations. structuretrue StructureDataInitial structure for which the EOS will be calculated. voronoitrue CodeCode entry for the Voronoi calculations. calc_parametersfalse Dict, NoneTypeKKR input parameters. Everything (except structural factors) which would normally be written in the inputcard. metadatafalse optionsfalse Dict, NoneTypewf_parametersfalse Dict, NoneTypeWorkfunction specific parameters, controlling the behavior of the EOS workchain. Output Required Valid types Description eos_resultstrue Dictexplicit_kpointsfalse KpointsDataget_explicit_kpoints_path_parametersfalse Dictgs_structurefalse StructureDataExit status Message 1 The process has failed with an unspecified error. 2 The process failed with legacy failure mode. 10 The process returned an invalid output. 11 The process did not register a required output. 221 ERROR: inputs invalid 222 ERROR: need at least 3 successful calculations 223 ERROR: nsteps is smaller than 3, need at least three data points to do fitting 224 given fitfunction name not valid 225 ERROR: kkr_startpot was not successful. Check you inputs. -
kkr.gf_writeout
class:aiida_kkr.workflows.gf_writeout:kkr_flex_wcWorkchain of a kkr_flex calculation to calculate the Green function with KKR starting from the RemoteData node of a previous calculation (either Voronoi or KKR). :param options: (Dict), Workchain specifications :param wf_parameters: (Dict), Workflow parameters that deviate from previous KKR RemoteData :param remote_data: (RemoteData), mandatory; from a converged KKR calculation :param kkr: (Code), mandatory; KKR code running the flexfile writeout :param impurity_info: Dict, mandatory: node specifying information of the impurities in the system :return workflow_info: (Dict), Information of workflow results like success, last result node, list with convergence behavior :return GF_host_remote: (RemoteData), host GF of the system
Input Required Valid types Description impurity_infotrue Dictremote_datatrue RemoteDatakkrfalse Code, NoneTypemetadatafalse optionsfalse Dict, NoneTypeparams_kkr_overwritefalse Dict, NoneTypeSet some input parameters of the KKR calculation. wf_parametersfalse Dict, NoneTypeOutput Required Valid types Description GF_host_remotetrue RemoteDataworkflow_infotrue DictExit status Message 1 The process has failed with an unspecified error. 2 The process failed with legacy failure mode. 10 The process returned an invalid output. 11 The process did not register a required output. 101 ERROR: the 'impurity_info' input Dict node could not be used 102 ERROR: the code you provided for kkr does not use the plugin kkr.kkr 103 ERROR: No remote_data was provided as Input 104 ERROR: calc_parameters given are not consistent! Hint: did you give an unknown keyword? 105 ERROR: calc_parameters misses keys 106 ERROR: KKR calculation to write out kkrflex files unsuccessful 107 ERROR: Could not extract value for Fermi level from parent calculation -
kkr.imp
class:aiida_kkr.workflows.kkr_imp:kkr_imp_wcWorkchain of a kkrimp calculation starting either from scratch (with a structure and impurity_info node), or with a converged host potential and impurity startpotentials, ... to calculate the converged host-impurity potential of the system. :param options: (Dict), Workchain specifications :param wf_parameters: (Dict), specifications for the kkr impurity workflow :param voro_aux_parameters: (Dict), specification for the auxiliary voronoi calculation for the impurity :param kkrimp: (Code), mandatory: KKRimp code converging the host-imp-potential :param kkr: (Code), mandatory: KKR code for calculation the host potential :param voronoi: (Code), mandatory: Voronoi code to generate the impurity startpot :param remote_data_gf: (RemoteData): remote folder of a previous kkrflex calculation containing the flexfiles ... :param remote_data_host: (RemoteData): remote folder of a converged KKR host calculation :return workflow_info: (Dict), Information of workflow results :return last_calc_output_parameters: (Dict), output parameters of the last called calculation :return last_calc_info: (Dict), information of the last called calculation
Input Required Valid types Description gf_writeouttrue Dataimpurity_infotrue DictInformation of the impurity like position in the unit cell, screening cluster, atom type. kkrimptrue CodeKKRimp code used to converge the impurity calculation scftrue Datavoronoitrue CodeVoronoi code used to create the impurity starting potential. kkrfalse Code, NoneTypeKKRhost code used to run GF writeout step. metadatafalse optionsfalse Dict, NoneTypeOptions for running the codes (walltime etc.). options_voronoifalse Dict, NoneTypeOptions for running the Voronoi code (if differing from general `options` node) params_kkr_overwritefalse Dict, NoneTypeSet some input parameters of the KKR calculation for the GF writeout step. remote_data_gffalse RemoteData, NoneTypeRemoteData node of precomputed host Green function. remote_data_gf_Efshiftfalse RemoteData, NoneTypeRemoteData node of precomputed host Green function with Fermi level shift (overwrite kkrflex_green and tmat files from first remote_data_gf node. remote_data_hostfalse RemoteData, NoneTypeRemoteData node of the converged host calculation. Used to write out the host Green function. startpotfalse SinglefileData, NoneTypeSet starting potential (e.g. from preconverged calculation voro_aux_parametersfalse Dict, NoneTypeParameters for the auxiliary voronoi starting potential workflow. voro_params_overwritefalse Dict, NoneTypeIf given, overwrite the some parameters used as input for auxiliary voronoi calculation of starting potential. wf_parametersfalse Dict, NoneTypeParameters for the KKRimp selfconsistency workflow. Output Required Valid types Description last_calc_infotrue Dictlast_calc_output_parameterstrue Dictremote_data_gftrue RemoteDataworkflow_infotrue Dictconverged_potentialfalse SinglefileDataExit status Message 1 The process has failed with an unspecified error. 2 The process failed with legacy failure mode. 10 The process returned an invalid output. 11 The process did not register a required output. 141 ERROR: one or more of the codes you provided do not use the necessary plugins: kkr.voro, kkr.kkr, kkr.kkrimp 142 ERROR: since GF writeout step has to be conducted, 'kkrcode' is needed as an input 143 ERROR: neither converged host remote nor GF writeout remote is given as an input. One of them is needed to proceed with this workflow! 144 ERROR: sub-workflow for KKRimp convergence failed 145 ERROR: sub-workflow Kkr_startpot failed (look for failure of voronoi calculation). -
kkr.imp_BdG
class:aiida_kkr.workflows.imp_BdG:kkrimp_BdG_wcWorkchain for one-shot BdG impurity DOS calculation from a converged normal state host calculation. 1) Normal state impurity potential scf 2) One-shot BdG DOS calcluation a) Writing out of the BdG kkrflex DOS files b) One-shot BdG impurity DOS The intermediate steps (1 & 2a) can be skipped by providing the corresponding nodes as inputs to the workflow. inputs:: :param options: (Dict), computer options :param impurity_info: (Dict), information about the impurity cluster :param voronoi: (Code), Voronoi code for creating the impurity starting potential :param kkr: (Code), KKR host code for the writing out kkrflex files :param kkrimp: (Code), KKR impurity code for the normal state impurity scf and BdG impurity DOS calculation :param BdG_settings: (Dict), set BdG parameters :param imp_scf.startpot: (SinglefileData), pre-converged impurity potential used to start the impurity scf calculation :param imp_scf.converged_potential: (SinglefileData), converged impurity potential, skips the impurity scf calculation if provided :param imp_scf.wf_parameters: (Dict), parameters for the kkr impurity scf :param imp_scf.gf_writeout.params_kkr_overwrite: (Dict), set some input parameters of the KKR calculation for the GF writeout step of impurity scf workchain :param imp_scf.gf_writeout.options: (Dict), computer settings :param imp_scf.scf.params_overwrite: (Dict), set some input parameters of the KKR impurity scf :param imp_scf.options: (Dict), computer settings :param imp_scf.remote_data_host: (RemoteData), parent folder of converged host normal state KkrCalculation :param dos.wf_parameters: (Dict), parameters for the DOS calculation :param dos.gf_dos_remote: (RemoteData), node of precomputed host GF for DOS energy contour :param dos.gf_writeout.params_kkr_overwrite: (Dict), set some input parameters of the KKR calculation for the GF writeout step of imßpurity dos workchain :param dos.gf_writeout.host_remote: (RemoteData), parent folder of kkrflex writeout step for DOS calculation :param dos.gf_writeout.kkr: (Code), KKR code for writing out of kkrflex files for impurity DOS calculation :param dos.gf_writeout.options: (Dict), computer settings :param dos.options: (Dict), computer settings returns:: :return workflow_info: (Dict), Information on workflow results :return output_parameters: (Dict), output parameters of the workflow :return dos_data: (XyData), impurity DOS data output node :return dos_data_interpol: (XyData), interpolated DOS data output node :return impurity_potential: (SinglefileData), converged normal state impurity potential node :return gf_host_BdG: (RemoteData), kkrflex writeout step files of DOS calculation
Input Required Valid types Description BdG_scftrue Datadostrue Dataimp_scftrue Datakkrimptrue CodeKKRimp code used to converge the impurity calculation BdG_settingsfalse DictDefine BdG parameters calc_DOSfalse Bool, NoneTypeSet this to TRUE to calculate DOS impurity_infofalse Dict, NoneTypeInformation of the impurity like position in the unit cell, screening cluster, atom type. kkrfalse Code, NoneTypeKKRhost code, needed to run the KkrCalculation metadatafalse optionsfalse Dict, NoneTypeComputer options (walltime etc.) passed onto KkrCalculation, fall back to settings from parent calculation if not given voronoifalse Code, NoneTypeVoronoi code used to create the impurity starting potential. Output Required Valid types Description impurity_potentialtrue SinglefileDatados_datafalse XyDatados_data_interpolfalse XyDatados_data_lmfalse XyDatados_data_lm_interpolfalse XyDatagf_host_BdGfalse RemoteDataoutput_parametersfalse Dictworkflow_infofalse DictExit status Message 1 The process has failed with an unspecified error. 2 The process failed with legacy failure mode. 10 The process returned an invalid output. 11 The process did not register a required output. 100 The code you provided for kkr does not use the plugin kkr.kkr 101 The code you provided for kkrimp does not use the plugin kkr.kkrimp 102 The code you provided for voronoi does not use the plugin kkr.voronoi 200 Parent calculation is not valid -
kkr.imp_dos
class:aiida_kkr.workflows.kkr_imp_dos:kkr_imp_dos_wcWorkchain of a DOS calculation for an impurity system starting from a converged impurity calculation or workflow :param options: (Dict), computer options :param wf_parameters: (Dict), specifications for the DOS :param kkr: (Code), mandatory: KKR code for gf_writeout step :param kkrimp: (Code), mandatory: KKRimp code for DOS calculation :param imp_host_pot: (SinglefileData), mandatory: impurity startpotential :return workflow_info: (Dict), Information on workflow results :return last_calc_output_parameters: (Dict), output parameters of the last called calculation :return last_calc_info: (Dict), information of the last called calculation
Input Required Valid types Description BdGtrue Datagf_writeouttrue Datakkrimptrue CodeKKRimp code, always needed. gf_dos_remotefalse RemoteData, NoneTypeRemoteData node of precomputed host GF for DOS energy contour. host_remotefalse RemoteData, NoneTypeRemoteData node of the (converged) host calculation. imp_pot_sfdfalse SinglefileData, NoneTypeimpurity potential single file data. Needs also impurity_info node. impurity_infofalse Dict, NoneTypeimpurity info node that specifies the relation between imp_pot_sfd to the host system. Mandatory if imp_pot_sfd is given. initial_noco_anglesfalse Dict, NoneTypeInitial non-collinear angles for the magnetic moments of the impurities. These values will be written into the `kkrflex_angle` input file of KKRimp. The Dict node should be of the form initial_noco_angles = Dict({ 'theta': [theta_at1, theta_at2, ..., theta_atN], # list theta values in degrees (0..180) 'phi': [phi_at1, phi_at2, ..., phi_atN], # list phi values in degrees (0..360) 'fix_dir': [True, False, ..., True/False], # list of booleans indicating of the direction of the magentic moment should be fixed or is allowed to be updated (True means keep the direction of the magnetic moment fixed) }) Note: The length of the theta, phi and fix_dir lists have to be equal to the number of atoms in the impurity cluster. kkrfalse Code, NoneTypeKKRhost code, needed if gf_dos_remote is not given. kkrimp_remotefalse RemoteData, NoneTypeRemoteData node of previous (converged) KKRimp calculation. metadatafalse optionsfalse Dict, NoneTypeComputer options (resources, quene name, etc.). params_kkr_overwritefalse Dict, NoneTypeSet some input parameters of the KKR calculation. rimpshiftfalse Dict, NoneTypeShift for atoms in the impurity cluster used in U-transformation. The Dict node should be of the form rimpshift = Dict({'shifts': [[0., 0., 0.], ... ]}) where the shifts are given in atomic units (i.e. the internal KKR units). Note: The length of the 'shifts' attribute should be an array with three numbers indicating the shift for each atom in the impurity cluster. settings_LDAUfalse Dict, NoneTypeSettings for LDA+U run (see KkrimpCalculation for details). wf_parametersfalse Dict, NoneTypeDOS workflow parameters (energy range, etc.). Output Required Valid types Description dos_datatrue XyDatalast_calc_infotrue Dictlast_calc_output_parameterstrue Dictworkflow_infotrue Dictdos_data_interpolfalse XyDatados_data_interpol_lmfalse XyDatados_data_lmfalse XyDatagf_dos_remotefalse RemoteDataRemoteData node of the computed host GF. Exit status Message 1 The process has failed with an unspecified error. 2 The process failed with legacy failure mode. 10 The process returned an invalid output. 11 The process did not register a required output. 220 Unknown problem detected. 221 Unable to find the parent remote_data node that led to the input impurity calculation. You need to specify `host_remote` and `impurity_info` nodes. 222 The gf_writeout workflow was not succesful, cannot continue. 223 The input nodes `imp_pot_sfd` and `kkrimp_remote` are given but are mutually exclusive 224 KKRhost code node (`inputs.kkr`) is missing if gf_dos_remote is not given. 225 `host_remote` node is missing if gf_dos_remote is not given. 226 KKRimp sub-workflow failed. -
kkr.imp_sub
class:aiida_kkr.workflows.kkr_imp_sub:kkr_imp_sub_wcWorkchain of a kkrimp self consistency calculation starting from the host-impurity potential of the system. (Not the entire kkr_imp workflow!) :param options: (Dict), Workchain specifications :param wf_parameters: (Dict), specifications for the calculation :param host_imp_startpot: (RemoteData), mandatory; input host-impurity potential :param kkrimp: (Code), mandatory; KKRimp code converging the host-imp-potential :param remote_data: (RemoteData), mandatory; remote folder of a previous kkrflex calculation containing the flexfiles ... :param kkrimp_remote: (RemoteData), remote folder of a previous kkrimp calculation :param impurity_info: (Dict), Parameter node with information about the impurity cluster :return workflow_info: (Dict), Information of workflow results like success, last result node, list with convergence behavior :return host_imp_pot: (SinglefileData), output potential of the sytem
Input Required Valid types Description kkrimptrue Codehost_imp_startpotfalse SinglefileData, NoneTypeimpurity_infofalse Dict, NoneTypeinitial_noco_anglesfalse Dict, NoneTypeInitial non-collinear angles for the magnetic moments of the impurities. These values will be written into the `kkrflex_angle` input file of KKRimp. The Dict node should be of the form initial_noco_angles = Dict({ 'theta': [theta_at1, theta_at2, ..., theta_atN], # list theta values in degrees (0..180) 'phi': [phi_at1, phi_at2, ..., phi_atN], # list phi values in degrees (0..360) 'fix_dir': [True, False, ..., True/False], # list of booleans indicating of the direction of the magentic moment should be fixed or is allowed to be updated (True means keep the direction of the magnetic moment fixed) }) Note: The length of the theta, phi and fix_dir lists have to be equal to the number of atoms in the impurity cluster. kkrimp_remotefalse RemoteData, NoneTypemetadatafalse optionsfalse Dict, NoneTypeparams_overwritefalse Dict, NoneTypeDict of parameters that are given to the KKRimpCalculation. Overwrites automatically set values! remote_datafalse RemoteData, NoneTyperemote_data_Efshiftfalse RemoteData, NoneTyperimpshiftfalse Dict, NoneTypeShift for atoms in the impurity cluster used in U-transformation. The Dict node should be of the form rimpshift = Dict({'shifts': [[0., 0., 0.], ... ]}) where the shifts are given in atomic units (i.e. the internal KKR units). Note: The length of the 'shifts' attribute should be an array with three numbers indicating the shift for each atom in the impurity cluster. settings_LDAUfalse Dict, NoneTypeLDA+U settings. See KKRimpCalculation for details. wf_parametersfalse Dict, NoneTypeOutput Required Valid types Description workflow_infotrue Dicthost_imp_potfalse SinglefileDataExit status Message 1 The process has failed with an unspecified error. 2 The process failed with legacy failure mode. 10 The process returned an invalid output. 11 The process did not register a required output. 121 ERROR: Not both host-impurity potential and GF remote found in the inputs. Provide either both of them or a RemoteData from a previous kkrimp calculation. 122 ERROR: The code you provided for KKRimp does not use the plugin kkr.kkrimp 123 ERROR: Unable to extract parent paremeter node of input remote folder 124 ERROR: No calculation parameters provided 125 ERROR: Last KKRcalc in SUBMISSIONFAILED state! stopping now 126 ERROR: Maximal number of KKR restarts reached. Exiting now! 127 ERROR: Last_remote could not be set to a previous succesful calculation 128 ERROR: There are still missing calculation parameters 129 ERROR: Parameters could not be updated 130 ERROR: Last calculation is not in finished state 131 The input `remote_data` node has no valid calculation parent. 132 The parent calculation of the input `remote_data` node was not succesful. 133 ERROR: Last calculation does not have an output potential. -
kkr.jij
class:aiida_kkr.workflows.jijs:kkr_jij_wcWorkchain for calculation of exchange coupling constants Jij and Dij if parent calculation used the SOC solver. inputs:: :param wf_parameters: optional Dict node of workchain specifications, contains settings like Jij radius cutoff, selection of sites for i and j and numerical cutoffs. None values in the accuracy sub-dict means that values from parent calculation are coptied. :param remote_data: mandatory RemoteData node of parent (i.e. converged) KkrCalculation :param kkr: optional Code for KKRhost executable (if not given the same as in the parent calculation is used) :param options: optional Dict computer options like scheduler command or parallelization returns:: :return jij_data: ArrayData with the arrays 'Jij_expanded' (Table of all Jij and Dij pairs) and 'positions_expanded' (positions of all ij pairs) :return structure_jij_sites: StructureData
Input Required Valid types Description kkrtrue CodeKKRhost code, needed to run the Jij KkrCalculation remote_datatrue RemoteDataParent folder of previously converged KkrCalculation metadatafalse optionsfalse Dict, NoneTypeComputer options (walltime etc.) passed onto KkrCalculation, fall back to settings from parent calculation if not given params_kkr_overwritefalse Dict, NoneTypeOverwrite some input parameters of the parent KKR calculation. wf_parametersfalse Dict, NoneTypeParameters of the bandstructure workflow (see output of kkr_bs_wc.get_wf_default() for more details). Output Required Valid types Description jij_datatrue ArrayDataresults_wftrue Dictstructure_jij_sitestrue StructureDataExit status Message 1 The process has failed with an unspecified error. 2 The process failed with legacy failure mode. 10 The process returned an invalid output. 11 The process did not register a required output. 160 The code you provided for kkr does not use the plugin kkr.kkr 161 Parent calculation is not valid 162 KKR Band Structure calculation failed 163 Parsing of Jij calculations failed -
kkr.scf
class:aiida_kkr.workflows.kkr_scf:kkr_scf_wcWorkchain for converging a KKR calculation (SCF). It converges the charge potential. Two paths are possible: (1) Start from a structure and run a voronoi calculation first, optional with calc_parameters (2) Start from an existing Voronoi or KKR calculation, with a remoteData :param wf_parameters: (Dict), Workchain Specifications :param options: (Dict); specifications for the computer :param structure: (StructureData), Crystal structure :param calc_parameters: (Dict), Voronoi/Kkr Parameters :param remote_data: (RemoteData), from a KKR, or Voronoi calculation :param voronoi: (Code) :param kkr: (Code) :return output_kkr_scf_wc_para: (Dict), Information of workflow results like Success, last result node, list with convergence behavior minimum input example: 1. Code1, Code2, Structure, (Parameters), (wf_parameters) 2. Code2, remote_data, (Parameters), (wf_parameters) maximum input example: 1. Code1, Code2, Structure, Parameters wf_parameters: {'queue_name' : String, 'resources' : dict({"num_machines": int, "num_mpiprocs_per_machine" : int}) 'walltime' : int} 2. Code2, (remote-data), wf_parameters as in 1. Hints: 1. This workflow does not work with local codes!
Input Required Valid types Description kkrtrue CodeKKRhost code node which will run the KkrCalculations calc_parametersfalse Dict, NoneTypeKKR-specific calculation parameters (LMAX etc.), usually set up with the help of the `kkrparams` class. initial_noco_anglesfalse Dict, NoneTypeInitial non-collinear angles for the magnetic moments of the impurities. See KkrCalculation for details. metadatafalse optionsfalse Dict, NoneTypeComputer settings used by the calculations in the workflow (see also help string of wf_parameters). params_kkr_overwritefalse Dict, NoneTypeSet some input parameters of the KKR calculation. remote_datafalse RemoteData, NoneTypeRemoteFolder node of a preconverged calculation. Can be used as a starting point to skip the Voronoi step. startpot_overwritefalse SinglefileData, NoneTypePotential SinglefileData, can be used to overwrite the starting potential from Voronoi (the shapefun will be used though and thus needs to be compatible). This can be used to construct a better starting potential from a preconverged calculation (e.g. in a smaller unit cell). structurefalse StructureData, NoneTypeInput structure for which a calculation is started with a VoronoiCalculation. Can be skipped if a previous KkrCalculation is given with the `remote_data` input node. voronoifalse Code, NoneTypeVoronoi code node, needed only if `structure` input node is given. wf_parametersfalse Dict, NoneTypeSettings for the workflow. Use `KkrCalculation.get_wf_defaults()` to get the default values and default options. Output Required Valid types Description output_kkr_scf_wc_ParameterResultstrue Dictfinal_dosdata_interpolfalse XyDatalast_InputParametersfalse Dictlast_RemoteDatafalse RemoteDatalast_calc_outfalse Dictlast_noco_anglesfalse Dictresults_vorostartfalse Dictstarting_dosdata_interpolfalse XyDataExit status Message 1 The process has failed with an unspecified error. 2 The process failed with legacy failure mode. 10 The process returned an invalid output. 11 The process did not register a required output. 221 Unable to extract parent paremeter node of input remote folder 222 The code you provided for kkr does not use the plugin kkr.kkr 223 The code you provided for voronoi does not use the plugin kkr.voro 224 ERROR: StructureData was provided, but no voronoi code was provided 225 ERROR: No StructureData nor remote_data was provided as Input 226 ERROR: kkr_startpot_wc step failed! 227 DOS run unsuccessful. Check inputs. 228 ERROR: calc_parameters given are not consistent! Missing mandatory keys 229 ERROR: calc_parameters given are not consistent! Hint: did you give an unknown keyword? 230 ERROR: calc_parameters not given as input but are needed! 231 ERROR: parameter update unsuccessful: some key, value pair not valid! 232 ERROR: calc_parameters misses keys 233 ERROR: last_remote could not be set to a previous successful calculation 234 ERROR: maximal number of KKR restarts reached. Exiting now! 235 ERROR: last KKRcalc in SUBMISSIONFAILED state -
kkr.startpot
class:aiida_kkr.workflows.voro_start:kkr_startpot_wcWorkchain create starting potential for a KKR calculation by running voronoi and getting the starting DOS for first checks on the validity of the input setting. Starts from a structure together with a KKR parameter node. :param wf_parameters: (Dict), Workchain specifications :param options: (Dict), specifications for the computer :param structure: (StructureData), aiida structure node to begin calculation from (needs to contain vacancies, if KKR needs empty spheres) :param kkr: (Code) :param voronoi: (Code) :param calc_parameters: (Dict), KKR parameter set, passed on to voronoi run. :return result_kkr_startpot_wc: (Dict), Information of workflow results like Success, last result node, dos array data
Input Required Valid types Description voronoitrue CodeVoronoi code calc_parametersfalse Dict, NoneTypeKKR-specific parameters passed onto the VoronoiCalculation (lmax etc.). kkrfalse Code, NoneTypeKkr code, only needed only if DOS is calculated. metadatafalse optionsfalse Dict, NoneTypeComputer options passed onto the calculations parent_KKRfalse RemoteData, NoneTypeRemoteData node of a KKR calculation which is used to overwrite the output potential Voronoi constructs (typically used to increase lmax). Cannot be used with a different structure in the input since the structure is extracted from the parent_KKR. startpot_overwritefalse SinglefileData, NoneTypePotential which can be used instead of the output potential Voronoi constructs. structurefalse StructureData, NoneTypeStructure for which the starting potential should be constructed, not needed if parent_KKR is given (typically used to increase the lmax but use the output potential of the parent_KKR as starting potential). wf_parametersfalse Dict, NoneTypeParameters that control the behavior of the workflow Output Required Valid types Description results_vorostart_wctrue Dictlast_doscal_dosdatafalse XyDatalast_doscal_dosdata_interpolfalse XyDatalast_doscal_resultsfalse Dictlast_params_voronoifalse Dictlast_voronoi_remotefalse RemoteDatalast_voronoi_resultsfalse DictExit status Message 1 The process has failed with an unspecified error. 2 The process failed with legacy failure mode. 10 The process returned an invalid output. 11 The process did not register a required output. 201 The code you provided for kkr does not use the plugin kkr.kkr 202 The code you provided for voronoi does not use the plugin kkr.voro 203 Voronoi calculation unsuccessful. Check inputs 204 Voronoi calculation unsuccessful. Check inputs. 205 Voronoi calculation unsuccessful. Structure inconsistent. Maybe you need empty spheres? 206 DOS run unsuccessful. Check inputs. 207 Can only take either structure or parent_KKR as input. 208 Need either structure or parent_KKR as input.
-
aiida-kkr
aiida_kkr.cmdline:cmd_root