-
Notifications
You must be signed in to change notification settings - Fork 1
/
dlgschrod.py
144 lines (138 loc) · 8.63 KB
/
dlgschrod.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'dlgschrod.ui'
#
# Created by: PyQt5 UI code generator 5.10.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_DlgSch(object):
def setupUi(self, DlgSch):
DlgSch.setObjectName("DlgSch")
DlgSch.resize(395, 393)
font = QtGui.QFont()
font.setPointSize(13)
DlgSch.setFont(font)
self.buttonBox = QtWidgets.QDialogButtonBox(DlgSch)
self.buttonBox.setGeometry(QtCore.QRect(60, 320, 241, 61))
self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
self.buttonBox.setObjectName("buttonBox")
self.groupBoxPos = QtWidgets.QGroupBox(DlgSch)
self.groupBoxPos.setGeometry(QtCore.QRect(20, 20, 191, 131))
self.groupBoxPos.setObjectName("groupBoxPos")
self.label_3 = QtWidgets.QLabel(self.groupBoxPos)
self.label_3.setGeometry(QtCore.QRect(30, 90, 21, 17))
self.label_3.setObjectName("label_3")
self.label_2 = QtWidgets.QLabel(self.groupBoxPos)
self.label_2.setGeometry(QtCore.QRect(30, 60, 21, 17))
self.label_2.setObjectName("label_2")
self.label = QtWidgets.QLabel(self.groupBoxPos)
self.label.setGeometry(QtCore.QRect(30, 30, 21, 17))
self.label.setObjectName("label")
self.txposX = QtWidgets.QLineEdit(self.groupBoxPos)
self.txposX.setGeometry(QtCore.QRect(60, 30, 61, 25))
self.txposX.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.txposX.setObjectName("txposX")
self.txposY = QtWidgets.QLineEdit(self.groupBoxPos)
self.txposY.setGeometry(QtCore.QRect(60, 60, 61, 25))
self.txposY.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.txposY.setObjectName("txposY")
self.txposZ = QtWidgets.QLineEdit(self.groupBoxPos)
self.txposZ.setGeometry(QtCore.QRect(60, 90, 61, 25))
self.txposZ.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.txposZ.setObjectName("txposZ")
self.groupBox_K = QtWidgets.QGroupBox(DlgSch)
self.groupBox_K.setGeometry(QtCore.QRect(220, 20, 161, 131))
self.groupBox_K.setObjectName("groupBox_K")
self.label_4 = QtWidgets.QLabel(self.groupBox_K)
self.label_4.setGeometry(QtCore.QRect(30, 90, 21, 17))
self.label_4.setObjectName("label_4")
self.label_5 = QtWidgets.QLabel(self.groupBox_K)
self.label_5.setGeometry(QtCore.QRect(30, 60, 31, 20))
self.label_5.setObjectName("label_5")
self.label_6 = QtWidgets.QLabel(self.groupBox_K)
self.label_6.setGeometry(QtCore.QRect(30, 30, 31, 20))
self.label_6.setObjectName("label_6")
self.txkX = QtWidgets.QLineEdit(self.groupBox_K)
self.txkX.setGeometry(QtCore.QRect(60, 30, 61, 25))
self.txkX.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.txkX.setObjectName("txkX")
self.txkY = QtWidgets.QLineEdit(self.groupBox_K)
self.txkY.setGeometry(QtCore.QRect(60, 60, 61, 25))
self.txkY.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.txkY.setObjectName("txkY")
self.txkZ = QtWidgets.QLineEdit(self.groupBox_K)
self.txkZ.setGeometry(QtCore.QRect(60, 90, 61, 25))
self.txkZ.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.txkZ.setObjectName("txkZ")
self.groupBoxSpin = QtWidgets.QGroupBox(DlgSch)
self.groupBoxSpin.setGeometry(QtCore.QRect(50, 160, 271, 91))
self.groupBoxSpin.setObjectName("groupBoxSpin")
self.label_7 = QtWidgets.QLabel(self.groupBoxSpin)
self.label_7.setGeometry(QtCore.QRect(40, 30, 21, 17))
self.label_7.setObjectName("label_7")
self.txSpinX = QtWidgets.QLineEdit(self.groupBoxSpin)
self.txSpinX.setGeometry(QtCore.QRect(20, 50, 61, 25))
self.txSpinX.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.txSpinX.setObjectName("txSpinX")
self.label_8 = QtWidgets.QLabel(self.groupBoxSpin)
self.label_8.setGeometry(QtCore.QRect(120, 30, 21, 17))
self.label_8.setObjectName("label_8")
self.txSpinY = QtWidgets.QLineEdit(self.groupBoxSpin)
self.txSpinY.setGeometry(QtCore.QRect(100, 50, 61, 25))
self.txSpinY.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.txSpinY.setObjectName("txSpinY")
self.txSpinZ = QtWidgets.QLineEdit(self.groupBoxSpin)
self.txSpinZ.setGeometry(QtCore.QRect(170, 50, 61, 25))
self.txSpinZ.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.txSpinZ.setObjectName("txSpinZ")
self.label_9 = QtWidgets.QLabel(self.groupBoxSpin)
self.label_9.setGeometry(QtCore.QRect(190, 30, 21, 17))
self.label_9.setObjectName("label_9")
self.label_12 = QtWidgets.QLabel(DlgSch)
self.label_12.setGeometry(QtCore.QRect(50, 280, 181, 31))
self.label_12.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.label_12.setObjectName("label_12")
self.txMaxSteps = QtWidgets.QLineEdit(DlgSch)
self.txMaxSteps.setGeometry(QtCore.QRect(230, 280, 61, 25))
self.txMaxSteps.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.txMaxSteps.setObjectName("txMaxSteps")
self.retranslateUi(DlgSch)
self.buttonBox.accepted.connect(DlgSch.accept)
self.buttonBox.rejected.connect(DlgSch.reject)
QtCore.QMetaObject.connectSlotsByName(DlgSch)
def retranslateUi(self, DlgSch):
_translate = QtCore.QCoreApplication.translate
DlgSch.setWindowTitle(_translate("DlgSch", "Schroduinger options"))
self.groupBoxPos.setTitle(_translate("DlgSch", "inital gaussian position"))
self.label_3.setText(_translate("DlgSch", "Z"))
self.label_2.setText(_translate("DlgSch", "Y"))
self.label.setText(_translate("DlgSch", "X"))
self.txposX.setToolTip(_translate("DlgSch", "<html><head/><body><p>from -0.8 to 0.8</p></body></html>"))
self.txposX.setText(_translate("DlgSch", "-0.7"))
self.txposY.setToolTip(_translate("DlgSch", "<html><head/><body><p>from -0.8 to 0.8</p></body></html>"))
self.txposY.setText(_translate("DlgSch", "0.0"))
self.txposZ.setToolTip(_translate("DlgSch", "<html><head/><body><p>from -0.8 to 0.8</p></body></html>"))
self.txposZ.setText(_translate("DlgSch", "0.0"))
self.groupBox_K.setToolTip(_translate("DlgSch", "<html><head/><body><p>spatial frequency with respect to spatial extent of the simulation</p><p>p = k * np.pi / L</p></body></html>"))
self.groupBox_K.setTitle(_translate("DlgSch", "K (gaussian speed)"))
self.label_4.setText(_translate("DlgSch", "k Z"))
self.label_5.setText(_translate("DlgSch", "k Y"))
self.label_6.setText(_translate("DlgSch", "k X"))
self.txkX.setText(_translate("DlgSch", "20"))
self.txkY.setText(_translate("DlgSch", "0"))
self.txkZ.setText(_translate("DlgSch", "0"))
self.groupBoxSpin.setToolTip(_translate("DlgSch", "<html><head/><body><p>dir vector for spin that will be used to interact with magnetic field. WIll be automatically normalized</p></body></html>"))
self.groupBoxSpin.setTitle(_translate("DlgSch", "initial Spin in Bloch coordinates"))
self.label_7.setText(_translate("DlgSch", "X"))
self.txSpinX.setToolTip(_translate("DlgSch", "<html><head/><body><p>X dir vector </p><p>from -1 to 1</p></body></html>"))
self.txSpinX.setText(_translate("DlgSch", "0"))
self.label_8.setText(_translate("DlgSch", "Y"))
self.txSpinY.setToolTip(_translate("DlgSch", "<html><head/><body><p>X dir vector </p><p>from -1 to 1</p></body></html>"))
self.txSpinY.setText(_translate("DlgSch", "0"))
self.txSpinZ.setToolTip(_translate("DlgSch", "<html><head/><body><p>X dir vector </p><p>from -1 to 1</p></body></html>"))
self.txSpinZ.setText(_translate("DlgSch", "1"))
self.label_9.setText(_translate("DlgSch", "Z"))
self.label_12.setText(_translate("DlgSch", "max animation frames "))
self.txMaxSteps.setToolTip(_translate("DlgSch", "<html><head/><body><p>max numer of frames animation ( you can stop before )</p></body></html>"))
self.txMaxSteps.setText(_translate("DlgSch", "150"))