-
Notifications
You must be signed in to change notification settings - Fork 19
SOC (1e and 2e cases) #128
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
base: main
Are you sure you want to change the base?
Changes from all commits
ea10080
e1c5932
b0229db
eb8a9cf
2bf0b1c
dd01e55
3318034
2d55d85
caf376d
b3db100
2a9a824
b0e2a55
8b14a1e
e8e10a9
aea3f99
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -87,7 +87,27 @@ def compute_nac(mol): | |
| NAC(mol).nac() | ||
|
|
||
| def compute_soc(mol): | ||
| pass | ||
| sp = SinglePoint(mol) | ||
| ref_energy = sp.reference() # SCF один раз | ||
|
|
||
| mol.data.set_tdhf_multiplicity(1) | ||
| mol.singlet_energies = sp.excitation(ref_energy) | ||
|
|
||
| mol.data['OQP::td_singlet_energies'] = mol.data['OQP::td_energies'] | ||
| mol.data['OQP::td_bvec_mo_s'] = mol.data['OQP::td_bvec_mo'].copy() | ||
|
|
||
| mol.data.set_tdhf_multiplicity(3) | ||
| mol.triplet_energies = sp.excitation(ref_energy) | ||
|
|
||
| mol.data['OQP::td_triplet_energies'] = mol.data['OQP::td_energies'] | ||
| mol.data['OQP::td_bvec_mo_t'] = mol.data['OQP::td_bvec_mo'].copy() | ||
|
|
||
| oqp.soc_mrsf(mol) | ||
|
|
||
| LastStep(mol).compute(mol) | ||
|
|
||
| # mol.data['OQP::soc_'] | ||
|
|
||
|
Comment on lines
+109
to
+110
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. rm 4 lines. |
||
|
|
||
|
|
||
| def compute_hess(mol): | ||
|
|
@@ -143,11 +163,11 @@ def compute_properties(mol): | |
| pass | ||
|
|
||
| # compute soc | ||
| soc_type = mol.config['properties']['soc'] | ||
| if soc_type: | ||
| pass | ||
| else: | ||
| pass | ||
| # soc_type = mol.config['properties']['soc'] | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This part may be needed when we perform NAMD calculations considering SOC, so it may be better to make it compatible with this one.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What arrays are required for the NAMD calculations? What is prefereable output from SOC module for the NAMD? |
||
| # if soc_type: | ||
| # pass | ||
| # else: | ||
| # pass | ||
|
|
||
| def compute_data(mol): | ||
| # compute reference energy | ||
|
|
@@ -167,11 +187,11 @@ def compute_data(mol): | |
| pass | ||
|
|
||
| # compute soc | ||
| soc_type = mol.config['properties']['soc'] | ||
| if soc_type: | ||
| pass | ||
| else: | ||
| pass | ||
| # soc_type = mol.config['properties']['soc'] | ||
| # if soc_type: | ||
| # pass | ||
| # else: | ||
| # pass | ||
|
|
||
|
|
||
| def get_optimizer(mol): | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe
mol.data['OQP::td_singlet_energies'] = mol.data['OQP::td_energies'].copy()? check it.