This commit is contained in:
Anthony Scemama 2020-08-01 02:04:54 +02:00
parent f6d6c203fe
commit 1fd126cdf3
2 changed files with 41 additions and 43 deletions

View File

@ -5378,6 +5378,22 @@ summary(raw_data)
#+end_example
*** Figure energy H2O
#+NAME:tab1
| $\mu$ | | N_{det} | E(DMC) | Error | N_{det} | E(DMC) | Error |
|------+------------+--------+----------------+--------------+---------+----------------+--------------|
| 0.00 | 0. | 11 | -17.2535927658 | 0.0000616883 | 23 | -17.2567442368 | 0.0000674814 |
| 0.20 | 0.16666667 | 23 | -17.2537299553 | 0.0000673868 | 23 | -17.2567293499 | 0.0000806448 |
| 0.50 | 0.33333333 | 1442 | -17.2539120512 | 0.0001475010 | 1699 | -17.2577489156 | 0.0001590032 |
| 0.75 | 0.42857143 | 3213 | -17.2551351593 | 0.0001757492 | 13362 | -17.2583975528 | 0.0002828675 |
| 1.00 | 0.5 | 6743 | -17.2566320269 | 0.0001881680 | 25673 | -17.2609826285 | 0.0002158278 |
| 1.75 | 0.63636364 | 54540 | -17.2595366309 | 0.0003193539 | 207475 | -17.2635480054 | 0.0001864936 |
| 2.50 | 0.71428571 | 51691 | -17.2593693798 | 0.0002564347 | 858123 | -17.2643468817 | 0.0003484087 |
| 3.80 | 0.79166667 | 103059 | -17.2586706893 | 0.0002222800 | 1621513 | -17.2636697373 | 0.0002950991 |
| 5.70 | 0.85074627 | 102599 | -17.2577349871 | 0.0002927319 | 1629655 | -17.2631675892 | 0.0003358884 |
| 8.50 | 0.89473684 | 101803 | -17.2572986405 | 0.0002283964 | 1643301 | -17.2632963114 | 0.0003799317 |
| inf | 1 | 255971 | -17.257153 | 0.000554 | 1631982 | -17.2638832283 | 0.0002702253 |
#+TBLFM: $2=$1/($1+1)
#+begin_src R :var data=tab1 :results output :session *R* :exports both
str(data)
data$X
@ -5441,7 +5457,7 @@ p
#+end_src
#+RESULTS:
[[file:/tmp/babel-sCda1y/figure0NfaFj.png]]
[[file:/tmp/babel-eZHQur/figurevp7v8V.png]]
#+begin_src R :results output :session *R* :exports both
pdf("../Manuscript/h2o-dmc.pdf", family="Times", width=8, height=5)
@ -5545,7 +5561,7 @@ p
#+end_src
#+RESULTS:
[[file:/tmp/babel-sCda1y/figure0pNTL5.png]]
[[file:/tmp/babel-eZHQur/figureK4sYhw.png]]
#+begin_src R :results output :session *R* :exports both
normalize <- function(x) {x / sqrt(sum(x^2))}
@ -5608,7 +5624,7 @@ p
#+end_src
#+RESULTS:
[[file:/tmp/babel-sCda1y/figure85AbgI.png]]
[[file:/tmp/babel-eZHQur/figuregm2hT1.png]]
#+begin_src R :results output :session *R* :exports both
normalize <- function(x) {x / sqrt(sum(x^2))}
@ -5734,7 +5750,7 @@ p
#+end_src
#+RESULTS:
[[file:/tmp/babel-eZHQur/figureS0c2r2.png]]
[[file:/tmp/babel-eZHQur/figurezFn91G.png]]
#+begin_src R :results output :session *R* :exports both
normalize <- function(x) {x / sqrt(sum(x^2))}
@ -5743,7 +5759,7 @@ dC2 = data.frame(FCI)
dC2$mu_0 <- normalize(scan("c2_0.00.dat"))
dC2$mu_025 <- normalize(scan("c2_0.25.dat"))
dC2$mu_05 <- normalize(scan("c2_0.50.dat"))
dC2$mu_75 <- normalize(scan("c2_0.75.dat"))
#dC2$mu_75 <- normalize(scan("c2_0.75.dat"))
dC2$mu_1 <- normalize(scan("c2_1.00.dat"))
dC2$mu_2 <- normalize(scan("c2_2.00.dat"))
dC2$mu_5 <- normalize(scan("c2_5.00.dat"))
@ -5775,12 +5791,10 @@ C2
Read 200 items
Read 200 items
FCI mu_0 mu_025 mu_05 mu_75 mu_1 mu_2 mu_5
0.9975648 0.8772789 0.9265083 0.9661503 0.9907511 0.9953970 0.9991335 0.9991130
mu_inf jast
0.9989082 1.0000000
FCI mu_0 mu_025 mu_05 mu_1 mu_2 mu_5 mu_inf
0.9923154 0.8819829 0.9305360 0.9670129 0.9922785 0.9946632 0.9942313 0.9939448
jast
1.0000000
#+end_example
**** Plot
@ -5813,19 +5827,21 @@ p <- p + geom_point(aes(x=X,y=C2), color='green')
#p <- p + geom_point(aes(x=X,y=F2opt), color='green')
p <- p + geom_line(data = F2.spline_int, aes(x=x, y=y, colour='a'))
p <- p + geom_line(data = H2O.spline_int, aes(x=x, y=y, colour='b'))
p <- p + geom_line(data = C2.spline_int, aes(x=x, y=y, colour='c'))
#p <- p + geom_line(data = F2opt.spline_int, aes(x=x, y=y, colour='c'))
p <- p + scale_x_continuous(name=TeX("$\\mu$ (bohr$^{-1}$)"), breaks=X, labels=Mu)
p <- p + scale_y_continuous(name = TeX("Overlap") )
p <- p + scale_y_continuous(name = TeX("Overlap"),
limits=c(0.965, 1.))
p <- p + scale_colour_manual(name = 'Molecule', guide='legend',
values =c('c'='green', 'b'='blue','a'='red'),
labels = c(expression(F[2]), expression(H[2]*O), expression(F[2]*opt) ))
labels = c(expression(F[2]), expression(H[2]*O), expression(C[2]) ))
p <- p + theme(text = element_text(size = 20, family="Times"), legend.position = c(.85, .15))
p
#+end_src
#+RESULTS:
[[file:/tmp/babel-sCda1y/figureo57bqh.png]]
[[file:/tmp/babel-eZHQur/figurevX2urq.png]]
#+begin_src R :results output :session *R* :exports both
pdf("../Manuscript/overlap.pdf", family="Times", width=8, height=5)
@ -6357,22 +6373,6 @@ dev.off()
** Gnuplot
*** Figure H2O gnuplot
#+NAME:tab1
| $\mu$ | | N_{det} | E(DMC) | Error | N_{det} | E(DMC) | Error |
|------+------------+--------+----------------+--------------+---------+----------------+--------------|
| 0.00 | 0. | 11 | -17.2535927658 | 0.0000616883 | 23 | -17.2567442368 | 0.0000674814 |
| 0.20 | 0.16666667 | 23 | -17.2537299553 | 0.0000673868 | 23 | -17.2567293499 | 0.0000806448 |
| 0.50 | 0.33333333 | 1442 | -17.2539120512 | 0.0001475010 | 1699 | -17.2577489156 | 0.0001590032 |
| 0.75 | 0.42857143 | 3213 | -17.2551351593 | 0.0001757492 | 13362 | -17.2583975528 | 0.0002828675 |
| 1.00 | 0.5 | 6743 | -17.2566320269 | 0.0001881680 | 25673 | -17.2609826285 | 0.0002158278 |
| 1.75 | 0.63636364 | 54540 | -17.2595366309 | 0.0003193539 | 207475 | -17.2635480054 | 0.0001864936 |
| 2.50 | 0.71428571 | 51691 | -17.2593693798 | 0.0002564347 | 858123 | -17.2643468817 | 0.0003484087 |
| 3.80 | 0.79166667 | 103059 | -17.2586706893 | 0.0002222800 | 1621513 | -17.2636697373 | 0.0002950991 |
| 5.70 | 0.85074627 | 102599 | -17.2577349871 | 0.0002927319 | 1629655 | -17.2631675892 | 0.0003358884 |
| 8.50 | 0.89473684 | 101803 | -17.2572986405 | 0.0002283964 | 1643301 | -17.2632963114 | 0.0003799317 |
| inf | 1 | 200521 | -17.2567650693 | 0.0005779960 | 1631982 | -17.2638832283 | 0.0002702253 |
#+TBLFM: $2=$1/($1+1)
#+BEGIN_SRC gnuplot :var data=tab1 :output file :file ../Manuscript/h2o-dmc.pdf
set termoption font "Times"
set termoption fontscale 0.6

View File

@ -491,7 +491,7 @@ $\mu=1$~bohr$^{-1}$. This confirms that introducing short-range
correlation with DFT has the same impact on the CI coefficients than
with the Jastrow factor. In the case of F$_2$, the Jastrow factor has
very little effect on the CI coefficients, as the overlap
$\braket{\Psi^J}{\Psi^{\mu=\infty}$ is very close to
$\braket{\Psi^J}{\Psi^{\mu=\infty}}$ is very close to
$1$. Nevertheless, a slight maximum is obtained for
$\mu=5$~bohr$^{-1}$.
@ -601,13 +601,13 @@ of the fluorine atom.
\begin{tabular}{clll}
$\mu$ & F & Dissociated F$_2$ & Size-consistency error \\
\hline
0.00 & $-24.188\,7(3)$ & & \\
0.25 & $-24.188\,7(3)$ & & \\
0.50 & $-24.188\,8(1)$ & & \\
1.00 & $-24.189\,7(1)$ & & \\
2.00 & $-24.194\,1(3)$ & $-48.388\,4(4)$ & $0.000\,2(5)$ \\
5.00 & $-24.194\,7(4)$ & & \\
$\infty$ & $-24.193\,5(2)$ & & \\
0.00 & $-24.188\,7(3)$ & $-48.377\,7(3)$ & $0.000\,3(4)$ \\
0.25 & $-24.188\,7(3)$ & $-48.377\,2(4)$ & $0.000\,2(5)$ \\
0.50 & $-24.188\,8(1)$ & $-48.376\,8(4)$ & $0.000\,2(4)$ \\
% 1.00 & $-24.189\,7(1)$ & $-48.37 \, ( )$ & $0.00 \, (9)$ \\
2.00 & $-24.194\,1(3)$ & $-48.388\,4(4)$ & $0.000\,2(5)$ \\
5.00 & $-24.194\,7(4)$ & $-48.388\,5(7)$ & $0.000\,9(8)$ \\
$\infty$ & $-24.193\,5(2)$ & $-48.386\,9(4)$ & $0.000\,1(5)$ \\
\end{tabular}
\end{ruledtabular}
\end{table}
@ -790,7 +790,7 @@ Simulation of Functional Materials.
\item basis set dependent: $\mu \rightarrow \infty$ when $\mathcal{B}\rightarrow \text{CBS}$
\item large wave functions
\end{itemize}
\item Invariance with m_s
\item Invariance with $m_s$
\end{itemize}
\end{enumerate}
@ -800,18 +800,16 @@ Simulation of Functional Materials.
\end{document}
% * Envoyer a Manu H2O a differents mu (200 dets)
% * Recouvrement avec Be
% * Tester sr-LDA avec H2O-DZ
% * Manu doit faire des programmes pour des plots de ensite a 1 et 2
% corps le long des axes de liaison, et l'integrale de la densite a
% 2 corps a coalescence.
% envoyer qp_cipsi_rsh a manu
% 1 Manu calcule Be en cc-pvdz tous electrons: FCI -> NOs -> FCI ->
% qp edit -n 200
% 2 Manu calcule qp_cipsi_rsh avec mu = [ 1.e-6 , 0.25, 0.5, 1.0, 2.0, 5.0, 1e6 ]
% 3 Manu fait tourner es petits programmes
% 4 Manu envoie a toto un tar avec tous les ezfio
% 5 Toto optimise les coes en presence e jastrow
% 5 Toto optimise les coefs en presence e jastrow
% 6 Toto renvoie a manu psicoef
% 7 Manu fait tourner ses petits programmes avec psi_J
% 7 Manu fait tourner ses petits programmes avec psi_J