pub struct Nbands(/* private fields */);Implementations§
Source§impl Nbands
impl Nbands
Sourcepub fn default_value(
electronic_param: ElectronicParam,
spin_polarised: SpinPolarised,
extra_bands: Option<ExtraBands>,
) -> Self
pub fn default_value( electronic_param: ElectronicParam, spin_polarised: SpinPolarised, extra_bands: Option<ExtraBands>, ) -> Self
If NEXTRA_BANDS is specified and SPIN_POLARIZED : FALSE: NBANDS : (NELECTRONS/2) + NEXTRA_BANDS Or, if SPIN_POLARIZED : TRUE: NBANDS : max(NUP, NDOWN) + NEXTRA_BANDS. If PERC_EXTRA_BANDS is specified and SPIN_POLARIZED : FALSE: NBANDS : (NELECTRONS/2) × [ 1 + (PERC_EXTRA_BANDS/100)] Or, if SPIN_POLARIZED : TRUE: NBANDS : max(NUP, NDOWN) × [ 1 + (PERC_EXTRA_BANDS/100)] If NBANDS, NEXTRA_BANDS and PERC_EXTRA_BANDS are not specified and FIX_OCCUPANCY : TRUE, then, if SPIN_POLARIZED : FALSE: NBANDS : NELECTRONS/2. Or, if SPIN_POLARIZED : TRUE: NBANDS : max(NUP, NDOWN) If FIX_OCCUPANCY : FALSE, these default values of NBANDS will be multiplied by 1.2.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Nbands
impl<'de> Deserialize<'de> for Nbands
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 KeywordDisplay for Nbands
impl KeywordDisplay for Nbands
Source§impl Ord for Nbands
impl Ord for Nbands
Source§impl PartialOrd for Nbands
impl PartialOrd for Nbands
impl Copy for Nbands
impl Eq for Nbands
impl StructuralPartialEq for Nbands
Auto Trait Implementations§
impl Freeze for Nbands
impl RefUnwindSafe for Nbands
impl Send for Nbands
impl Sync for Nbands
impl Unpin for Nbands
impl UnwindSafe for Nbands
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
Mutably borrows from an owned value. Read more