Skip to main content

UpfHeader

Struct UpfHeader 

Source
pub struct UpfHeader {
Show 26 fields pub generated: Option<String>, pub author: Option<String>, pub date: Option<String>, pub comment: Option<String>, pub element: String, pub pseudo_type: String, pub relativistic: String, pub is_ultrasoft: bool, pub is_paw: bool, pub is_coulomb: bool, pub has_so: bool, pub has_wfc: bool, pub has_gipaw: bool, pub paw_as_gipaw: bool, pub core_correction: bool, pub functional: String, pub z_valence: f64, pub total_psenergy: Option<f64>, pub wfc_cutoff: Option<f64>, pub rho_cutoff: Option<f64>, pub l_max: i32, pub l_max_rho: i32, pub l_local: i32, pub mesh_size: usize, pub number_of_wfc: usize, pub number_of_proj: usize,
}
Expand description

Public UPF data model. Metadata carried by the <PP_HEADER> section.

PP stands for pseudopotential.

Fields§

§generated: Option<String>

Generator identifier or provenance string.

§author: Option<String>

Author name recorded in the UPF file.

§date: Option<String>

Generation date recorded in the UPF file.

§comment: Option<String>

Free-form header comment.

§element: String

Chemical element symbol, for example Si.

§pseudo_type: String

Pseudopotential type, for example NC, US, or PAW.

NC stands for norm-conserving. US stands for ultrasoft. PAW stands for projector augmented wave.

§relativistic: String

Relativistic treatment declared by the generator.

§is_ultrasoft: bool

Whether the pseudopotential is ultrasoft.

§is_paw: bool

Whether the pseudopotential is a projector augmented-wave potential.

§is_coulomb: bool

Whether the pseudopotential is a Coulomb potential.

§has_so: bool

Whether spin-orbit data is present.

§has_wfc: bool

Whether wavefunction data is present.

WFC stands for wavefunction.

§has_gipaw: bool

Whether GIPAW reconstruction data is present.

GIPAW stands for gauge including projector augmented wave.

§paw_as_gipaw: bool

Whether the PAW data can also be used as GIPAW data.

PAW stands for projector augmented wave. GIPAW stands for gauge including projector augmented wave.

§core_correction: bool

Whether a non-linear core correction is present.

NLCC stands for non-linear core correction.

§functional: String

Exchange-correlation functional label, such as PBE.

§z_valence: f64

Valence charge Z.

§total_psenergy: Option<f64>

Total pseudopotential energy.

§wfc_cutoff: Option<f64>

Suggested wavefunction cutoff.

WFC stands for wavefunction.

§rho_cutoff: Option<f64>

Suggested charge-density cutoff.

RHO is conventional shorthand for charge density.

§l_max: i32

Maximum angular momentum quantum number l.

§l_max_rho: i32

Maximum angular momentum quantum number used for the charge density.

RHO is conventional shorthand for charge density.

§l_local: i32

Angular momentum quantum number of the local channel.

§mesh_size: usize

Number of points in the radial mesh.

§number_of_wfc: usize

Number of wavefunctions.

WFC stands for wavefunction.

§number_of_proj: usize

Number of non-local projectors.

Trait Implementations§

Source§

impl Clone for UpfHeader

Source§

fn clone(&self) -> UpfHeader

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for UpfHeader

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for UpfHeader

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for UpfHeader

Source§

fn eq(&self, other: &UpfHeader) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for UpfHeader

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for UpfHeader

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,