Exemple #1
0
            'gmaxxc': 12.5,
            'gmax': 15.0
        },
        'kpt': {
            'div1': 17,
            'div2': 17,
            'div3': 17,
            'tkb': 0.0005
        }
    })

# now run an inputgen calculation:

code = Code.get_from_string(codename)
computer = Computer.objects.get(computer_name)
JobCalc = FleurinputgenCalculation.process()

attrs = {
    'max_wallclock_seconds': 180,
    'resources': {
        'num_machines': 1
    },
    'withmpi': False,
    #'computer': computer
}
inp = {'structure': s, 'parameters': parameters, 'code': code}

f = run(JobCalc, _options=attrs, **inp)
fleurinp = f['fleurinpData']
fleurinpd = load_node(fleurinp.pk)
Exemple #2
0
from aiida_fleur.calculation.fleur import FleurCalculation
from aiida_fleur.tools.common_fleur_wf import get_inputs_fleur, get_inputs_inpgen

__copyright__ = (u"Copyright (c), 2016, Forschungszentrum Jülich GmbH, "
                 "IAS-1/PGI-1, Germany. All rights reserved.")
__license__ = "MIT license, see LICENSE.txt file"
__version__ = "0.27"
__contributors__ = "Jens Broeder"

RemoteData = DataFactory('remote')
StructureData = DataFactory('structure')
ParameterData = DataFactory('parameter')
#FleurInpData = DataFactory('fleurinp.fleurinp')
FleurInpData = DataFactory('fleur.fleurinp')
FleurProcess = FleurCalculation.process()
FleurinpProcess = FleurinputgenCalculation.process()


class fleur_scf_wc(WorkChain):
    """
    This workflow converges a FLEUR calculation (SCF).
    It converges the charge density and optional the total energy
    
    Two paths are possible: 
    
    (1) Start from a structure and run the inpgen first
    (2) Start from a Fleur calculation, with optional remoteData
      
    :Params: wf_parameters: parameterData node,
    :Params: structure : structureData node,
    :Params: calc_parameters: parameterData node,
Exemple #3
0
        'kpt': {
            'nkpt': 200,
        }
    })
#s=load_node(5814)
#elements = list(s.get_symbols_set())

## For remote codes, it is not necessary to manually set the computer,
## since it is set automatically by new_calc
#computer = code.get_remote_computer()
#calc = code.new_calc(computer=computer)
calc = FleurinputgenCalculation()
#print calc
#calc.label = 'Test inpgen run'
print('set label {}'.format(calc.label))
JobCalc = calc.process()
print(JobCalc.calc)
print(JobCalc)
#print(JobCalc.label)
#JobCalc.calc.label = 'Test inpgen run'
#print(JobCalc.calc)
#print(JobCalc.label)
label = 'Test inpgen run'
description = 'Test inpgen run on W'
label = 'fleur_scf_wc inpgen on W'
description = '|fleur_scf_wc| inpgen on W, pbc(True, True, True)'

attrs = {
    'max_wallclock_seconds': 180,
    'resources': {
        "num_machines": 1