pub struct RFHeatingSystem {
pub omega: f64,
pub b0: f64,
pub r0: f64,
}Expand description
ICRH ray tracing system.
Fields§
§omega: f64§b0: f64§r0: f64Implementations§
Source§impl RFHeatingSystem
impl RFHeatingSystem
Sourcepub fn resonance_radius(&self) -> FusionResult<f64>
pub fn resonance_radius(&self) -> FusionResult<f64>
Ion cyclotron resonance radius.
ω_ci = qB/m → B_res = ωm/q → R_res = B0·R0/B_res
Sourcepub fn trace_single_ray(
&self,
r0: f64,
z0: f64,
kr0: f64,
kz0: f64,
n_steps: usize,
_dt_hint: f64,
) -> FusionResult<RayTraceResult>
pub fn trace_single_ray( &self, r0: f64, z0: f64, kr0: f64, kz0: f64, n_steps: usize, _dt_hint: f64, ) -> FusionResult<RayTraceResult>
Trace a single ray from given initial conditions.
Uses adaptive time stepping: estimates RHS magnitude and scales dt so the spatial displacement per step is bounded.
Sourcepub fn trace_rays(&self) -> FusionResult<Vec<RayTraceResult>>
pub fn trace_rays(&self) -> FusionResult<Vec<RayTraceResult>>
Trace all rays from the antenna array. Python lines 126-157.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RFHeatingSystem
impl RefUnwindSafe for RFHeatingSystem
impl Send for RFHeatingSystem
impl Sync for RFHeatingSystem
impl Unpin for RFHeatingSystem
impl UnwindSafe for RFHeatingSystem
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> 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