|
occ
|
file input and output module including reading wavefunction files More...
Namespaces | |
| namespace | basis |
| namespace | conversion |
| namespace | crystalgrower |
| namespace | impl |
| namespace | kmcpp |
Typedefs | |
| using | Position = std::array< double, 3 > |
| using | PointChargeList = std::vector< occ::core::PointCharge > |
Enumerations | |
| enum class | RIPolicy { Auto , None , JK , COSX } |
| enum class | GridFormat { GeneralGrid , PeriodicGrid } |
| enum class | GridDataType { Raw , Indexed } |
| enum class | JsonFormat { JSON , UBJSON , CBOR , BSON , MSGPACK } |
Functions | |
| template<typename PropertyFunctor > | |
| auto | make_adaptive_bounds (PropertyFunctor &func, const typename AdaptiveGridBounds< PropertyFunctor >::Parameters ¶ms={}) |
| occ::crystal::Crystal | load_crystal (const std::string &filename) |
| occ::core::Molecule | load_molecule (const std::string &filename) |
| template<typename T > | |
| OccInput | build (const std::string &filename) |
| template<typename T > | |
| OccInput | build (std::istream &file) |
| PointChargeFileReader::PointChargeList | point_charges_from_file (const std::string &) |
| PointChargeFileReader::PointChargeList | point_charges_from_string (const std::string &) |
| void | to_json (nlohmann::json &j, const SiteMultipoles &m) |
| void | from_json (const nlohmann::json &j, SiteMultipoles &m) |
| void | to_json (nlohmann::json &j, const MoleculeSite &s) |
| void | from_json (const nlohmann::json &j, MoleculeSite &s) |
| void | to_json (nlohmann::json &j, const MoleculeType &mt) |
| void | from_json (const nlohmann::json &j, MoleculeType &mt) |
| void | to_json (nlohmann::json &j, const IndependentMolecule &im) |
| void | from_json (const nlohmann::json &j, IndependentMolecule &im) |
| void | to_json (nlohmann::json &j, const BuckinghamPair &bp) |
| void | from_json (const nlohmann::json &j, BuckinghamPair &bp) |
| void | to_json (nlohmann::json &j, const Potentials &p) |
| void | from_json (const nlohmann::json &j, Potentials &p) |
| void | to_json (nlohmann::json &j, const Settings &s) |
| void | from_json (const nlohmann::json &j, Settings &s) |
| void | to_json (nlohmann::json &j, const ReferenceEnergies &r) |
| void | from_json (const nlohmann::json &j, ReferenceEnergies &r) |
| void | to_json (nlohmann::json &j, const Basis &b) |
| void | from_json (const nlohmann::json &j, Basis &b) |
| void | to_json (nlohmann::json &j, const CrystalData &c) |
| void | from_json (const nlohmann::json &j, CrystalData &c) |
| void | to_json (nlohmann::json &j, const StructureInput &si) |
| void | from_json (const nlohmann::json &j, StructureInput &si) |
| StructureInput | read_structure_json (const std::string &path) |
| void | write_structure_json (const std::string &path, const StructureInput &input) |
| void | write_force_field_json (const std::string &path, const Basis &basis, const std::string &title="") |
| Write only the force-field section (molecule definitions, multipoles, pair potentials, and model settings) to a standalone JSON file. | |
| bool | is_structure_format (const std::string &json_path) |
| Detect whether a JSON file uses the structure format. | |
| occ::core::Molecule | molecule_from_xyz_file (const std::string &) |
| occ::core::Molecule | molecule_from_xyz_string (const std::string &) |
| std::string | to_xyz_string (const occ::core::Molecule &molecule) |
| std::string | to_xyz_string (const occ::core::Molecule &molecule, const std::string &comment) |
| nlohmann::json | isosurface_to_json (const isosurface::Isosurface &surf) |
| void | write_isosurface_json (const std::string &filename, const isosurface::Isosurface &surf) |
| std::string | isosurface_to_json_string (const isosurface::Isosurface &surf) |
| void | write_obj_file (const std::string &filename, const isosurface::Isosurface &isosurface) |
| void | write_ply_file (const std::string &filename, const Eigen::Matrix3Xf &vertices, const Eigen::Matrix3Xi &faces) |
| void | write_ply_mesh (const std::string &filename, const isosurface::Isosurface &isosurface, bool binary=true) |
| JsonFormat | json_format (const std::string &str) |
| bool | valid_json_format_string (const std::string &str) |
file input and output module including reading wavefunction files
| using occ::io::PointChargeList = typedef std::vector<occ::core::PointCharge> |
| typedef std::array< double, 3 > occ::io::Position |
|
strong |
|
strong |
|
strong |
|
strong |
| OccInput occ::io::build | ( | const std::string & | filename | ) |
| OccInput occ::io::build | ( | std::istream & | file | ) |
| void occ::io::from_json | ( | const nlohmann::json & | j, |
| Basis & | b | ||
| ) |
| void occ::io::from_json | ( | const nlohmann::json & | j, |
| BuckinghamPair & | bp | ||
| ) |
| void occ::io::from_json | ( | const nlohmann::json & | j, |
| CrystalData & | c | ||
| ) |
| void occ::io::from_json | ( | const nlohmann::json & | j, |
| IndependentMolecule & | im | ||
| ) |
| void occ::io::from_json | ( | const nlohmann::json & | j, |
| MoleculeSite & | s | ||
| ) |
| void occ::io::from_json | ( | const nlohmann::json & | j, |
| MoleculeType & | mt | ||
| ) |
| void occ::io::from_json | ( | const nlohmann::json & | j, |
| Potentials & | p | ||
| ) |
| void occ::io::from_json | ( | const nlohmann::json & | j, |
| ReferenceEnergies & | r | ||
| ) |
| void occ::io::from_json | ( | const nlohmann::json & | j, |
| Settings & | s | ||
| ) |
| void occ::io::from_json | ( | const nlohmann::json & | j, |
| SiteMultipoles & | m | ||
| ) |
| void occ::io::from_json | ( | const nlohmann::json & | j, |
| StructureInput & | si | ||
| ) |
| bool occ::io::is_structure_format | ( | const std::string & | json_path | ) |
Detect whether a JSON file uses the structure format.
| nlohmann::json occ::io::isosurface_to_json | ( | const isosurface::Isosurface & | surf | ) |
| std::string occ::io::isosurface_to_json_string | ( | const isosurface::Isosurface & | surf | ) |
|
inline |
| occ::crystal::Crystal occ::io::load_crystal | ( | const std::string & | filename | ) |
| occ::core::Molecule occ::io::load_molecule | ( | const std::string & | filename | ) |
| auto occ::io::make_adaptive_bounds | ( | PropertyFunctor & | func, |
| const typename AdaptiveGridBounds< PropertyFunctor >::Parameters & | params = {} |
||
| ) |
| occ::core::Molecule occ::io::molecule_from_xyz_file | ( | const std::string & | ) |
| occ::core::Molecule occ::io::molecule_from_xyz_string | ( | const std::string & | ) |
| PointChargeFileReader::PointChargeList occ::io::point_charges_from_file | ( | const std::string & | ) |
| PointChargeFileReader::PointChargeList occ::io::point_charges_from_string | ( | const std::string & | ) |
| StructureInput occ::io::read_structure_json | ( | const std::string & | path | ) |
| void occ::io::to_json | ( | nlohmann::json & | j, |
| const Basis & | b | ||
| ) |
| void occ::io::to_json | ( | nlohmann::json & | j, |
| const BuckinghamPair & | bp | ||
| ) |
| void occ::io::to_json | ( | nlohmann::json & | j, |
| const CrystalData & | c | ||
| ) |
| void occ::io::to_json | ( | nlohmann::json & | j, |
| const IndependentMolecule & | im | ||
| ) |
| void occ::io::to_json | ( | nlohmann::json & | j, |
| const MoleculeSite & | s | ||
| ) |
| void occ::io::to_json | ( | nlohmann::json & | j, |
| const MoleculeType & | mt | ||
| ) |
| void occ::io::to_json | ( | nlohmann::json & | j, |
| const Potentials & | p | ||
| ) |
| void occ::io::to_json | ( | nlohmann::json & | j, |
| const ReferenceEnergies & | r | ||
| ) |
| void occ::io::to_json | ( | nlohmann::json & | j, |
| const Settings & | s | ||
| ) |
| void occ::io::to_json | ( | nlohmann::json & | j, |
| const SiteMultipoles & | m | ||
| ) |
| void occ::io::to_json | ( | nlohmann::json & | j, |
| const StructureInput & | si | ||
| ) |
| std::string occ::io::to_xyz_string | ( | const occ::core::Molecule & | molecule | ) |
| std::string occ::io::to_xyz_string | ( | const occ::core::Molecule & | molecule, |
| const std::string & | comment | ||
| ) |
|
inline |
| void occ::io::write_force_field_json | ( | const std::string & | path, |
| const Basis & | basis, | ||
| const std::string & | title = "" |
||
| ) |
Write only the force-field section (molecule definitions, multipoles, pair potentials, and model settings) to a standalone JSON file.
Despite the serialized key being "basis" for historical reasons, this is distinct from the GTO basis set used elsewhere in OCC.
| void occ::io::write_isosurface_json | ( | const std::string & | filename, |
| const isosurface::Isosurface & | surf | ||
| ) |
| void occ::io::write_obj_file | ( | const std::string & | filename, |
| const isosurface::Isosurface & | isosurface | ||
| ) |
| void occ::io::write_ply_file | ( | const std::string & | filename, |
| const Eigen::Matrix3Xf & | vertices, | ||
| const Eigen::Matrix3Xi & | faces | ||
| ) |
| void occ::io::write_ply_mesh | ( | const std::string & | filename, |
| const isosurface::Isosurface & | isosurface, | ||
| bool | binary = true |
||
| ) |
| void occ::io::write_structure_json | ( | const std::string & | path, |
| const StructureInput & | input | ||
| ) |