pub struct BoutGrid {Show 13 fields
pub nx: usize,
pub ny: usize,
pub r_grid: Array2<f64>,
pub z_grid: Array2<f64>,
pub psi_n: Array2<f64>,
pub b_mag: Array2<f64>,
pub g_xx: Array2<f64>,
pub g_yy: Array2<f64>,
pub g_zz: Array2<f64>,
pub g_xy: Array2<f64>,
pub jacobian: Array2<f64>,
pub q_profile: Vec<f64>,
pub b_toroidal: f64,
}Expand description
BOUT++ field-aligned grid with metric tensors.
Fields§
§nx: usizeNumber of radial points.
ny: usizeNumber of poloidal points.
r_grid: Array2<f64>R coordinates on the grid [nx × ny].
z_grid: Array2<f64>Z coordinates on the grid [nx × ny].
psi_n: Array2<f64>Normalised poloidal flux ψ_N on the grid [nx × ny].
b_mag: Array2<f64>Magnetic field magnitude |B| [T] on the grid [nx × ny].
g_xx: Array2<f64>Contravariant metric g^{xx} (radial-radial) [nx × ny].
g_yy: Array2<f64>Contravariant metric g^{yy} (poloidal-poloidal) [nx × ny].
g_zz: Array2<f64>Contravariant metric g^{zz} (toroidal-toroidal) [nx × ny].
g_xy: Array2<f64>Contravariant metric g^{xy} (radial-poloidal) [nx × ny].
jacobian: Array2<f64>Jacobian J [nx × ny].
q_profile: Vec<f64>Safety factor q(ψ) [nx].
b_toroidal: f64Toroidal field B_toroidal [T].
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BoutGrid
impl RefUnwindSafe for BoutGrid
impl Send for BoutGrid
impl Sync for BoutGrid
impl Unpin for BoutGrid
impl UnwindSafe for BoutGrid
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