YAML-related functions
DFTraMO.dftramo_run
— Methoddftramo_run(filename::AbstractString)
Automatically runs DFTraMO from a configuration yaml file.
DFTraMO.parse_runs
— Methodparse_runs(runs::Vector{Dict{Any, Any}}, dftinfo::raMODFTData, origin::InputOrigin) -> runlist::Vector{RunInfo}
Parse the run section of the input yaml file and returns Vector{RunInfo}.
DFTraMO.parse_sites
— Methodparse_sites(sites::AbstractVector{<:AbstractString}) -> site_final::Vector{Int}
Parses a portion of the "sites" lines in the yaml file to return a Vector{Int} with valid indices for targets. e.g.,
julia> parse_sites(["1:3", "3", "18:2:20"])
5-element Vector{Int64}:
1
2
3
18
20
DFTraMO.parse_yaml_energy
— MethodDFTraMO.parse_yaml_energy(x, i::InputOrigin)
Converts a string or number representing an energy input, possibly with units given, into an energy in hartrees usable by DFTraMO. Units are not case-sensitive, and abbreviations are accepted as well as full unit names.
DFT-raMO will automatically assume quantities without explicit unit specification match the units of the software package which generated the input. If the software package is not specified or supported, DFT-raMO will assume Hartree atomic units.
DFTraMO.parse_yaml_length
— MethodDFTraMO.parse_yaml_length(x, i::InputOrigin)
Converts a string or number representing an length input, possibly with units given, into a length in bohr usable by DFTraMO. Units are not case-sensitive, and abbreviations are accepted as well as full unit names.
Currently supported units are bohr (bohr
, a0
, or au
), angstrom (Å
, ang
, or angstrom
), nanometer (nm
), and picometer (pm
).
DFT-raMO will automatically assume quantities without explicit unit specification match the units of the software package which generated the input. If the software package is not specified or supported, DFT-raMO will assume Hartree atomic units.
DFTraMO.read_yaml
— MethodDFTraMO.read_yaml(file)
Reads an input yaml and returns an raMOInput object.
DFTraMO.run_ramo
— Methodrun_ramo(psphere, psphere_sites, r, ramostatus; low_psphere = Vector{Int}(undef, 0))
Runs the basic raMO code (necessary in a separate function for auto_psphere functionality)
DFTraMO.target_lcao
— Methodtarget_lcao(yaml::Dict) -> target_orbital
Parses the yaml file for LCAOs.