How aromanro/hartreefock works
Project type and purpose
• This is a Windows desktop scientific‐computing application written in C++ using MFC (Document-View).
• It implements the Hartree–Fock/self-consistent field method and related post-HF methods (MP2, DIIS, CCSD, etc.), with a GUI front end for configuring molecules, basis sets and viewing results.
File structure
• Top level:
• HartreeFock.sln + .vcxproj files: Visual Studio solution and project (MFC Doc-View).
• HartreeFock/ directory: source code subdivided by function – UI (.cpp/.h for Views, Frames, PropertyPages, Charts); core algorithms (HartreeFockAlgorithm, RestrictedHartreeFock, UnrestrictedHartreeFock, CCSD, etc.); domain model (Atom, Molecule, Basis, Orbitals); data/repositories (DataSets, IntegralsRepository); utilities (MathUtils, ChemUtils, BoysFunctions).
• basis files (.nw, .txt) under HartreeFock/ and resources (.res, bitmaps) – static inputs for basis sets.
• Patterns: MFC Document-View (Doc=HartreeFockDoc, View=HartreeFockView), Repository for integrals, separation into Presentation, Domain, Data layers, and multi-threading (ComputationThread).
Key insights from README
• Describes how users instantiate Atom and Molecule objects from the ‘basis’, set coordinates, and invoke RestrictedHartreeFockAlgorithm.
• Mentions support for multiple basis sets in parsed .nw format, and added algorithms (DIIS, MP2, CCSD, CIS, TDHF/RPA).
• Core usage: UI constructs systems::Molecule, calls HartreeFockAlgorithm.Init(&Molecule), then .Calculate().