3
0
mirror of https://github.com/triqs/dft_tools synced 2024-11-13 01:23:50 +01:00
Commit Graph

38 Commits

Author SHA1 Message Date
Alexander Hampel
295b7f278e fix: fix f2py command for numpy ver >1.22 2023-01-23 15:57:53 -05:00
Alexander Hampel
095f8a0b6a fix: np.int / np.float / np. complex are depracted (np v1.20) / removed (np v1.24) 2023-01-23 15:40:57 -05:00
AlynJ
c202286341
Elk Transport code and subsequent updates (#229)
* elk-transport
* minor updates
* specify explicitly fortran compiler and python exe in CMAKE

Co-authored-by: Alexander Hampel <ahampel@flatironinstitute.org>
2023-01-04 17:16:57 -05:00
AlynJ
ce4aed3551
elk-interface bug fixes (#228)
updated the Elk interface to fix some minor bugs which arose for certain systems with equivalent atoms. I've also included new tests for this interface and collated all of these interface tests in the "test/python/elk" subdirectory.
2022-11-10 11:11:28 -05:00
mmerkel
8de30d67fe Fix for wannier converter: reordering of orbital/spin order only necessary for vasp 5 2022-10-19 11:28:33 +02:00
Harrison LaBollita
7517add910 transport kmesh check 2022-10-10 15:41:51 -04:00
Alexander Hampel
51d4ef2a27 fix outstanding issues and formatting 2022-10-05 16:29:01 -04:00
Alexander Hampel
d36467402e remove debug output, revert to pre-PR 2022-10-05 16:29:01 -04:00
Dario Fiore Mosca
39f6af050c Non-collinear projectors VASP.6. 2022-10-05 16:29:01 -04:00
Alexander Hampel
fd90cc9c63 BUGFIX: changed character in QE output for reading occupations with
Co-authored-by: alberto-carta
2022-04-15 10:55:16 -04:00
mmerkel
0b72ad7fce Updated W90 converter: bug fixes for SOC, code restructured, more tests for add_lambda and bloch_basis 2022-04-15 10:51:37 -04:00
Alexander Hampel
c4db7e6867 update documentation to use autosummary
* remove manual module reference files
* move hdf5 structure reference to guide
* fix various doc strings
* remove very old update_archive python script for triqs 1.2
* refine main documentation.rst file -> better overview
2022-03-02 14:13:12 -05:00
acarta
f30d14fbd1 BUGFIX: changed character in QE output for reading occupations with
negative k vector
2022-03-01 14:51:37 +01:00
phibeck
2e8d66ab5c Previous commit still not correct for multiple impurities. For now restrict to just a single impurity. 2021-12-20 08:14:36 -05:00
phibeck
9a33958161 Bugfix in Wannier90COnverter such that add_lambda can be used for multiple impurities 2021-12-17 14:39:25 -05:00
phibeck
a995f114ae This fix ensures than in the bloch_basis=False mode the complex diagonal components of the Hamiltonian are zero. If this is not checked it can lead to instabilities in the inversion for G_latt, which is a problem for ReFreq Green's functions 2021-12-15 17:35:39 -05:00
Alyn James
e2c038ae8a elk interface bug fixs 2021-12-15 12:57:57 +00:00
phibeck
e06653d7bb This fix in the Wannier90Converter makes the function find_rot_mat
safer to use in case there are errors in finding the correct mapping.
The converter will now abort if the agreement in mapping is below a
user-definable threshold.
2021-11-15 15:20:08 -05:00
phibeck
2d6f66cbb8 Update Documentation of W90 Converter 2021-09-28 14:32:30 -04:00
phibeck
17ac9209e3 Bugfix if using bloch_basis = True and multiple inequivalent shells 2021-09-28 14:32:29 -04:00
Alexander Hampel
a1b5421864 fix for python binary, c order for arrays, and NiO tutorial 2021-08-16 12:51:55 -04:00
H. L. Nourse
75a7749180 fixed normalization of kwghts to allow symmetries - very tunnel visioned and haven't checked anything else 2021-06-22 14:44:17 +10:00
Nils Wentzell
3648fd74e8 Automated porting to triqs + meshes + nda 2021-05-26 17:59:50 -04:00
Sophie Beck
3122ab2a83
Updates of Wannier90Converter: (#169)
Added:

substantial speed-up using MPI for Fourier transform
option to add a local spin-orbit term to t2g local Hamiltonian.
writing dft_fermi_energy to group 'dft_misc_input'
writing kpt_basis to group 'dft_input' if bloch_basis=True
writing kpts_cart to group 'dft_misc_input' if bloch_basis=True
Minor bugfixes:

bug can be caused by rounding of outer window limits if bloch_basis and disentangle =True, made error message clearer
2021-05-06 08:37:15 -04:00
sobeck
aeaebb04ae Revision of Wannier90Converter: 1) write the Hamiltonian in Bloch space
for charge self-consistent calculations, and 2) spin-orbit coupling

if bloch_basis = True:
* if "seedname_u.dat" (and in case of disentanglement "seedname_u_dis.dat")
  present, write hopping in Bloch basis
* "proj_mat" transforming from Bloch to orbital space
* diagonal hoppings are directly read from "seedname.eig"
* fermi weights and band_window of Wannier Hamiltonian are read from DFT
  output and "seedname.nnkp", written into new subgroup "dft_misc_input"
* automatic calculation of "density_required"
* implemented for Quantum Espresso (read from "seedname.nscf.out" if
  verbosity = 'high') and VASP (read from "OUTCAR"/"LOCPROJ")

* spin-orbit coupling SO = 1 implemented
* substitute k_mesh and bz_weights with kpts and kpt_weights,
  respectively (previous names kept for compatibility)
* updated tests
2021-02-05 14:41:59 -05:00
Alexander Hampel
93cf096932 changed fermi weights from np array complex to float in accordance with h5 structure 2020-11-24 16:35:27 -05:00
AlynJ
ad8c4e75fe
Elk converter (#151)
Adding Elk-TRIQS interface (first iteration) 

This interface reads in Elk's ground-state files / projectors generated by a specific Elk interface code version (https://github.com/AlynJ/Elk_interface-TRIQS). The interface can perform charge-self consistent DFT+DMFT calculations using the aforementioned Elk code version, including spin orbit-coupling. Hence, this is the first open source interfaced DFT code to triqs with FCSC support. 

The commit includes detailed documentation and tutorials on how to use this interface. Moreover, further new post-processing routines are added for Fermi surface plots and spectral functions (A(w)) from the elk inputs.

The interface was tested by A. James and A. Hampel. However, this is the first iteration of the interface and should be used with care. Please report all bugs.

List of changes:
---------------
- sumk.py: added cacluation of charge density correction for elk (dm_type='elk').
- sumk_dft_tools.py: added new post-processing functions to calculate the Fermi surface and A(w) from the Elk inputs.
- documentation and tutorial files amended for this interface.
- added python tests for the Elk converter.
2020-10-09 08:35:28 -04:00
Alexander Hampel
d61ce6eaae fix for bug in wannier90 converter
* the Fermi level given in the inp file was ignored
* added a new line reporting which energy is subtracted from mu
2020-08-25 08:22:45 -04:00
sobeck
393753dc96 typo in wannier90.py 2020-08-17 19:31:32 +02:00
mmerkel
c6385b16d4 Bug fix: changed use_rotations from bool to int 2020-08-17 19:31:32 +02:00
mmerkel
52d2159c18 Small bugfixes 2020-08-17 19:31:32 +02:00
mmerkel
4ebfd15803 Added Gabriele's additional checks 2020-08-17 19:31:32 +02:00
mmerkel
19a2e55183 Added choice of different bases: hloc_diag, wannier (already implemented previously), none 2020-08-17 19:31:32 +02:00
mmerkel
aacb8847ac Clean-up: float comparison tolerances and few minor things 2020-08-17 19:31:32 +02:00
Alexander Hampel
af8cde628e small adjustments to Vasp converter (closes #146)
* adding kpts_basis, kpts, and kpt_weights to h5 dft_input
* read these properties as optional arguments in Sumk_dft.py
* change accordingly the ref h5 files for vasp converter test
* soon all converters are demanted to store those properties
* bz_weights should then be replaced by kpt_weights
* closes PR #146
2020-08-03 12:39:34 +02:00
Alexander Hampel
a1209f8a53 renamed converters from app_converter.py to app.py
* adapted all occurences of the converter script file names including
  the doc files
* fixed one failing test: Py_basis_transformation.py
2020-06-23 11:13:00 +02:00
Alexander Hampel
f27399758e Merge branch 'unstable' into py3
merged unstable into py3

* include the major changes of a94f8ed942
  of blockstructure.py
* adapted all code to python 3
* fixed all tests
2020-06-23 10:53:52 +02:00
Alexander Hampel
11d394fd5b synchronize dfttools with app4triqs structure
* moved the plovasp C++ code to c++/triqs_dft_tools/converters/vasp
* added global header triqs_dft_tools/triqs_dft_tools.hpp
* python dir based on single cmakelist file
* registered C++ tests for plovasp
* corrected imports for py3 tests for plovasp
* corrected block order in sigma_from_file and srvo3_Gloc
* exchanged ref files for sigma_from_file, srvo3_Gloc, SrVO3.ref.h5
* moved vasp converter bash scripts from dir shells to bin dir
2020-06-10 17:45:53 +02:00