3
0
mirror of https://github.com/triqs/dft_tools synced 2024-11-18 20:12:53 +01:00
Commit Graph

204 Commits

Author SHA1 Message Date
Alexander Hampel
37c3d984c6 fix: srvo3 transport test after DC PR 2023-03-23 13:52:35 -04:00
Alexander Hampel
c6e755ef07 refactor & fix: merge the two read functions and small fixes
fix: add asserts for spin calculations and disent
2023-03-23 12:57:15 -04:00
phibeck
d4ef98edfd test: correct broken tests and append new one 2023-03-23 12:26:22 -04:00
phibeck
345fd14a39 feat: optical prop with Wannier90 and WannierBerri
All existing transport features from SumkDFTTools are now integrated in sumk_dft_transport.py as functions.

    feat: new code = "wannier90"
    refactor: free functions instead of sum_k members

If code is chosen as wannier90:

    feat: compute transport function
    feat: compute OC in Wannier or Hamiltonian basis
    feat: compute intra- and interband contributions separately in OC
2023-03-23 12:24:38 -04:00
Alexander Hampel
45749529ec add calc_mu test and pep8 format 2023-03-21 09:34:49 -04:00
Alexander Hampel
88094c0f92 outsource calc_DC_from_density into util.py and cleanup 2023-03-21 09:34:49 -04:00
alberto-carta
0d25aefc73 Corrections for new calc_dc and calc_mu
* typos and subbed check in spin polarized calculations for quantum espresso with a warning when computing the deltaN
* fixed typos in comments
* removed legacy mode maintaining only compatibility layer and switched to old (<3.10) python syntax
* added target density output in mu finder for brent and newton, refactored tunit test for DC, changed some comments
2023-03-21 09:34:49 -04:00
aichhorn
161b9d9eb5 reverting previous commit, not compatible with TRIQS/unstable 2023-02-01 10:05:30 +01:00
aichhorn
e53a8c1c03 fixed call to h_int_slater in basis_transformation test 2023-02-01 08:44:19 +01: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
Alexander Hampel
f8153c2134 [fix] orb_names is deprecated in h_int_ methods 2022-11-18 17:14:05 -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
Alexander Hampel
97afc3061e fix misusage of GfImFreq in create_gf 2022-10-05 16:28:31 -04:00
Alexander Hampel
2497484626 start changelog for unstable and fix python test 2022-07-07 09:33:16 -04:00
Alexander Hampel
213016ee1c fix transport test, allow for parallel execution of tests 2022-04-20 11:36:10 -04:00
Alexander Hampel
a36f2fdc61 fix spaghettis function and update test 2022-04-20 11:36:10 -04:00
Jonathan Karp
1e7c66805f fix bugs and tests 2022-04-20 11:36:10 -04:00
mmerkel
a913c07592 Split wannier90 tests up 2022-04-19 17:03:49 +02: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
320b2d2dfd remove gf_struct_flatten function and replace with triqs version 2022-03-09 09:15:10 -05:00
Hermann Schnait
4c44dbe2af Remove tkinter import (don't know how this ended up in the code) 2022-03-09 10:07:10 +01:00
hschnait
507fe32308 Update Unit-Tests to new gfstruct 2022-03-08 18:50:17 +01:00
Alyn James
e2c038ae8a elk interface bug fixs 2021-12-15 12:57:57 +00:00
Jonathan Karp
3b9a9dab9c vectorize loop over frequencies in spaghettis 2021-10-13 17:37:33 -04:00
Jonathan Karp
baec3b2f31 vectorize loop over frequency in dos functions and add tests 2021-10-13 14:09:48 -04:00
Alexander Hampel
29c7c337b1 merge latest app4trqs skeleton changes 2021-09-17 14:24:22 -04:00
Nils Wentzell
1c6d29d6a3 [cmake] For ANALYZE_SOURCES=ON run cppcheck in c++20 mode 2021-06-07 14:20:10 -04:00
Alexander Hampel
342aa363d9 fixed tests to work with dev version of triqs 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
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
sobeck
6a104622d1 renamed w90 reference h5 archive 2020-08-17 19:31:32 +02:00
sobeck
765bb6b3cb added new test in w90_convert.py for rot_mat_type='hloc_diag' 2020-08-17 19:31:32 +02:00
mmerkel
52d2159c18 Small bugfixes 2020-08-17 19:31:32 +02:00
Nils Wentzell
056c421871 Fit tail explicitly in analyse_block_structure_from_gf2.py 2020-08-13 17:17:07 -04:00
Dylan Simon
1eabf19570 Revert "[jenkins] inject test failure to test email"
This reverts commit ff8124ea24.
2020-08-03 11:32:27 -04:00
Dylan Simon
ff8124ea24 [jenkins] inject test failure to test email 2020-08-03 11:25:11 -04: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
79a72fdd98 fixes CMakeLists from previous commit for running vasp tests 2020-08-03 12:25:08 +02:00
Alexander Hampel
7ce4316bbc fixed py tests for vasp converter not running, fixed test imports, rm plocar_io test (not used) 2020-08-03 12:17:16 +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
Nils Wentzell
d957772905 Merge remote-tracking branch 'app4triqs-remote/py3' into py3 2020-06-10 18:04:59 -04:00
Nils Wentzell
5156e45b5b [cmake] Make sure to use namespaced targets in c++ test dir 2020-06-10 17:25:03 -04:00
Nils Wentzell
97476c1a1f Replace remaing occurances of SrVO3.h5 with SrVO3.ref.h5 2020-06-10 12:48:43 -04:00
Alexander Hampel
f4112b3cca removed SrVO3 now SrVO3.ref.h5 and changed the test 2020-06-10 18:17:16 +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
Jonathan Karp
37e0cb83d4 unit test for the Fermi energy in the wannier90 converter 2020-05-31 21:04:35 -04:00