Skip to content

How to set multiple basis set files in aiida-cp2k builder #139

@sylviancadars

Description

@sylviancadars

Hi,
I am trying to execute via aiidza-cp2k an example of CP2K calculation wherein the sample input file points to 2 distinct basis set files in the [DFT] section :

BASIS_SET_FILE_NAME [REMOTE_CP2K_DADA_DIR]/GTH_BASIS_SETS
BASIS_SET_FILE_NAME [REMOTE_CP2K_DADA_DIR]/BASIS_MOLOPT_UCL
POTENTIAL_FILE_NAME [REMOTE_CP2K_DADA_DIR]/GTH_POTENTIALS

I would like to re-define these 2 basis set files within the aiida-cp2k builder. I tried the following, which did not work :

from aiida.orm import (Code, Dict, SinglefileData)

localCP2KDataDir = r'[lOCAL_CP2K_DADA_DIR]'
basis_files = [ SinglefileData(file=os.path.join(localCP2KDataDir,'GTH_BASIS_SETS')) ,
SinglefileData(file=os.path.join(localCP2KDataDir,'BASIS_MOLOPT_UCL')) ]
pseudo_file = SinglefileData(file=os.path.join(localCP2KDataDir,'GTH_POTENTIALS'))

cp2k_code = Code.get_from_string('[MY_CP2K_VERSION]@[MY_REMOTE_COMPUTER])
builder = cp2k_code.get_builder()

builder.file = {
'basis': basis_file,
'pseudo': pseudo_file
}

It seems that the builder does not accet a list as the value to the 'basis' key.

Is there a way to do this ?

Thank you very much for your help.
Best wishes.

Sylvian.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions