pub struct GpuMdAtom {
pub pos: [f32; 3],
pub vel: [f32; 3],
pub force: [f32; 3],
pub mass: f32,
pub charge: f32,
}Expand description
A single MD atom stored in the GPU buffer.
Fields§
§pos: [f32; 3]Atom position [x, y, z] in Angstroms.
vel: [f32; 3]Atom velocity [vx, vy, vz] in Å/ps.
force: [f32; 3]Current force on atom [fx, fy, fz] in kJ/(mol·Å).
mass: f32Atom mass in atomic mass units (amu).
charge: f32Partial charge in elementary charge units.
Trait Implementations§
impl Copy for GpuMdAtom
impl StructuralPartialEq for GpuMdAtom
Auto Trait Implementations§
impl Freeze for GpuMdAtom
impl RefUnwindSafe for GpuMdAtom
impl Send for GpuMdAtom
impl Sync for GpuMdAtom
impl Unpin for GpuMdAtom
impl UnsafeUnpin for GpuMdAtom
impl UnwindSafe for GpuMdAtom
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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