How tuhh-tvt/opencosmo-rs_cpp works
openCOSMO-RS is a C++ implementation of the COSMO-RS thermodynamic model exposed through a dictionary-based Python extension and a standalone JSON CLI. The main workflow loads parameters and COSMO molecule files, prepares segment data, registers compositions and reference states, computes model interactions and thermodynamic results, then returns them through the selected interface. The README documents the Python lifecycle and CLI capabilities; sampled excerpts and the SOURCE INDEX support the principal module relationships, but do not expose every internal calculation call.
Main entry points: bindings_forPython.cpp Python API · bindings_forCLI.cpp JSON CLI · core_functions.hpp Thermodynamic solver · COSMOfile_functions.hpp COSMO reader
Components 16
User interfaces
- Python API
code/bindings_forPython.cpp - JSON CLI
code/bindings_forCLI.cpp - JSON codec
nlohmann/json.hpp - Result output
code/bindings_forCLI.cpp
Input preparation
- COSMO reader
code/COSMOfile_functions.hpp - Model parameters
code/types.hpp - Molecule segments
code/core_functions.hpp - Calculation setup
code/bindings_forPython.cpp
COSMO-RS model
- Interaction matrix
code/interaction_matrix.hpp - Thermodynamic solver
code/core_functions.hpp - Contact properties
code/contact_statistics.hpp
Runtime support
- SIMD backend
code/simd.hpp - Shared state
code/general.hpp - Parsing helpers
code/helper_functions.hpp
Other components
- Python caller
- CLI user
Connections 19
- Python caller → Python API: calls lifecycle
README.md - Python API → Shared state: uses state
code/bindings_forPython.cpp - Python API → Model parameters: loads parameters
code/bindings_forPython.cpp - Python API → COSMO reader: loads molecules
README.md - Python API → Calculation setup: registers calculations
README.md - Python API → Thermodynamic solver: runs calculations
README.md - CLI user → JSON CLI: provides JSON
README.md - JSON CLI → JSON codec: parses JSON
code/bindings_forCLI.cpp - JSON CLI → Shared state: uses state
code/bindings_forCLI.cpp - JSON CLI → COSMO reader: loads molecules
code/bindings_forCLI.cpp - JSON CLI → Thermodynamic solver: runs calculations
code/bindings_forCLI.cpp - JSON CLI → Result output: writes results
README.md - COSMO reader → Parsing helpers: uses parsing
code/COSMOfile_functions.hpp - Thermodynamic solver → Molecule segments: prepares segments
code/core_functions.hpp - Thermodynamic solver → Interaction matrix: uses interactions
code/core_functions.hpp - Thermodynamic solver → Contact properties: computes properties
code/core_functions.hpp - Thermodynamic solver → SIMD backend: uses vectorization
code/core_functions.hpp - Interaction matrix → Parsing helpers: uses helpers
code/interaction_matrix.hpp - Shared state → Model parameters: defines state
code/general.hpp