Skip to content

Commit a2ecc61

Browse files
Merge pull request #265 from ShubhangKrishnakantTrivedi875/master
2 parents d3a2ac1 + cee6a55 commit a2ecc61

108 files changed

Lines changed: 22632 additions & 14623 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/test-missing-parameters.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,21 @@ def check_missing_parameters(test_dir, parameters_json_path):
3535
pass
3636

3737
# Check missing or typo parameters
38+
# Parameters that are documented but not yet in SPARC-X-API validator
39+
NEW_UNDOCUMENTED_PARAMS = {
40+
"BOUNDARY_CONDITION",
41+
"EXTERNAL_PRESSURE",
42+
"NPH_BMASS",
43+
"NPH_SCALE_CONSTRAINTS",
44+
"NPH_ANGLES",
45+
"NPT_NP_ANGLES",
46+
"RELAX_PRESSURE"
47+
}
48+
3849
missing_params = [
3950
param for param in params_in_file
4051
if (param.upper() not in documented_parameters)
41-
# TODO: Obsolete BOUNDARY_CONDITION keyword
42-
and (param.upper() != "BOUNDARY_CONDITION")
52+
and (param.upper() not in NEW_UNDOCUMENTED_PARAMS)
4353
]
4454
if missing_params:
4555
report[test_name] = missing_params

ChangeLog

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@
33
-Name
44
-changes
55

6+
--------------
7+
April 08, 2026
8+
Name: Shubhang Krishnakant Trivedi
9+
Changes: (src/md.c, src/initialization.c, src/readfiles.c, src/include/md.h, src/include/isddft.h)
10+
1. Extended the functionality of NPT_NP QMD for doing full cell flexibility (including changing of cell angles).
11+
2. Added the NPH (isobaric-isoenthalpic) ensemble in QMD with allowing full cell flexibility.
12+
3. Updated the manual and added extra tests corresponding to the same.
13+
4. Fixed warnings in the SPARC compilation occuring when using first 3 compile options.
14+
615
--------------
716
December 03, 2025
817
Name: Sayan Bhowmik

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ SPARC is an open-source software package for the accurate, effcient, and scalabl
77
* Local, semilocal, and nonlocal (including hybrid) exchange-correlation functionals.
88
* Standard ONCV pseudopotentials, including nonlinear core corrections (NLCCs).
99
* Calculation of ground state energy, atomic forces, and stress tensor.
10-
* Structural relaxation and ab initio molecular dynamics (NVE, NVT, and NPT).
10+
* Structural relaxation and ab initio molecular dynamics (NVE, NVTNH, NVKG, NPTNH, NPTNP and NPH).
1111
* Spin polarized and unpolarized calculations.
1212
* Spin-orbit coupling (SOC).
1313
* Noncollinear spin.
@@ -176,7 +176,7 @@ Upon successful execution of the `sparc` code, depending on the calculations per
176176
177177
- `.aimd` file
178178
179-
Atomic positions, atomic velocities, atomic forces, electronic temperature, ionic temperature and total energy for each QMD step.
179+
Atomic positions, atomic velocities, atomic forces, electronic temperature, ionic temperature, pressure (ionic, electronic and total), energies (internal, kinetic, total), entropy, stresses (ionic, electronic and total) and cell parameters: lattice vectors, volume and angles (latter 3 only in case of flexible cell) for each QMD step.
180180
181181
- `.restart` file
182182

doc/.LaTeX/Introduction.tex

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
\item Local, semilocal, and nonlocal (including hybrid) exchange-correlation functionals.
88
\item Standard ONCV pseudopotentials, including nonlinear core corrections.
99
\item Calculation of ground state energy, atomic forces, and stress tensor.
10-
\item Structural relaxation and ab initio molecular dynamics (NVE, NVT, and NPT).
10+
\item Structural relaxation and ab initio molecular dynamics (NVE, NVTNH, NVKG, NPTNH, NPTNP and NPH).
1111
\item Spin polarized and unpolarized calculations.
1212
\item Spin-orbit coupling.
1313
\item Dispersion interactions through DFT-D3, vdW-DF1, and vdW-DF2.
@@ -37,6 +37,7 @@
3737
\item \textbf{Shashikant Kumar}: Testing framework, NLCC, MLFF \\
3838
\item \textbf{Mostafa Faghih Shojaei}: SPMS table of pseudopotentials \\
3939
\item \textbf{Sayan Bhowmik\footnotemark[1]}: Atom code, DFT+U (Dudarev) \\
40+
\item \textbf{Shubhang Krishnakant Trivedi}: NPTNP, NPH in QMD\\
4041
\item \textbf{Swarnava Ghosh}: Preliminary development \\
4142
\item \textbf{Deepa Phanish}: Initial development
4243
\end{itemize}
@@ -250,7 +251,7 @@
250251
\textbf{Quantum molecular dynamics (QMD) calculations} \\
251252
\begin{itemize}
252253
\item ``.out" file -- See above.
253-
\item ``.aimd" file -- Atomic positions, atomic velocities, atomic forces, electronic temperature, ionic temperature and total energy for each QMD step.
254+
\item ``.aimd" file -- Atomic positions, atomic velocities, atomic forces, electronic temperature, ionic temperature, pressure (ionic, electronic and total), energies (internal, kinetic, total), entropy, stresses (ionic, electronic and total) and cell parameters: lattice vectors, volume and angles (latter 3 only in case of flexible cell) for each QMD step.
254255
\item ``.restart" file -- Information necessary to perform a restarted QMD calculation.
255256
\end{itemize}
256257

@@ -367,7 +368,14 @@
367368
\hyperlink{NPT_NP_BMASS}{\texttt{NPT\_NP\_BMASS}} $\vert$
368369
\hyperlink{NPT_SCALE_VECS}{\texttt{NPT\_SCALE\_VECS}} $\vert$
369370
\hyperlink{NPT_SCALE_CONSTRAINTS}{\texttt{NPT\_SCALE\_CONSTRAINTS}} $\vert$
371+
\hyperlink{NPT_NP_ANGLES}{\texttt{NPT\_NP\_ANGLES}} $\vert$
372+
\hyperlink{NPH_BMASS}{\texttt{NPH\_BMASS}} $\vert$
373+
\hyperlink{NPH_SCALE_VECS}{\texttt{NPH\_SCALE\_VECS}} $\vert$
374+
\hyperlink{NPH_SCALE_CONSTRAINTS}{\texttt{NPH\_SCALE\_CONSTRAINTS}} $\vert$
375+
\hyperlink{NPH_ANGLES}{\texttt{NPH\_ANGLES}} $\vert$
370376
\hyperlink{TARGET_PRESSURE}{\texttt{TARGET\_PRESSURE}} $\vert$
377+
\hyperlink{EXTERNAL_PRESSURE}{\texttt{EXTERNAL\_PRESSURE}} $\vert$
378+
\hyperlink{EXTERNAL_STRESS}{\texttt{EXTERNAL\_STRESS}} $\vert$
371379
\hyperlink{RESTART_FLAG}{\texttt{RESTART\_FLAG}} $\vert$
372380
\hyperlink{TWTIME}{\texttt{TWTIME}}
373381
\end{block}

0 commit comments

Comments
 (0)