XtbResults

Struct XtbResults 

Source
pub struct XtbResults { /* private fields */ }
Expand description

XTB singlepoint results object

Implementations§

Source§

impl XtbResults

Source

pub fn get_energy(&self, env: &XtbEnvironment) -> Result<f64>

Get singlepoint energy in Hartree

Source

pub fn get_dipole(&self, env: &XtbEnvironment) -> Result<[f64; 3]>

Get dipole in e Bohr

Source

pub fn get_gradient( &self, env: &XtbEnvironment, gradient: &mut [f64], ) -> Result<()>

Get gradient in Hartree / Bohr

Source

pub fn get_bond_orders( &self, env: &XtbEnvironment, bond_orders: &mut [f64], ) -> Result<()>

Query singlepoint results object for bond orders

Source

pub fn get_charges( &self, env: &XtbEnvironment, charges: &mut [f64], ) -> Result<()>

Query singlepoint results object for partial charges in e

Source

pub fn get_virial(&self, env: &XtbEnvironment, virial: &mut [f64]) -> Result<()>

Query singlepoint results object for virial in Hartree

Source

pub fn get_nao(&self, env: &XtbEnvironment) -> Result<usize>

Query singlepoint results object for the number of basis functions

Source

pub fn get_orbital_eigenvalues( &self, env: &XtbEnvironment, emo: &mut [f64], ) -> Result<()>

Query singlepoint results object for orbital energies in Hartree [nao]

Source

pub fn get_orbital_occupations( &self, env: &XtbEnvironment, focc: &mut [f64], ) -> Result<()>

Query singlepoint results object for occupation numbers [nao]

Source

pub fn get_orbital_coefficients( &self, env: &XtbEnvironment, forb: &mut [f64], ) -> Result<()>

Query singlepoint results object for orbital coefficients [nao][nao]

Trait Implementations§

Source§

impl Drop for XtbResults

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.