How west-code-development/west works
WEST is a massively parallel electronic-structure package for many-body perturbation theory. Its repository separates screening, frequency-dependent calculations, Bethe–Salpeter/excited-state work, and result post-processing into distinct Fortran applications, with shared kernels and I/O. Python tools support input handling, Qbox coordination, and reading or converting selected result data. The README establishes the product purpose, while the sampled sources show specific Python and Base64 behavior; Fortran subsystem connections are not shown, so their internal call relationships are omitted.
Main entry points: wstat.f90 Static screening · wfreq.f90 Frequency response · wbse.f90 Excited states · westpp.f90 Result analysis
Components 21
Calculation applications
- Static screening
Wstat/wstat.f90 - Frequency response
Wfreq/wfreq.f90 - Excited states
Wbse/wbse.f90 - Result analysis
Westpp/westpp.f90
Shared scientific runtime
- Perturbation theory
DFPT_kernel/dfpt_module.f90 - Hamiltonian operations
Hamiltonian_kernel/apply_hqp_to_m_wfcs.f90 - Fourier transforms
FFT_kernel/fft_at_k.f90 - Parallel distribution
Para_kernel/parallel_distributed_diago.f90 - Coulomb kernel
Coulomb_kernel/class_coulomb.f90
Python tools
- Input parsing
Pytools/west_fetch_input.py - Qbox coordination
Pytools/west_clientserver.py - 3D function conversion
Pytools/west_function3d.py - BSE data reader
Pytools/west_read_bse.py - Python utilities
Pytools/west_utils.py - JSON reader
Pytools/read_json.py
Persistence and formats
- WEST I/O
IO_kernel/mod_west_io.f90 - PDEP persistence
IO_kernel/pdep_io.f90 - Frequency persistence
IO_kernel/wfreq_io.f90 - BSE persistence
IO_kernel/wbse_io.f90 - Base64 encoding
Libraries/Base64/cbase64.c
Other components
- Researcher
Connections 4
- Researcher → Static screening: runs calculations
- Researcher → Frequency response: runs calculations
- Researcher → Excited states: runs calculations
- Researcher → Result analysis: analyzes results