Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Periodic contacts #1301

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

bhourahine
Copy link
Member

@bhourahine bhourahine commented Aug 13, 2023

Fixes transport calculation periodic geometries

  • Correct lattice points for omitted directions
  • Correct coordinate folding for ommitted directions
  • Pseudo-inversion for sub-sets of directions
  • Correct the test for open boundaries surrounding all periodic directions
  • Boundary condition structure updated for contact information
  • Identify contact directions
  • Investigate graphene_x repeated geometry -- possibly resolved
  • Consistent use of correct inverse for lattice vectors with contacts present
  • Printing option for extended coords array
  • Fix degeneracy in coupled perturbed routines

@bhourahine bhourahine added bug library: negf Related to libnegf external dependency (transport) labels Aug 13, 2023
@codecov
Copy link

codecov bot commented Aug 13, 2023

Codecov Report

Patch coverage: 85.00% and project coverage change: +0.01% 🎉

Comparison is base (9dd7790) 69.79% compared to head (08d121b) 69.81%.

❗ Current head 08d121b differs from pull request most recent head a821c5e. Consider uploading reports for the commit a821c5e to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1301      +/-   ##
==========================================
+ Coverage   69.79%   69.81%   +0.01%     
==========================================
  Files         227      228       +1     
  Lines       42514    42476      -38     
==========================================
- Hits        29672    29653      -19     
+ Misses      12842    12823      -19     
Files Changed Coverage Δ
src/dftbp/math/lapackroutines.F90 27.76% <ø> (+2.90%) ⬆️
src/dftbp/type/typegeometry.F90 55.55% <ø> (ø)
src/dftbp/dftbplus/main.F90 90.75% <66.66%> (-0.10%) ⬇️
src/dftbp/dftb/boundarycond.F90 46.06% <71.42%> (+6.38%) ⬆️
src/dftbp/dftbplus/initprogram.F90 82.64% <85.71%> (-0.08%) ⬇️
src/dftbp/dftbplus/parser.F90 77.81% <90.00%> (+0.06%) ⬆️
src/dftbp/transport/negfint.F90 57.75% <90.90%> (+1.15%) ⬆️
src/dftbp/dftbplus/oldcompat.F90 58.23% <91.66%> (+0.05%) ⬆️
src/dftbp/dftb/periodic.F90 98.51% <100.00%> (+<0.01%) ⬆️
src/dftbp/math/lapackderived.F90 100.00% <100.00%> (ø)
... and 1 more

... and 3 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bhourahine bhourahine marked this pull request as ready for review August 28, 2023 20:55
@bhourahine
Copy link
Member Author

Will deffer extending contacts to the contact distance to another PR.

Solve structure folding without inversion for lattice vectors. Contact
geometry aware periodic wrapping. Pseudo-inverse to solve folding.

Change folding to int not floor.

Lattice point generation and folding to unit cell now aware not to do
this in lattice directions parallel to contacts. Common routine for
lattice inverses. Also slight cleanup of helical case, as was
allocating redundant array.

Fixed test for periodicity when there are contacts parallel to all
lattice vectors.

Fix some comments in the lapack wrappers. Also some clean up for
routine variable comments

Recalculate regression cases where the geometry was seriously broken
(note, these may need re-checking later):
C-chain+U
C-chain+Uspin
C-chain_allSteps

The manifested as force failures in regression (with a truncated
contact on one side and an extended on on the other of the device).

Correct keyword for degeneracy in perturbation:
Change "Pertub" to "Perturb" and make it an absolute value instead of
scale for machine eps. Default now 1 nH

Recompute affected test, as states were split by larger than old
default of 128*eps.

Option to save extended coord() array to file.
@bhourahine bhourahine removed this from the 23.2 milestone Nov 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug library: negf Related to libnegf external dependency (transport)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant