Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
K
kwant
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Joseph Weston
kwant
Commits
10defdf8
Commit
10defdf8
authored
12 years ago
by
Michael Wimmer
Committed by
Christoph Groth
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
improve BlockResult docstring
parent
f6bd9cf1
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
kwant/solvers/common.py
+23
-11
23 additions, 11 deletions
kwant/solvers/common.py
with
23 additions
and
11 deletions
kwant/solvers/common.py
+
23
−
11
View file @
10defdf8
...
...
@@ -443,10 +443,22 @@ class WaveFunc(object):
class
BlockResult
(
object
):
"""
Solution of a transport problem, subblock of retarded Green
'
s function.
In addition to direct access to `data` and `lead_info`,
this class also supports a higher level interface via its methods.
Solution of a transport problem, subblock of retarded Green
'
s function
or scattering matrix.
Transport properties can be easily accessed using the
`~BlockResult.transmission` method (don
'
t be fooled by the name,
it can also compute reflection, which is just transmission from one
lead back into the same lead.)
`BlockResult` however also allows for a more direct access to the result:
The data stored in `BlockResult` is either a real-space Green
'
s
function (e.g. if ``force_realspace=True`` in
`~kwant.solvers.default.solve`) or a scattering matrix with respect to
lead modes. The details of this data can be directly accessed through
the instance variables `data` and `lead_info`. Subblocks of data
corresponding to particular leads are conveniently obtained by
`~BlockResult.submatrix`.
Instance Variables
------------------
...
...
@@ -454,13 +466,13 @@ class BlockResult(object):
a matrix containing all the requested matrix elements of Green
'
s
function.
lead_info : list of data
a list with output of `kwant.physics.modes` for each lead
defined as a
builder, and self-energy for each lead defined as
self-energy term.
out_leads : list of integers
in_leads : list of integers
indices of the leads where current is extracted (out) or injected
(in).
Only those are listed for which BlockResult contains the
calculated
result.
a list with output of `kwant.physics.modes` for each lead
defined as a
builder, and self-energy for each lead defined as
self-energy term.
out_leads,
in_leads : list of integers
indices of the leads where current is extracted (out) or injected
(in).
Only those are listed for which BlockResult contains the
calculated
result.
"""
def
__init__
(
self
,
data
,
lead_info
,
out_leads
,
in_leads
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment