Skip to content
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

raman activities with adjustable wavelength and T #967

Merged
merged 4 commits into from
Feb 21, 2024

Conversation

benbaed
Copy link
Contributor

@benbaed benbaed commented Feb 19, 2024

add ptbsetup variables raman_temp and raman_lambda

Signed-off-by: benbaed <s6bebaed@uni-bonn.de>
Albkat and others added 2 commits February 19, 2024 17:21
Signed-off-by: albert <92109627+Albkat@users.noreply.github.com>
Copy link
Member

@marcelmbn marcelmbn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inclusion of "--hess" and "--ptb" calls directly into --raman would make sense. Other than that, this looks good to me.

@@ -1778,6 +1778,18 @@ subroutine parseArguments(env, args, inputFile, paramFile, lgrad, &
case ('--alpha')
call set_elprop('alpha')

case ('--raman')
call set_elprop('raman')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the current state, only the electrical property is set to alpha (via redirect raman), but no Hessian calculation is conducted. I.e., no frequencies (and intensities) will be available.
One could add this easily via a call similar to: call set_runtyp('hess').

@@ -1778,6 +1778,18 @@ subroutine parseArguments(env, args, inputFile, paramFile, lgrad, &
case ('--alpha')
call set_elprop('alpha')

case ('--raman')
call set_elprop('raman')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar to the comment above, a switch to turn on PTB should be added:

            call set_exttyp('ptb')
            if (.not. get_xtb_feature('tblite')) then
               call ptb_feature_not_implemented(env)
               return
            endif

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The intended principle behind --raman is in my opinion the combination of the flags --ptb --hess --alpha together with Raman-specific options like temperature and frequency of incident light.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(The automatic redirect to --ptb follows from the fact that PTB is currently the only implemented method capable of calculating polarizabilities.)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea, but I'd still preserve --ptb as a requirement in case of the Raman implementation with any other tight-binding method.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also fine for me. However, it should be checked whether an error is produced if a call like --raman --gfn 2 or similar is used. (Something like: "Raman not implemented with this method".)

@marcelmbn marcelmbn added this to the v6.7.0 milestone Feb 19, 2024
@marcelmbn marcelmbn added the enhancement New feature or request label Feb 19, 2024
@marcelmbn marcelmbn assigned marcelmbn and benbaed and unassigned marcelmbn Feb 19, 2024
Signed-off-by: albert <92109627+Albkat@users.noreply.github.com>
@marcelmbn
Copy link
Member

Looks good to me now!

@Albkat Albkat merged commit d7a364b into grimme-lab:main Feb 21, 2024
11 checks passed
gorges97 pushed a commit to gorges97/xtb that referenced this pull request Mar 27, 2024
* raman activities with adjustable wavelength and T

Signed-off-by: benbaed <s6bebaed@uni-bonn.de>

* add raman CLI opts in man page

Signed-off-by: albert <92109627+Albkat@users.noreply.github.com>

* Update set_module.f90

* auto hess + small raman check

Signed-off-by: albert <92109627+Albkat@users.noreply.github.com>

---------

Signed-off-by: benbaed <s6bebaed@uni-bonn.de>
Signed-off-by: albert <92109627+Albkat@users.noreply.github.com>
Co-authored-by: albert <92109627+Albkat@users.noreply.github.com>
Co-authored-by: Marcel Mueller <marcel.mueller@thch.uni-bonn.de>
Signed-off-by: Johannes Gorges <58849467+gorges97@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants