Skip to content

set chemical hardnesses for point charges in the C API #920

Open

Description

@njzjz

Is your feature request related to a problem? Please describe.
The documentation External Potentials and Embedding says

To obtain point charge like behaviour for the partial charges the chemical hardness can be set to a large value. This can be done by specifying the chemical hardnesses in the fifth column instead of giving an element symbol. For this setup the water_4.pc would look like

However, I don't get how to set it in the C API.

xtb/include/xtb.h

Lines 195 to 202 in 3ba05d3

/// Add a external charge potential to calculator (only supported in GFN1/2-xTB)
extern XTB_API_ENTRY void XTB_API_CALL
xtb_setExternalCharges(xtb_TEnvironment /* env */,
xtb_TCalculator /* calc */,
int* /* n */,
int* /* numbers [n] */,
double* /* charges [n] */,
double* /* positions [n][3] */) XTB_API_SUFFIX__VERSION_1_0_0;

Describe the solution you'd like
There is another function that can set chemical hardness.

Describe alternatives you've considered
Or there is a virtual element whose chemical hardness is 99.

If possible state how you can assist in providing data or code to to implement the feature
I can assist in it, but the stable API needs a decision.

Additional context
Indeed, it's unclear how to set the element of the point charge for 4-site water (TIP4P). It has an extra point that is not a real atom.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-APIConcerns the ISO-C layerenhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions