pub struct HamiltonianSystem {
pub h: HamiltonianFunction,
pub phase_space_dim: usize,
}Expand description
A Hamiltonian dynamical system (T*M, ω, H).
Fields§
§h: HamiltonianFunctionThe Hamiltonian function
phase_space_dim: usizeDimension of the phase space (always even: 2n)
Implementations§
Source§impl HamiltonianSystem
impl HamiltonianSystem
Sourcepub fn hamilton_equations(&self) -> Vec<String>
pub fn hamilton_equations(&self) -> Vec<String>
Hamilton’s equations of motion: dqᵢ/dt = ∂H/∂pᵢ, dpᵢ/dt = -∂H/∂qᵢ
Sourcepub fn is_integrable(&self) -> bool
pub fn is_integrable(&self) -> bool
Returns true when the system is (Liouville) integrable: has n independent first integrals in involution.
Sourcepub fn is_ergodic(&self) -> bool
pub fn is_ergodic(&self) -> bool
Returns true when the system is ergodic on its energy hypersurface.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HamiltonianSystem
impl RefUnwindSafe for HamiltonianSystem
impl Send for HamiltonianSystem
impl Sync for HamiltonianSystem
impl Unpin for HamiltonianSystem
impl UnsafeUnpin for HamiltonianSystem
impl UnwindSafe for HamiltonianSystem
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