forked from dftbplus/dftbplus
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove blocking of constraints with transport
Add test case for open boundary + constraints
- Loading branch information
1 parent
00b31fb
commit 919909d
Showing
8 changed files
with
202 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
31 C | ||
H | ||
20 1 13.0000 0.000000 0.000000 | ||
21 1 14.00000 0.000000 0.000000 | ||
22 1 15.0000 0.000000 0.000000 | ||
23 1 16.0000 0.000000 0.000000 | ||
24 1 17.0000 0.000000 0.000000 | ||
25 1 18.0000 0.000000 0.000000 | ||
26 1 19.00000 0.000000 0.000000 | ||
27 1 20.0000 0.000000 0.000000 | ||
28 1 21.0000 0.000000 0.000000 | ||
29 1 22.0000 0.000000 0.000000 | ||
30 1 23.0000 0.000000 0.000000 | ||
31 1 24.0000 0.000000 0.000000 | ||
32 1 25.0000 0.000000 0.000000 | ||
33 1 26.0000 0.000000 0.000000 | ||
34 1 27.0000 0.000000 0.000000 | ||
35 1 28.0000 0.000000 0.000000 | ||
36 1 29.00000 0.000000 0.000000 | ||
37 1 30.0000 0.000000 0.000000 | ||
38 1 31.0000 0.000000 0.000000 | ||
39 1 32.0000 0.000000 0.000000 | ||
40 1 33.0000 0.000000 0.000000 | ||
19 1 12.0000 0.000000 0.000000 | ||
18 1 11.0000 0.000000 0.000000 | ||
17 1 10.0000 0.000000 0.000000 | ||
16 1 9.00000 0.000000 0.000000 | ||
15 1 8.0000 0.000000 0.000000 | ||
14 1 7.0000 0.000000 0.000000 | ||
13 1 6.0000 0.000000 0.000000 | ||
12 1 5.0000 0.000000 0.000000 | ||
11 1 4.00000 0.000000 0.000000 | ||
10 1 3.00000 0.000000 0.000000 |
50 changes: 50 additions & 0 deletions
50
test/app/dftb+/elecconstraints/H-chain_transport/_autotest.tag
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
orbital_charges :real:2:1,31 | ||
0.106970613494445E+001 0.982767767519546E+000 0.107096873653657E+001 | ||
0.948070923038914E+000 0.120442246666626E+001 0.499991859788723E+000 | ||
0.123351691065948E+001 0.938715997954630E+000 0.106811595346809E+001 | ||
0.955290631674371E+000 0.102843255893214E+001 0.100000000011919E+001 | ||
0.999999999880814E+000 0.100000000011919E+001 0.999999999880813E+000 | ||
0.100000000011919E+001 0.999999999880813E+000 0.100000000011919E+001 | ||
0.999999999880814E+000 0.100000000011919E+001 0.999999999880814E+000 | ||
0.999999999965735E+000 0.100000000003426E+001 0.999999999965735E+000 | ||
0.100000000003426E+001 0.999999999965735E+000 0.100000000003426E+001 | ||
0.999999999965736E+000 0.100000000003426E+001 0.999999999965735E+000 | ||
0.100000000003426E+001 | ||
total_energy :real:0: | ||
-0.584437823730094E+001 | ||
end_coords :real:2:3,31 | ||
0.245664378515260E+002 0.000000000000000E+000 0.000000000000000E+000 | ||
0.264561638401049E+002 0.000000000000000E+000 0.000000000000000E+000 | ||
0.283458898286838E+002 0.000000000000000E+000 0.000000000000000E+000 | ||
0.302356158172628E+002 0.000000000000000E+000 0.000000000000000E+000 | ||
0.321253418058417E+002 0.000000000000000E+000 0.000000000000000E+000 | ||
0.340150677944206E+002 0.000000000000000E+000 0.000000000000000E+000 | ||
0.359047937829995E+002 0.000000000000000E+000 0.000000000000000E+000 | ||
0.377945197715785E+002 0.000000000000000E+000 0.000000000000000E+000 | ||
0.396842457601574E+002 0.000000000000000E+000 0.000000000000000E+000 | ||
0.415739717487363E+002 0.000000000000000E+000 0.000000000000000E+000 | ||
0.434636977373152E+002 0.000000000000000E+000 0.000000000000000E+000 | ||
0.453534237258942E+002 0.000000000000000E+000 0.000000000000000E+000 | ||
0.472431497144731E+002 0.000000000000000E+000 0.000000000000000E+000 | ||
0.491328757030520E+002 0.000000000000000E+000 0.000000000000000E+000 | ||
0.510226016916309E+002 0.000000000000000E+000 0.000000000000000E+000 | ||
0.529123276802098E+002 0.000000000000000E+000 0.000000000000000E+000 | ||
0.548020536687888E+002 0.000000000000000E+000 0.000000000000000E+000 | ||
0.566917796573677E+002 0.000000000000000E+000 0.000000000000000E+000 | ||
0.585815056459466E+002 0.000000000000000E+000 0.000000000000000E+000 | ||
0.604712316345255E+002 0.000000000000000E+000 0.000000000000000E+000 | ||
0.623609576231045E+002 0.000000000000000E+000 0.000000000000000E+000 | ||
0.226767118629471E+002 0.000000000000000E+000 0.000000000000000E+000 | ||
0.207869858743682E+002 0.000000000000000E+000 0.000000000000000E+000 | ||
0.188972598857892E+002 0.000000000000000E+000 0.000000000000000E+000 | ||
0.170075338972103E+002 0.000000000000000E+000 0.000000000000000E+000 | ||
0.151178079086314E+002 0.000000000000000E+000 0.000000000000000E+000 | ||
0.132280819200525E+002 0.000000000000000E+000 0.000000000000000E+000 | ||
0.113383559314735E+002 0.000000000000000E+000 0.000000000000000E+000 | ||
0.944862994289462E+001 0.000000000000000E+000 0.000000000000000E+000 | ||
0.755890395431569E+001 0.000000000000000E+000 0.000000000000000E+000 | ||
0.566917796573677E+001 0.000000000000000E+000 0.000000000000000E+000 | ||
dipole_moments :real:2:3,1 | ||
0.594226675693738E+000 0.000000000000000E+000 0.000000000000000E+000 | ||
scaled_dipole :real:2:3,1 | ||
0.594226675693738E+000 0.000000000000000E+000 0.000000000000000E+000 |
88 changes: 88 additions & 0 deletions
88
test/app/dftb+/elecconstraints/H-chain_transport/dftb_in.hsd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
geometry = genformat { | ||
<<< "30h.gen" | ||
} | ||
|
||
Transport { | ||
Device { | ||
AtomRange = 1 11 | ||
} | ||
Contact { | ||
Id = "Source" | ||
AtomRange = 12 21 | ||
FermiLevel [eV] = -6.4926472360850 | ||
Potential [eV] = 0.0 | ||
} | ||
Contact { | ||
Id = "Drain" | ||
AtomRange = 22 31 | ||
FermiLevel [eV] = -6.4926472360850 | ||
Potential [eV] = 2.0 | ||
} | ||
ReadBinaryContact = No | ||
} | ||
|
||
Hamiltonian = Dftb { | ||
Scc = yes | ||
SccTolerance = 1E-6 | ||
MaxAngularMomentum = { | ||
H = s | ||
} | ||
|
||
Electrostatics = Poisson { | ||
Poissonbox [Angstrom] = 20.0 20.0 20.0 | ||
MinimalGrid [Angstrom] = 0.4 0.4 0.4 | ||
AtomDensityCutoff [Angstrom] = 7.05 | ||
CutoffCheck = No | ||
SavePotential = Yes | ||
PoissonAccuracy = 1e-5 | ||
BuildBulkPotential = Yes | ||
} | ||
|
||
SlaterKosterFiles = { | ||
Prefix = {slakos/origin/transtest/} | ||
H-H = "H-H-noS.skf" | ||
} | ||
|
||
Solver = GreensFunction{ | ||
Verbosity = 51 | ||
RealAxisPoints = 100 | ||
EnclosedPoles = 3 | ||
} | ||
|
||
ElectronicConstraints { | ||
Regions { | ||
Atoms { | ||
Domain = 6 | ||
Population = 0.5 | ||
} | ||
Atoms { | ||
Domain = 1:11 | ||
Population = 11 | ||
} | ||
} | ||
MaxConstrIterations = 10 | ||
ConstrTolerance = 1.0E-5 | ||
} | ||
} | ||
|
||
Analysis{ | ||
TunnelingAndDOS{ | ||
EnergyRange [eV] = -0.0 0.0 | ||
EnergyStep [eV] = 0.02 | ||
} | ||
} | ||
|
||
Parallel = { | ||
Blacs{BlockSize = 4} | ||
# Allow OMP threads explicitely to test for hybrid parallelisation with | ||
# MPI-binary. (Check the manual before using this in production runs!) | ||
UseOmpThreads = Yes | ||
} | ||
|
||
Options = { | ||
WriteAutotesttag = yes | ||
} | ||
|
||
ParserOptions = { | ||
ParserVersion = 14 | ||
} |
11 changes: 11 additions & 0 deletions
11
test/app/dftb+/elecconstraints/H-chain_transport/shiftcont_drain.dat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
10 1 1 1 | ||
1 1 1 1 1 1 | ||
1 1 1 1 | ||
0.000000000000000E+000 0.000000000000000E+000 0.000000000000000E+000 | ||
0.000000000000000E+000 0.000000000000000E+000 0.000000000000000E+000 | ||
0.000000000000000E+000 0.000000000000000E+000 0.000000000000000E+000 | ||
0.000000000000000E+000 | ||
0.999999999965735 1.00000000003426 0.999999999965735 | ||
1.00000000003426 0.999999999965735 1.00000000003426 | ||
0.999999999965736 1.00000000003426 0.999999999965735 | ||
1.00000000003426 |
11 changes: 11 additions & 0 deletions
11
test/app/dftb+/elecconstraints/H-chain_transport/shiftcont_source.dat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
10 1 1 1 | ||
1 1 1 1 1 1 | ||
1 1 1 1 | ||
0.000000000000000E+000 0.000000000000000E+000 0.000000000000000E+000 | ||
0.000000000000000E+000 0.000000000000000E+000 0.000000000000000E+000 | ||
0.000000000000000E+000 0.000000000000000E+000 0.000000000000000E+000 | ||
0.000000000000000E+000 | ||
1.00000000011919 0.999999999880814 1.00000000011919 | ||
0.999999999880813 1.00000000011919 0.999999999880813 | ||
1.00000000011919 0.999999999880814 1.00000000011919 | ||
0.999999999880814 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters