- Posts: 4
- Thank you received: 1
Different basis ordering when point charges included
- jxzou
- Topic Author
- Offline
- New Member
-
Less
More
2 weeks 4 days ago #1545
by jxzou
Different basis ordering when point charges included was created by jxzou
Dear MRCC developers,
Thanks for developing this powerful program. I have a question that, MRCC seems to use different basis ordering when point charges are included in a calculation. To illustrate this problem, a C1-symmetry (i.e. no symmetry) molecule is taken as an example. Here are two `MINP` files
and
The molecule will not be re-oriented in the 1st job since it is C1-symmetry. A small point charge is put in a distant position in the 2nd job. If we run two jobs sequentially and provide MOCOEF of the 1st job to the 2nd one, one would expect the SCF to be converged in 1~3 cycles in the 2nd job since the point charge has little effect on the molecule. But the fact is that it takes 10 cycles to reach convergence and the SCF initial energy is higher by 5 a.u. than the converged energy
Allocation of 4096.0 Mbytes of memory...
======================================================================
ITERATION STEP 1
CPU time [min]: 0.081 Wall time [min]: 0.008
RMS of [F,P]: 0.02907443236737
RMS of difference density: 0.01659913559339
Gap [au]: 0.39992817
ALPHA OCC: 13
BETA OCC: 13
***HARTREE-FOCK ENERGY IN STEP 1 IS -165.1270107044162501 [AU]
======================================================================
ITERATION STEP 2
CPU time [min]: 0.317 Wall time [min]: 0.017
RMS of [F,P]: 0.01993914578409
RMS of difference density: 0.01538982863794
Gap [au]: 0.24013007
ALPHA OCC: 13
BETA OCC: 13
***HARTREE-FOCK ENERGY IN STEP 2 IS -169.4107377720736736 [AU]
======================================================================
ITERATION STEP 3
CPU time [min]: 0.546 Wall time [min]: 0.026
RMS of [F,P]: 0.01188628759026
RMS of difference density: 0.00601181058968
Gap [au]: 0.51285621
ALPHA OCC: 13
BETA OCC: 13
***HARTREE-FOCK ENERGY IN STEP 3 IS -169.9213585510517532 [AU]
======================================================================
ITERATION STEP 4
CPU time [min]: 0.773 Wall time [min]: 0.034
RMS of [F,P]: 0.00099545573189
RMS of difference density: 0.00082497702621
Gap [au]: 0.52253592
ALPHA OCC: 13
BETA OCC: 13
***HARTREE-FOCK ENERGY IN STEP 4 IS -170.1384855474283881 [AU]
======================================================================
ITERATION STEP 5
CPU time [min]: 1.004 Wall time [min]: 0.043
RMS of [F,P]: 0.00044218472121
RMS of difference density: 0.00027634696711
Gap [au]: 0.52471610
ALPHA OCC: 13
BETA OCC: 13
***HARTREE-FOCK ENERGY IN STEP 5 IS -170.1411393225748725 [AU]
======================================================================
ITERATION STEP 6
CPU time [min]: 1.235 Wall time [min]: 0.051
RMS of [F,P]: 0.00011718451210
RMS of difference density: 0.00013609973323
Gap [au]: 0.52571186
ALPHA OCC: 13
BETA OCC: 13
***HARTREE-FOCK ENERGY IN STEP 6 IS -170.1415833208371851 [AU]
======================================================================
ITERATION STEP 7
CPU time [min]: 1.466 Wall time [min]: 0.060
RMS of [F,P]: 0.00003470901012
RMS of difference density: 0.00003843989973
Gap [au]: 0.52535196
ALPHA OCC: 13
BETA OCC: 13
***HARTREE-FOCK ENERGY IN STEP 7 IS -170.1416369807051865 [AU]
======================================================================
ITERATION STEP 8
CPU time [min]: 1.697 Wall time [min]: 0.068
RMS of [F,P]: 0.00001311939169
RMS of difference density: 0.00001492127146
Gap [au]: 0.52553918
ALPHA OCC: 13
BETA OCC: 13
***HARTREE-FOCK ENERGY IN STEP 8 IS -170.1416415882525257 [AU]
======================================================================
ITERATION STEP 9
CPU time [min]: 1.930 Wall time [min]: 0.077
RMS of [F,P]: 0.00000302102385
RMS of difference density: 0.00000420992341
Gap [au]: 0.52555409
ALPHA OCC: 13
BETA OCC: 13
***HARTREE-FOCK ENERGY IN STEP 9 IS -170.1416422211465260 [AU]
======================================================================
ITERATION STEP 10
CPU time [min]: 2.160 Wall time [min]: 0.085
RMS of [F,P]: 0.00000051172361
RMS of difference density: 0.00000096825075
Gap [au]: 0.52555547
ALPHA OCC: 13
BETA OCC: 13
***HARTREE-FOCK ENERGY IN STEP 10 IS -170.1416422606677088 [AU]
======================================================================
SUCCESS...
THE SCF ITERATION HAS CONVERGED!
This is counterintuitive and it makes two similar MRCC jobs inconsistent with each other. After some checking, I think it is probably due to different basis orderings are used with/without point charges included. If this is the case, would you please consider to use the same basis ordering, like in the next MRCC update? That would make two MRCC jobs more consistent inherently.
By the way, MRCC 25.1.0 is used here. And you can find related files are attached.
Thanks a lot.
Best wishes,
Jingxiang
Thanks for developing this powerful program. I have a question that, MRCC seems to use different basis ordering when point charges are included in a calculation. To illustrate this problem, a C1-symmetry (i.e. no symmetry) molecule is taken as an example. Here are two `MINP` files
Code:
mem=4GB
charge=0
mult=1
calc=RHF
basis=PVTZ
ecp=none
scfiguess=mo
symm=0
geom=xyz
8
C -0.00002000 0.54842100 0.03465800
H -0.03352200 1.24437300 -0.77739400
H 0.00599800 1.08230800 0.96192700
N 1.21850600 -0.26726500 -0.06903300
H 2.02170600 0.32739600 -0.03371100
H 1.25072200 -0.91646300 0.69090400
O -1.14865700 -0.30170500 -0.01845500
H -1.94499900 0.23418600 -0.00232200
and
Code:
mem=4GB
charge=0
mult=1
calc=RHF
basis=PVTZ
ecp=none
qmmm=Amber
scfiguess=mo
symm=0
geom=xyz
8
C -0.00002000 0.54842100 0.03465800
H -0.03352200 1.24437300 -0.77739400
H 0.00599800 1.08230800 0.96192700
N 1.21850600 -0.26726500 -0.06903300
H 2.02170600 0.32739600 -0.03371100
H 1.25072200 -0.91646300 0.69090400
O -1.14865700 -0.30170500 -0.01845500
H -1.94499900 0.23418600 -0.00232200
pointcharges
1
50.0 50.0 50.0 0.1
The molecule will not be re-oriented in the 1st job since it is C1-symmetry. A small point charge is put in a distant position in the 2nd job. If we run two jobs sequentially and provide MOCOEF of the 1st job to the 2nd one, one would expect the SCF to be converged in 1~3 cycles in the 2nd job since the point charge has little effect on the molecule. But the fact is that it takes 10 cycles to reach convergence and the SCF initial energy is higher by 5 a.u. than the converged energy
Warning: Spoiler!
Allocation of 4096.0 Mbytes of memory...
======================================================================
ITERATION STEP 1
CPU time [min]: 0.081 Wall time [min]: 0.008
RMS of [F,P]: 0.02907443236737
RMS of difference density: 0.01659913559339
Gap [au]: 0.39992817
ALPHA OCC: 13
BETA OCC: 13
***HARTREE-FOCK ENERGY IN STEP 1 IS -165.1270107044162501 [AU]
======================================================================
ITERATION STEP 2
CPU time [min]: 0.317 Wall time [min]: 0.017
RMS of [F,P]: 0.01993914578409
RMS of difference density: 0.01538982863794
Gap [au]: 0.24013007
ALPHA OCC: 13
BETA OCC: 13
***HARTREE-FOCK ENERGY IN STEP 2 IS -169.4107377720736736 [AU]
======================================================================
ITERATION STEP 3
CPU time [min]: 0.546 Wall time [min]: 0.026
RMS of [F,P]: 0.01188628759026
RMS of difference density: 0.00601181058968
Gap [au]: 0.51285621
ALPHA OCC: 13
BETA OCC: 13
***HARTREE-FOCK ENERGY IN STEP 3 IS -169.9213585510517532 [AU]
======================================================================
ITERATION STEP 4
CPU time [min]: 0.773 Wall time [min]: 0.034
RMS of [F,P]: 0.00099545573189
RMS of difference density: 0.00082497702621
Gap [au]: 0.52253592
ALPHA OCC: 13
BETA OCC: 13
***HARTREE-FOCK ENERGY IN STEP 4 IS -170.1384855474283881 [AU]
======================================================================
ITERATION STEP 5
CPU time [min]: 1.004 Wall time [min]: 0.043
RMS of [F,P]: 0.00044218472121
RMS of difference density: 0.00027634696711
Gap [au]: 0.52471610
ALPHA OCC: 13
BETA OCC: 13
***HARTREE-FOCK ENERGY IN STEP 5 IS -170.1411393225748725 [AU]
======================================================================
ITERATION STEP 6
CPU time [min]: 1.235 Wall time [min]: 0.051
RMS of [F,P]: 0.00011718451210
RMS of difference density: 0.00013609973323
Gap [au]: 0.52571186
ALPHA OCC: 13
BETA OCC: 13
***HARTREE-FOCK ENERGY IN STEP 6 IS -170.1415833208371851 [AU]
======================================================================
ITERATION STEP 7
CPU time [min]: 1.466 Wall time [min]: 0.060
RMS of [F,P]: 0.00003470901012
RMS of difference density: 0.00003843989973
Gap [au]: 0.52535196
ALPHA OCC: 13
BETA OCC: 13
***HARTREE-FOCK ENERGY IN STEP 7 IS -170.1416369807051865 [AU]
======================================================================
ITERATION STEP 8
CPU time [min]: 1.697 Wall time [min]: 0.068
RMS of [F,P]: 0.00001311939169
RMS of difference density: 0.00001492127146
Gap [au]: 0.52553918
ALPHA OCC: 13
BETA OCC: 13
***HARTREE-FOCK ENERGY IN STEP 8 IS -170.1416415882525257 [AU]
======================================================================
ITERATION STEP 9
CPU time [min]: 1.930 Wall time [min]: 0.077
RMS of [F,P]: 0.00000302102385
RMS of difference density: 0.00000420992341
Gap [au]: 0.52555409
ALPHA OCC: 13
BETA OCC: 13
***HARTREE-FOCK ENERGY IN STEP 9 IS -170.1416422211465260 [AU]
======================================================================
ITERATION STEP 10
CPU time [min]: 2.160 Wall time [min]: 0.085
RMS of [F,P]: 0.00000051172361
RMS of difference density: 0.00000096825075
Gap [au]: 0.52555547
ALPHA OCC: 13
BETA OCC: 13
***HARTREE-FOCK ENERGY IN STEP 10 IS -170.1416422606677088 [AU]
======================================================================
SUCCESS...
THE SCF ITERATION HAS CONVERGED!
This is counterintuitive and it makes two similar MRCC jobs inconsistent with each other. After some checking, I think it is probably due to different basis orderings are used with/without point charges included. If this is the case, would you please consider to use the same basis ordering, like in the next MRCC update? That would make two MRCC jobs more consistent inherently.
By the way, MRCC 25.1.0 is used here. And you can find related files are attached.
Thanks a lot.
Best wishes,
Jingxiang
Please Log in or Create an account to join the conversation.
- nagypeter
- Offline
- Premium Member
-
- MRCC developer
2 weeks 4 days ago #1546
by nagypeter
Replied by nagypeter on topic Different basis ordering when point charges included
Dear Jingxiang,
without the point charge, the system is transformed to standard orientation, which is not performed with the point charge.
At the moment you try these workarounds: place your molecules in the input in standard orientation or add a zero point charge.
Bests,
Peter
without the point charge, the system is transformed to standard orientation, which is not performed with the point charge.
At the moment you try these workarounds: place your molecules in the input in standard orientation or add a zero point charge.
Bests,
Peter
Please Log in or Create an account to join the conversation.
- jxzou
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 4
- Thank you received: 1
2 weeks 4 days ago #1547
by jxzou
Replied by jxzou on topic Different basis ordering when point charges included
Dear Prof. Peter,
The molecule shown above is in C1 symmetry, and the Cartesian coordinates are already in its standard orientation, which can be checked again from the MRCC output. But the 2nd job cannot be converged in less than 3 cycles. So my guess is that standard orientation is not the issue here, but the basis ordering is.
Best wishes,
Jingxiang
The molecule shown above is in C1 symmetry, and the Cartesian coordinates are already in its standard orientation, which can be checked again from the MRCC output. But the 2nd job cannot be converged in less than 3 cycles. So my guess is that standard orientation is not the issue here, but the basis ordering is.
Best wishes,
Jingxiang
Please Log in or Create an account to join the conversation.
- nagypeter
- Offline
- Premium Member
-
- MRCC developer
2 weeks 4 days ago #1548
by nagypeter
Replied by nagypeter on topic Different basis ordering when point charges included
If you turn on verbosity=3, then you will see that your example with no charge is reoriented (cf. sign changes in the coordinates).
Please Log in or Create an account to join the conversation.
- jxzou
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 4
- Thank you received: 1
2 weeks 4 days ago #1549
by jxzou
Replied by jxzou on topic Different basis ordering when point charges included
Thank you very much. The signs of some Cartesian coordinates do change (although absolute values do not change). Then this issue should still be a re-orientation problem.
Please Log in or Create an account to join the conversation.
Time to create page: 0.043 seconds