quantum-espresso/upftools
Paolo Giannozzi 9af0317f8d Once again, a problem with modules in Makefiles. In order to simplify things,
after the proliferarion of modules and libraries, I have collected into a
single variable BASEMOD_FLAGS, defined in make.inc, the list of directories
for modules, to be included by all codes. IMPORTANT NOTICE: re-run "configure",
the new Makefiles work in conjunction with the new make.inc
2018-01-08 22:28:48 +01:00
..
HGH2QE Added converter of newer HGH pseudopotentials to UPF format. For the time 2015-06-18 16:30:04 +00:00
Makefile Once again, a problem with modules in Makefiles. In order to simplify things, 2018-01-08 22:28:48 +01:00
README Bugfix casino2upf.x. FOr somereason the combination of Portland Group compiliers and iotk didn't like writing UPF files to stdout. Behaviour of casino2upf modified so that now the output is written to a filename specified in the input. If no filename is specified this defaults to out.UPF. 2011-08-08 12:45:46 +00:00
casino2upf.f90 Cleanup; removed useless and confusing wrapper write_upf (somebody 2012-06-29 14:24:02 +00:00
casino_pp.f90 Removal of __STD_F95 preprocessing option: compilers that do not accept 2015-05-05 21:11:38 +00:00
cpmd2upf.f90 1) Makefile wasn't working from inside upftools/ 2015-10-06 08:29:24 +00:00
fhi2upf.f90 1) Makefile wasn't working from inside upftools/ 2015-10-06 08:29:24 +00:00
fpmd2upf.f90 write_upf => write_upf_v1 just for clarity. Apart from the code fro virtual 2012-07-05 13:30:17 +00:00
interpolate.f90 1) Makefile wasn't working from inside upftools/ 2015-10-06 08:29:24 +00:00
make.depend write_upf => write_upf_v1 just for clarity. Apart from the code fro virtual 2012-07-05 13:30:17 +00:00
ncpp2upf.f90 Obsolescent routine "bachel" moved from flib/ to the only place where it is 2016-01-24 09:51:46 +00:00
oldcp2upf.f90 1) Makefile wasn't working from inside upftools/ 2015-10-06 08:29:24 +00:00
read_ps.f90 Cleanup of duplicated code 2016-12-06 21:14:50 +00:00
read_upf.f90 virtual.x was linking a duplicate obsolete "pseudo" module, leading 2017-10-13 16:21:40 +00:00
read_upf_tofile.f90 read_upf_tofile can be used also on upf_v1. 2017-05-04 16:43:28 +00:00
rrkj2upf.f90 write_upf => write_upf_v1 just for clarity. Apart from the code fro virtual 2012-07-05 13:30:17 +00:00
upf2casino.f90 Source "normalization" 2012-06-20 13:29:10 +00:00
upf2upf2.f90 The converter from FHI PP to UPF v.2 had a small inconsistency in 2012-09-08 08:15:33 +00:00
uspp2upf.f90 write_upf => write_upf_v1 just for clarity. Apart from the code fro virtual 2012-07-05 13:30:17 +00:00
vanderbilt.f90 Update for the vandeilt conversion tools with the 2013-11-08 11:01:03 +00:00
vdb2upf.f90 write_upf => write_upf_v1 just for clarity. Apart from the code fro virtual 2012-07-05 13:30:17 +00:00
virtual.f90 virtual.x was linking a duplicate obsolete "pseudo" module, leading 2017-10-13 16:21:40 +00:00
write_upf.f90 Update for the vandeilt conversion tools with the 2013-11-08 11:01:03 +00:00

README

Unified Pseudopotential File (UPF) Specifications - see:
http://www.quantum-espresso.org/wiki/index.php/Unified_pseudopotential_format

Available converters to UPF from:
  CASINO tabulated format (see below)
  CPMD (TYPE=NUMERIC, LOGARITHMIC, CAR, GOEDECKER)
  Fritz-Haber numerical format, either ".cpi" (fhi88pp) or ".fhi" (abinit)
  David Vanderbilt's code format (formatted or binary)
  Old Norm-Conserving PWSCF format (deprecated)
  Old "RRKJ3" PWSCF format (deprecated)
  Old Norm-Conserving CP90  format (deprecated)

Pseudopotentials in PWSCF and CASINO
====================================

Two utilities are provided with the Quantum Espresso distribution to 
enable the PWscf code to be used in conjunction with the CASINO quantum 
Monte Carlo code.

Of course all pseudopotentials generated via these automatic tools should 
be tested before being used for production runs.

It should be noted that ultrasoft and PAW pseudopotentials cannot be used
with the CASINO code. Currently only UPF files containing norm-conserving 
pseudopotentials can be converted using these utilities.

============
casino2upf.x
============

The first of these is casino2upf.x . This utility takes a given CASINO 
tabulated pseudopotential file and one or more awfn.data files specifying 
the pseudoatomic wavefunctions to be used in creating the 
Kleinman-Bylander projectors. A UPF file containing the projectors and the 
local potential is then written to the file name specified in inputpp. Any
errors are communicated to the user via stderr.

Usage:
	./casino2upf.x < inputpp 

A sample inputpp file for converting a Trail and Needs pseudopotential 
would be:

inputpp:
	&inputpp
		pp_data='pp.data'
		upf_file='my_pseudo_potential.UPF'
	/
	3
	awfn.data_s1_2S
	awfn.data_p1_2P
	awfn.data_d1_2D

Here pp_data specifies the name and location of the file containing the 
CASINO pseudopotential. The utility then expects an input card after 
&inputpp consisting of the number of awfn.data files supplied (in this 
case 3) and then their names. The files are searched sequentially so the 
first s wavefunction found will be used for the s projector, first p for 
the p projector and so on.


A note on the radial grid
-------------------------
The utility currently performs no interpolation and attempts to use the 
same radial grid as the original pseudopotential. It therefore assumes 
that the grid will be of the standard form used by Trail and Needs.

If this is not the case the flag tn_grid=.false. can be set in the input 
file. The standard logarithmic form, r(i)=exp(xmin + i*dx) / Z is then 
assumed. Values for xmin and dx can also be specified in the input file in 
the usual way.

If interpolation from a different non-standard grid is required then the 
current recommended route is to use the casino2gon utility supplied with 
the CASINO distribution. This produces the older GON format that is 
(currently) still read by PWscf.


Ghost states
------------

The Kleinman-Bylander form can unfortunately introduce ghost states into 
some calculations. If this does occur we recommend that the 
pseudopotential is re-converted using a different local channel. The local 
channel can be specified in the original CASINO pp.data file and is read 
in automatically by casino2upf.x .

===========
up2casino.x
===========

This utility takes a standard UPF pseudopotential from standard input and 
writes a CASINO tabulated pseudopotential file to standard output. Any 
errors are communicated via stderr.

Usage:
	
	./up2casino.x < pseudo.UPF > pp.data

Care must be taken that the resulting pseudopotential file spec fies the 
required local channel. Also this utility should only be used with 
norm-conserving pseudopotentials.