# Projwfc¶

Note

The Quantum Espresso Projwfc plugin referenced below is available in the EPFL version.

This chapter will show how to launch a single Projwfc (projwfc.x) calculation. It assumes you already familiar with the underlying code as well as how to use basic features of AiiDA. This tutorial assumes you are at least familiar with the concepts introduced during the Phonon, specifically you should be familiar with using a parent calculation.

This section is intentially left short, as there is really nothing new in using projwfc calculations relative to ph calculations. Simply adapt the script below to suit your needs, refer to the quantum espresso documentation.

## Script to execute¶

This is the script described in the tutorial above. You can use it, just remember to customize it using the right parent_id, the code, and the proper scheduler info.

#!/usr/bin/env python

from aiida.orm import Code
from aiida.plugins import CalculationFactory, DataFactory

#####################
parent_id = 6
codename = 'my-projwfc.x'
#####################

code = Code.get_from_string(codename)

Dict = DataFactory('dict')
parameters = Dict(dict={
'PROJWFC': {
'DeltaE' : 0.2,
'ngauss' : 1,
'degauss' : 0.02
}})

QEPwCalc = CalculationFactory('quantumespresso.projwfc')