aiida-castep
AiiDA plugin for CASTEP
General information
Registry checks
Plugins provided
Entry points
-
castep.castep
class:aiida_castep.calculations.castep:CastepCalculationClass representing a generic CASTEP calculation - This class should work for all types of calculations.
Input Required Valid types Description parameterstrue DictA node that defines the input parameters pseudostrue Use nodes for the pseudopotentails of one ofthe element in the structure. You should pass aa dictionary specifying the pseudpotential node foreach kind such as {O: <PsudoNode>} structuretrue StructureDataThe input structure bs_kpointsfalse KpointsData, NoneTypeExtra kpoints input for task: bandstructure 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. elnes_kpointsfalse KpointsData, NoneTypeExtra kpoints input for task: elnes kpointsfalse KpointsData, NoneTypeUse a node defining the kpoints for the calculation magres_kpointsfalse KpointsData, NoneTypeExtra kpoints input for task: magres metadatafalse monitorsfalse DictAdd monitoring functions that can inspect output files while the job is running and decide to prematurely terminate the job. optics_kpointsfalse KpointsData, NoneTypeExtra kpoints input for task: optics parent_calc_folderfalse RemoteData, NoneTypeUse a remote folder as the parent folder. Useful for restarts. phonon_fine_kpointsfalse KpointsData, NoneTypeExtra kpoints input for task: phonon, phonon+efield phonon_kpointsfalse KpointsData, NoneTypeExtra kpoints input for task: phonon, phonon+efield 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. settingsfalse Dict, NoneTypeA node for additional settings spectral_kpointsfalse KpointsData, NoneTypeExtra kpoints input for task: spectral supercell_kpointsfalse KpointsData, NoneTypeExtra kpoints input for task: phonon Output Required Valid types Description output_parameterstrue DictParsed results in a dictionary format. 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 0 Calculation terminated gracefully, end found 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. 101 SCF Cycles failed to reach convergence 103 Stopped execuation due to detection of 'stop ' keyword in param file. 104 CASTEP generate error files. Check them for details 105 Cannot find the end of calculation 106 No output .castep files found 107 Calculation self-terminated due to time limit 108 No retrieve folder is found 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} 200 UNKOWN ERROR 501 At least one kpoints/spin has no empty bands - please rerun with increased nextra_bands. -
castep.ts
class:aiida_castep.calculations.castep:CastepTSCalculationCASTEP calculation for transition state search. Use an extra input product structure.
Input Required Valid types Description parameterstrue DictA node that defines the input parameters product_structuretrue StructureDataProduct structure for transition state search. pseudostrue Use nodes for the pseudopotentails of one ofthe element in the structure. You should pass aa dictionary specifying the pseudpotential node foreach kind such as {O: <PsudoNode>} structuretrue StructureDataThe input structure bs_kpointsfalse KpointsData, NoneTypeExtra kpoints input for task: bandstructure 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. elnes_kpointsfalse KpointsData, NoneTypeExtra kpoints input for task: elnes kpointsfalse KpointsData, NoneTypeUse a node defining the kpoints for the calculation magres_kpointsfalse KpointsData, NoneTypeExtra kpoints input for task: magres metadatafalse monitorsfalse DictAdd monitoring functions that can inspect output files while the job is running and decide to prematurely terminate the job. optics_kpointsfalse KpointsData, NoneTypeExtra kpoints input for task: optics parent_calc_folderfalse RemoteData, NoneTypeUse a remote folder as the parent folder. Useful for restarts. phonon_fine_kpointsfalse KpointsData, NoneTypeExtra kpoints input for task: phonon, phonon+efield phonon_kpointsfalse KpointsData, NoneTypeExtra kpoints input for task: phonon, phonon+efield 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. settingsfalse Dict, NoneTypeA node for additional settings spectral_kpointsfalse KpointsData, NoneTypeExtra kpoints input for task: spectral supercell_kpointsfalse KpointsData, NoneTypeExtra kpoints input for task: phonon Output Required Valid types Description output_parameterstrue DictParsed results in a dictionary format. 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 0 Calculation terminated gracefully, end found 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. 101 SCF Cycles failed to reach convergence 103 Stopped execuation due to detection of 'stop ' keyword in param file. 104 CASTEP generate error files. Check them for details 105 Cannot find the end of calculation 106 No output .castep files found 107 Calculation self-terminated due to time limit 108 No retrieve folder is found 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} 200 UNKOWN ERROR 501 At least one kpoints/spin has no empty bands - please rerun with increased nextra_bands.
-
castep-helper
aiida_castep.cmdline.helper_cmd:helper_cmd -
castep-pseudos
aiida_castep.cmdline.otfg_cmd:pseudos_cmd
-
castep.otfgdata
aiida_castep.data.otfg:OTFGData -
castep.uspdata
aiida_castep.data.usp:UspData
-
castep.otfg
aiida_castep.data.otfg:OTFGGroup
-
castep.castep
aiida_castep.parsers.castep:CastepParser
-
castep.calculation
aiida_castep.tests.dbtests.dbtestcalculation
-
castep.castep
aiida_castep.calculations.tools:CastepCalcTools
-
castep.altrelax
class:aiida_castep.workflows.relax:CastepAlterRelaxWorkChainA relaxation workflow that alternates between fixed cell and unfixed cell This is meidate the problem in CASTEP where if the cell is partially constraints the convergence would be very slow. To overcome this problem, the structure should be relaxed with cell constraints then restart with fixed cell and repeat. Following fields can be used in ``relax_options`` :var_cell_iter_max: Maximum iterations in variable cell relaxation, default to 10 :fix_cell_iter_max: Maximum iterations in fixed cell relaxation, default to 20
Input Required Valid types Description basetrue Datacalctrue Datastructuretrue StructureDataStructure to be used for relaxation. clean_workdirfalse Bool, NoneTypeWether to clean the workdir of the calculations at the end of the workchain. The default is not performing any cleaning. metadatafalse relax_optionsfalse Dict, NoneTypeOptions for relaxation. Output Required Valid types Description output_bandstrue BandsDataoutput_parameterstrue Dictremote_foldertrue RemoteDataoutput_arrayfalse ArrayDataoutput_structurefalse StructureDataThe relaxed structure. output_trajectoryfalse ArrayDataExit 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 Subprocess lauched has failed in the relax stage 102 Geometry optimisation is not converged but the maximum iteration is exceeded. 201 NO cell_constraints find in the input -
castep.bands
class:aiida_castep.workflows.bands:CastepBandsWorkChainWorkchain for running bands calculation. This workchain does the following: 1. Relax the structure if requested (eg. inputs passed to the relax namespace). 2. Optionally: Do a SCF singlepoint calculation 3. Do combined SCF + non-SCF calculation for bands and dos. Inputs must be passed for the SCF calculation (dispatched to bands and DOS), others are optional. Input for bands and dos calculations are optional. However, if they are needed, the full list of inputs must be passed. For the `parameters` node, one may choose to only specify those fields that need to be updated.
Input Required Valid types Description scftrue DataInputs for SCF workchain, mandatory. Used as template for bands/dos if not supplied separately structuretrue StructureDataThe input structure bandsfalse DataInputs for bands calculation, if needed bands_kpointsfalse KpointsData, NoneTypeExplicit kpoints for the bands bands_kpoints_distancefalse Float, NoneTypeSpacing for band distances, used by seekpath clean_children_workdirfalse Str, NoneTypeWhat part of the called children to clean dosfalse DataInputs for DOS calculation, if needed dos_kpointsfalse KpointsData, NoneTypeKpoints for running DOS calculations metadatafalse only_dosfalse Flag for running only DOS calculations optionsfalse Options for this workchain. Supported keywords: dos_smearing, dos_npoints. relaxfalse DataInputs for Relaxation workchain, if needed run_separate_scffalse Flag for running a separate SCF calculation, default to False Output Required Valid types Description band_structuretrue Computed band structure with labels dos_bandsfalse Bands from the DOS calculation primitive_structurefalse Primitive structure used for band structure calculations seekpath_parametersfalse Parameters used by seekpath 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. 501 Relaxation workchain failed 502 SCF workchain failed 503 Band structure workchain failed 504 DOS workchain failed -
castep.base
class:aiida_castep.workflows.base:CastepBaseWorkChainA basic workchain for generic CASTEP calculations. We try to handle erros such as walltime exceeded or SCF not converged
Input Required Valid types Description calctrue Datacalc_optionsfalse Dict, NoneTypeOptions to be passed to calculations's metadata.options clean_workdirfalse Bool, NoneTypeWether to clean the workdir of the calculations or not, the default is not clean. continuation_folderfalse RemoteData, NoneTypeUse a remote folder as the parent folder. Useful for restarts. ensure_gamma_centeringfalse Bool, NoneTypeEnsure the kpoint grid is gamma centred. kpoints_spacingfalse Float, NoneTypeKpoint spacing max_iterationsfalse IntMaximum number of restarts metadatafalse optionsfalse Dict, NoneTypeOptions specific to the workchain.Avaliable options: queue_wallclock_limit, use_castep_bin pseudos_familyfalse Str, NoneTypePseudopotential family to be used reuse_folderfalse RemoteData, NoneTypeUse a remote folder as the parent folder. Useful for restarts. Output Required Valid types Description output_bandstrue BandsDataoutput_parameterstrue Dictremote_foldertrue RemoteDataoutput_arrayfalse ArrayDataoutput_structurefalse StructureDataoutput_trajectoryfalse ArrayDataExit 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. 200 The maximum number of iterations has been exceeded 201 The maximum length of the wallclocks has been exceeded 301 CASTEP generated error files and is not recoverable 302 Cannot reach SCF convergence despite restart efforts 400 The stop flag has been put in the .param file to request termination of the calculation. 900 Input validate is failed 901 Completed one iteration but found not calculation returned 1000 Error is not known -
castep.relax
class:aiida_castep.workflows.relax:CastepRelaxWorkChainWorkChain to relax structures. Restart the relaxation calculation until the structure is fully relaxed. Each CASTEP relaxation may finish without error with not fully relaxed structure if the number of iteration is exceeded (*geom_max_iter*). This workchain try to restart such calculations (wrapped in CastepBaseWorkChain) until the structure is fully relaxed ``relax_options`` is a Dict of the options avaliable fields are: - restart_mode: mode of restart, choose from ``reuse`` (default), ``structure``, ``continuation``. - bypass: Bypass relaxation control - e.g. no checking of the convergence. Can be used for doing singlepoint calculation.
Input Required Valid types Description basetrue Datacalctrue Datastructuretrue StructureDataStructure to be used for relaxation. clean_workdirfalse Bool, NoneTypeWether to clean the workdir of the calculations at the end of the workchain. The default is not performing any cleaning. metadatafalse relax_optionsfalse Dict, NoneTypeOptions for relaxation. Output Required Valid types Description output_bandstrue BandsDataoutput_parameterstrue Dictremote_foldertrue RemoteDataoutput_arrayfalse ArrayDataoutput_structurefalse StructureDataThe relaxed structure. output_trajectoryfalse ArrayDataExit 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 Subprocess lauched has failed in the relax stage 102 Geometry optimisation is not converged but the maximum iteration is exceeded.
-
castep.mock
aiida_castep.cmdline.mock_castep:mock_castep