Multiwfn forum

Multiwfn official website: http://sobereva.com/multiwfn. Multiwfn forum in Chinese: http://bbs.keinsci.com/wfn

You are not logged in.

#1 2025-07-27 09:49:55

Dirk
Member
Registered: 2021-04-02
Posts: 8

gradient of ESP

Hello Tian,

when analyzing *.wfn files and plotting ESP maps there is an option for plotting also the gradient lines for the ESP.
Unfortunately, the direction of the tips on the gradient lines cannot be changed (=reversed).
At present they point from negative to positive values, whereas e-field lines should point to the opposite direction.
Could you please add an option for changing the direction of the tips ?

Thank you !

Best wishes, Dirk

Offline

#2 2025-07-27 11:02:57

sobereva
Tian Lu (Multiwfn developer)
From: Beijing
Registered: 2017-09-11
Posts: 2,032
Website

Re: gradient of ESP

Dear Dirk,

This doesn't need a new option. Just select option "-7 Multiply the current data by a factor" in the post-processing menu, and then input -1. Then if you plot the map again by option -1, you will find the arrow direction has been reversed.

Best,

Tian

Offline

#3 2025-07-28 13:59:36

Dirk
Member
Registered: 2021-04-02
Posts: 8

Re: gradient of ESP

Dear Tian,

thank you for the fast reply. Well, I tried your suggestion, but the multilication also reverses the values for the ESP and accordingly
produces the wrong charge distribution on the molecule. I think that the option has to work on the gadient calculation only.
The electric field (E) is the *negative* gradient of the electric potential (V): E = -∇V.

Best wishes, Dirk

Offline

#4 2025-07-28 14:48:34

sobereva
Tian Lu (Multiwfn developer)
From: Beijing
Registered: 2017-09-11
Posts: 2,032
Website

Re: gradient of ESP

If you are plotting "Gradient lines map with/without contour lines", you can multiply the ESP data by -1 so that the direction of arrows corresponds to electric field, and meantime changing plotting setting of contour lines to exchange solid and dashed styles.

Offline

#5 2025-07-28 15:38:04

Dirk
Member
Registered: 2021-04-02
Posts: 8

Re: gradient of ESP

This does not help because the scale bar for ESP values would still show the wrong (=inverted) values.
I think for the vector field calculation you are offering the possibility to change the direction of the vectors
to align with the e-field. So the functionality is already present and probably only needs to be enabled for
the direction of the gradient lines ?

Offline

#6 2025-07-29 00:14:15

sobereva
Tian Lu (Multiwfn developer)
From: Beijing
Registered: 2017-09-11
Posts: 2,032
Website

Re: gradient of ESP

I don't know what kind of map you plotted. Contour line + gradient line map doesn't have a scale bar.

Offline

#7 2025-07-29 04:07:27

Dirk
Member
Registered: 2021-04-02
Posts: 8

Re: gradient of ESP

Hello again,
I am plotting 2D ESP maps of a molecule, derived from a wfn file.

The succession in menu numbers is 4 - 12 - 6 which creates an ESP map overlaid by gradient lines that can display
directional arrowheads on the gradient line (which currently point to the opposite direction of the e-field vectors).
In the additional setting I have enabled filling the area between the ESP contour lines with colors and the color index is
then mapped to a scale bar on the right side of the plot. Please have a look at the image of a LiF molecule.
LiF.png

Offline

#8 2025-07-29 04:51:59

sobereva
Tian Lu (Multiwfn developer)
From: Beijing
Registered: 2017-09-11
Posts: 2,032
Website

Re: gradient of ESP

I fully understand your situation. I just updated Multiwfn 3.8(dev) on the official website, now you can choose "13 Invert gradient vectors" in post-processing menu to invert the arrows on gradient lines.

BTW: Your image is very nice

Offline

Board footer

Powered by FluxBB