YAML-related functions

DFTraMO.dftramo_runMethod
dftramo_run(filename::AbstractString)

Automatically runs DFTraMO from a configuration yaml file.

source
DFTraMO.parse_runsMethod
parse_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}.

source
DFTraMO.parse_sitesMethod
parse_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
source
DFTraMO.parse_yaml_energyMethod
DFTraMO.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.

source
DFTraMO.parse_yaml_lengthMethod
DFTraMO.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.

source
DFTraMO.run_ramoMethod
run_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)

source