pub struct BasisShellContraction<E, C> { /* private fields */ }
Expand description
Structure to handle all shell information for integrals.
Implementations§
Source§impl<E, C> BasisShellContraction<E, C>
impl<E, C> BasisShellContraction<E, C>
Sourcepub fn basis_shell(&self) -> &BasisShell
pub fn basis_shell(&self) -> &BasisShell
The basis function ordering information of this shell.
Sourcepub fn contraction(&self) -> &GaussianContraction<E, C>
pub fn contraction(&self) -> &GaussianContraction<E, C>
The Gaussian primitives in the contraction of this shell.
Sourcepub fn cart_origin(&self) -> &Point3<f64>
pub fn cart_origin(&self) -> &Point3<f64>
The Cartesian origin $\mathbf{R}
$ of this shell.
Sourcepub fn contraction_length(&self) -> usize
pub fn contraction_length(&self) -> usize
The number of primitive Gaussians in this shell.
Sourcepub fn apply_magnetic_field(
&mut self,
b: &Vector3<f64>,
g: &Point3<f64>,
) -> &mut Self
pub fn apply_magnetic_field( &mut self, b: &Vector3<f64>, g: &Point3<f64>, ) -> &mut Self
Applies a uniform magnetic field to the shell and sets its plane-wave $k
$ vector
according to
\mathbf{k} = \frac{1}{2} \mathbf{B} \times (\mathbf{R} - \mathbf{G}),
where $\mathbf{B}
$ is the uniform magnetic field vector, $\mathbf{R}
$ is the Cartesian
origin of this shell, and $\mathbf{G}
$ the gauge origin with respect to which the
magnetic field is defined. Both $\mathbf{R}
$ and $\mathbf{G}
$ are points in a
space-fixed coordinate system.
§Arguments
b
- The magnetic field vector $\mathbf{B}
$.g
- The gauge origin $\mathbf{G}
$.
Source§impl<E, C> BasisShellContraction<E, C>
impl<E, C> BasisShellContraction<E, C>
Sourcepub fn builder() -> BasisShellContractionBuilder<E, C>
pub fn builder() -> BasisShellContractionBuilder<E, C>
Returns a builder for BasisShellContraction
.
Source§impl BasisShellContraction<f64, f64>
impl BasisShellContraction<f64, f64>
Sourcepub fn renormalise(&mut self) -> &mut Self
pub fn renormalise(&mut self) -> &mut Self
Computes the self-overlap ($\mathcal{l}_2
$-norm) of this shell and divides in-place the
contraction coefficients by ther square root of this, so that the functions in the shell
are always normalised.
Sourcepub fn from_bse(
mol: &Molecule,
basis_name: &str,
cart: bool,
optimised_contraction: bool,
version: usize,
mol_bohr: bool,
force_renormalisation: bool,
) -> Result<Vec<Vec<Self>>, Error>
pub fn from_bse( mol: &Molecule, basis_name: &str, cart: bool, optimised_contraction: bool, version: usize, mol_bohr: bool, force_renormalisation: bool, ) -> Result<Vec<Vec<Self>>, Error>
Retrieves basis information from BasisSetExchange and constructs a vector of vectors of
Self
for a specified molecule. Each inner vector is for one atom in the molecule.
This method produces basis name and function ordering that are uniform across all atoms and shells. The result from this method can be mutated for finer control of this.
§Arguments
mol
- A molecule.basis_name
- The name of the basis set to be retrieved.cart
- A boolean indicating if the shell functions should have lexicographic Cartesian ordering. Iffalse
, the shell functions shall have increasing-$m
$ pure ordering instead.optimised_contraction
- A boolean indicating if the optimised contraction version of shells should be requested.version
- The requested version of the basis set information.mol_bohr
- A boolean indicating of the coordinates of the atoms inmol
are to be interpreted in units of Bohr. Iffalse
, they are assumed to be in units of Ångström and will be converted to Bohr.force_renormalisation
- A boolean indicating if each shell is renormalised by scaling its primitive contraction coefficients by the inverse square root of its $\mathcal{l}_2$-norm.
§Returns
A vector of vectors of Self
.
Trait Implementations§
Source§impl<E: Clone, C: Clone> Clone for BasisShellContraction<E, C>
impl<E: Clone, C: Clone> Clone for BasisShellContraction<E, C>
Source§fn clone(&self) -> BasisShellContraction<E, C>
fn clone(&self) -> BasisShellContraction<E, C>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl<E, C> Freeze for BasisShellContraction<E, C>
impl<E, C> RefUnwindSafe for BasisShellContraction<E, C>where
E: RefUnwindSafe,
C: RefUnwindSafe,
impl<E, C> Send for BasisShellContraction<E, C>
impl<E, C> Sync for BasisShellContraction<E, C>
impl<E, C> Unpin for BasisShellContraction<E, C>
impl<E, C> UnwindSafe for BasisShellContraction<E, C>where
E: UnwindSafe,
C: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Conv for T
impl<T> Conv for T
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self
to use its LowerExp
implementation when
Debug
-formatted.§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self
to use its LowerHex
implementation when
Debug
-formatted.§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self
to use its Octal
implementation when Debug
-formatted.§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self
to use its Pointer
implementation when
Debug
-formatted.§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self
to use its UpperExp
implementation when
Debug
-formatted.§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self
to use its UpperHex
implementation when
Debug
-formatted.§fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self
, then passes self.as_ref()
into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self
, then passes self.as_mut()
into the pipe
function.§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self
, then passes self.deref()
into the pipe function.§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self
to the equivalent element of its superset.§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B>
of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B>
of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R>
view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R>
view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target
of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target
of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap()
only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut()
only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow()
only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut()
only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref()
only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut()
only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref()
only in debug builds, and is erased in release
builds.