pub struct TidalResponse {
pub love_number: f64,
pub quality_factor: f64,
pub mean_displacement_m: f64,
}Fields§
§love_number: f64§quality_factor: f64§mean_displacement_m: f64Implementations§
Source§impl TidalResponse
impl TidalResponse
Sourcepub fn current() -> Self
pub fn current() -> Self
Examples found in repository?
examples/tidal_effects.rs (line 2)
1fn main() {
2 let r = ioss::physics::tides::TidalResponse::current();
3 println!("Love k2: {}", r.love_number);
4 println!("Mean displacement: {} m", r.mean_displacement_m);
5 println!(
6 "Dissipation: {:.2e} W",
7 ioss::physics::tides::dissipation_power_w(r)
8 );
9 println!(
10 "Tidal accel 0 deg: {:.2e} m/s^2",
11 ioss::physics::tides::jupiter_tidal_acceleration(0.0)
12 );
13 println!(
14 "Tidal bulge sub-Jupiter: {:.4} m",
15 ioss::physics::tides::tidal_bulge_m(r, 0.0)
16 );
17}Trait Implementations§
Source§impl Clone for TidalResponse
impl Clone for TidalResponse
Source§fn clone(&self) -> TidalResponse
fn clone(&self) -> TidalResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TidalResponse
impl Debug for TidalResponse
Source§impl PartialEq for TidalResponse
impl PartialEq for TidalResponse
impl Copy for TidalResponse
impl StructuralPartialEq for TidalResponse
Auto Trait Implementations§
impl Freeze for TidalResponse
impl RefUnwindSafe for TidalResponse
impl Send for TidalResponse
impl Sync for TidalResponse
impl Unpin for TidalResponse
impl UnsafeUnpin for TidalResponse
impl UnwindSafe for TidalResponse
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