vibeqc.output.formats.qvf.write_qvf¶
- vibeqc.output.formats.qvf.write_qvf(stem, plan, *, compression=8, volume_dtype='float32', **context)[source]¶
Write
{stem}.qvf.- Parameters:
plan (OutputPlan) –
OutputPlandeclaring what artefacts are expected.compression (int) –
zipfile.ZIP_DEFLATED(default),zipfile.ZIP_STORED, or the zstd constant ifzipfile-zstdis importable.volume_dtype (str) –
"float32"(default) or"float64"for volumetric grids.**context (Any) –
Data objects the section writers need. Typical keys:
molecule/system—MoleculeorPeriodicSystemresult— converged SCF result objectbasis—BasisSetpopulation_summary—PopulationSummaryhessian_result—HessianResultband_structure—BandStructuretrajectory_frames— list ofMoleculetrajectory_energies— list of float (Hartree)trajectory_rms_grad— list of float (optional)bibtex_content— str, the full BibTeX file bodyvolume_data— dict of{label: (data_3d, origin, span)}mo_data— list of dicts with keyslabel,data,origin,span,band_index,energy_eh,occupation,spin,componentspin_data— dict of{label: (data_3d, origin, span)}elf_data— dict of{label: (data_3d, origin, span)}generic_volume_data— dict of{label: (data_3d, origin, span)}forvolume.generic(escape hatch for any scalar field that doesn’t fit density/orbital/spin/elf/difference)potential_data— dict of{label: (data_3d, origin, span)}forvolume.potential(electrostatic potential grid; same member structure asvolume.density, QVF spec § 4.10)rdg_data— dict of{label: (data_3d, origin, span)}forvolume.rdg(reduced density gradient for NCI analysis; same member structure, QVF spec § 4.11)diff_data— dict of{label: spec}for difference density (e.g. ρ(product) − ρ(reactant)).specis either a 3-tuple(data_3d, origin, span)for an unannotated difference, or a dict with keysdata,origin,span, and optionallyoperand_a(str, section id of minuend),operand_b(str, section id of subtrahend),description.reaction_path— dict{frames, waypoints, energies?, reaction_coordinate?}for a self-containedreaction.pathsection.waypointsis a list of{frame_index, label, kind, energy_eh?}records wherekindis one of"reactant" | "transition_state" | "intermediate" | "product" | "point".reaction_waypoints— dict{trajectory_ref, waypoints, reaction_coordinate?}for a lightweightreaction.waypointsannotation over an already-emittedtrajectorysection.trajectory_refmust name a trajectory section emitted in the same archive; the writer raises if it doesn’t resolve.viewer_defaults— dict written verbatim to the manifest root. Recognised keys:auto_open(list of section ids), per-section render hints, andbookmarks(ordered list of{name, camera}records using the VTK camera model).thermochemistry_data— dict with keyszpve_eh,enthalpy_eh,entropy_cal_mol_k,gibbs_free_energy_eh,temperature_k,pressure_atmfor a rootthermochemistryfield (QVF spec § 4.7).dipole_moment_data— dict with keystotal_debye,vector_debye(3-vector),origin(str) for a rootdipole_momentfield (QVF spec § 4.7).constraints_data— dict with keysfrozen_atoms(list of int),distance_constraints(list of{atoms, target_angstrom}) for a rootconstraintsfield (QVF spec § 4.7).extensions— dict of{vendor_ns: {version, schema_uri?, critical?}}for the rootextensionsgovernance block (QVF spec § 5.4).eos_data— dict with keysvolumes(float64 [n_points]),energies(float64 [n_points]),fit(dict withmodel,V0,E0,B0,B0_prime, etc.) for anequation_of_statesection (QVF spec § 4.14).fermi_surface_data— dict with keysnk1,nk2,nk3(int),energies(float64 [nk1, nk2, nk3, n_bands]),band_indices(list of int),lattice_vectors(3×3),fermi_energy_ev(float), and optionaln_spin(int, default 1) for afermi_surfacesection (QVF spec § 4.12).wf_data— dict with keysbasis(list of shell dicts),mo_metadata(dict),mo_coefficients(2D || [n_mo, n_ao]), and optionallymo_coefficients_alpha/mo_coefficients_betafor unrestrictedao_data— list of dicts fromqvf_ao_data(), each with keyslabel,data(3-D array),origin,span,ao_metadata,section_id. Emitted asbasis.aosections.
- Returns:
The on-disk
{stem}.qvfpath.- Return type: