Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
usadelndsoc
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
JYU Condensed Matter Theory
usadelndsoc
Commits
8dc4d1d4
Commit
8dc4d1d4
authored
10 months ago
by
patavirt
Browse files
Options
Downloads
Patches
Plain Diff
Documentation
parent
e281ac32
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
usadelndsoc/core.py
+19
-12
19 additions, 12 deletions
usadelndsoc/core.py
with
19 additions
and
12 deletions
usadelndsoc/core.py
+
19
−
12
View file @
8dc4d1d4
...
...
@@ -85,14 +85,14 @@ class Core:
@property
def
x
(
self
):
"""
x-coordinates of the 2D cell grid
x-coordinates of the 2D cell grid
. Not modifiable.
"""
return
np
.
linspace
(
-
self
.
Lx
/
2
,
self
.
Lx
/
2
,
self
.
_shape
[
0
])
@property
def
y
(
self
):
"""
y-coordinates of the 2D cell grid
y-coordinates of the 2D cell grid
. Not modifiable.
"""
return
np
.
linspace
(
-
self
.
Ly
/
2
,
self
.
Ly
/
2
,
self
.
_shape
[
1
])
...
...
@@ -122,31 +122,38 @@ class Core:
U
=
_action_property
(
"
U
"
,
doc
=
"""
Wilson link matrices. Array, shape (nx, ny, 4(direction), 4, 4).
doc
=
"""
Wilson link matrices.
Modifiable.
Array, shape (nx, ny, 4(direction), 4, 4).
The direction index is one of RIGHT(0)/UP(1)/LEFT(2)/DOWN(3).
"""
,
)
Omega
=
_action_property
(
"
Omega
"
,
doc
=
"
Local energy matrix. Array, shape (nx, ny, 4, 4).
"
"
Omega
"
,
doc
=
"
Local energy matrix.
Modifiable.
Array, shape (nx, ny, 4, 4).
"
)
mask
=
_action_property
(
"
mask
"
,
doc
=
"""
Material mask. Array of int, shape (nx, ny)
"""
"
mask
"
,
doc
=
"""
Material mask.
Modifiable.
Array of int, shape (nx, ny)
"""
)
omega
=
_action_property
(
"
omega
"
,
freeze
=
False
,
doc
=
"""
Local energy matrix. Array of complex, shape (nx, nx, 4, 4)
"""
,
doc
=
"""
Local energy matrix.
Modifiable.
Array of complex, shape (nx, nx, 4, 4)
"""
,
)
hess_computed
=
_action_property
(
"
hess_computed
"
)
shape
=
property
(
fget
=
lambda
self
:
self
.
_shape
,
doc
=
"""
Array size of space, (nx, ny)
"""
)
Lx
=
_action_property
(
"
Lx
"
,
doc
=
"""
Total length of system in x-direction, float.
"""
)
Ly
=
_action_property
(
"
Ly
"
,
doc
=
"""
Total length of system in y-direction, float.
"""
)
Lx
=
_action_property
(
"
Lx
"
,
doc
=
"""
Total length of system in x-direction. Modifiable. (float)
"""
)
Ly
=
_action_property
(
"
Ly
"
,
doc
=
"""
Total length of system in y-direction. Modifiable. (float)
"""
)
D
=
_action_property
(
"
D
"
,
doc
=
"""
Second gradient term prefactor (diffusion constant), float.
"""
"
D
"
,
doc
=
"""
Second gradient term prefactor (diffusion constant). Modifiable. (float)
"""
,
)
eta
=
_action_property
(
"
eta
"
,
doc
=
"""
Hall term prefactor constant. Modifiable. (float)
"""
)
eta
=
_action_property
(
"
eta
"
,
doc
=
"""
Hall term prefactor constant, float.
"""
)
@property
def
hess_computed
(
self
):
...
...
@@ -162,7 +169,7 @@ class Core:
@property
def
Ux
(
self
):
"""
Modifiable view to
Wilson link matrix array, for RIGHT.
"""
Wilson link matrix array, for RIGHT.
Modifiable view.
The U for links to the LEFT is always the inverse of this.
"""
...
...
@@ -170,7 +177,7 @@ class Core:
@property
def
Uy
(
self
):
"""
Modifiable view to
Wilson link matrix array, for UP.
"""
Wilson link matrix array, for UP.
Modifiable view.
The U for links to DOWN is always the inverse of this.
"""
...
...
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