Questions tagged [programming]

Questions about programming.

Filter by
Sorted by
Tagged with
11
votes
0answers
91 views

Looking for crystal generator library

I am looking for a C or a C++ library that can do crystal generation, that is, multiply unit cells in one or more directions with symmetry information. (in other words, generate supercells). I have ...
6
votes
1answer
167 views

Calculate number of electrons per shell for an atom

Suppose you are given the atomic number of an element, e.g. Technetium, which is 43. Is it possible to return an array which shows the distribution of electrons across different shells of an atom ...
18
votes
9answers
8k views

How to master Fortran with minimal effort?

Fortran language is used in many first-principles matter modeling codes, such as VASP and QE. These codes usually include many ...
9
votes
1answer
212 views

Help with translating Hamiltonian into matrix

Eq. 19 in this paper gives the following Hamiltonian: $\sigma_a, \tau_a, \eta_a$ are respectively the spin, sublattice pseudospin and valley pseudospin respectively. Normally, I would have chosen a ...
13
votes
3answers
569 views

Script to generate input files for benchmark purpose

I would like to run some benchmark of different DFT functionals. The most time consuming part is obviously the generation of the input files. I'm not a programmer, but I think this could be done by ...
15
votes
6answers
2k views

How to make a python code that can read a .xyz file and find the distance between atoms?

I want to make a python script that will load an xyz file. From the xyz parameters, I need to find the distance between atoms, angle and dihedral between atoms. The file xyz have this structure: ...