NcCurrent
dexter.NcCurrent(path: str, interp_type: Interp1DType)
¶
Numerical plasma current reconstructed from a NetCDF file.
Related quantities are computed by interpolating over the data arrays.
Parameters:
-
path(str) –The path to the NetCDF file.
-
interp_type(Interp1DType) –The 1D Interpolation type.
Methods:
-
g_of_psi–The \(g(\psi)\) value in Normalized Units.
-
g_of_psip–The \(g(\psi_p)\) value in Normalized Units.
-
i_of_psi–The \(I(\psi)\) value in Normalized Units.
-
i_of_psip–The \(I(\psi_p)\) value in Normalized Units.
-
dg_dpsi–The \(dg(\psi)/d\psi\) value in Normalized Units.
-
dg_dpsip–The \(dg(\psi_p)/d\psi_p\) value in Normalized Units.
-
di_dpsi–The \(dg(\psi)/d\psi\) value in Normalized Units.
-
di_dpsip–The \(dg(\psi_p)/d\psi_p\) value in Normalized Units.
-
plot_g_of_psi–Plots \(g(\psi)\).
-
plot_g_of_psip–Plots \(g(\psi_p)\).
-
plot_i_of_psi–Plots \(I(\psi)\).
-
plot_i_of_psip–Plots \(I(\psi_p)\).
-
plot_dg_dpsi–Plots \(dg(\psi)/d\psi\).
-
plot_dg_dpsip–Plots \(dg(\psi_p)/d\psi_p\).
-
plot_di_dpsi–Plots \(dI(\psi)/d\psi\).
-
plot_di_dpsip–Plots \(dI(\psi_p)/d\psi_p\).
Attributes:
-
psi_state(FluxState) –The state of the toroidal flux coordinate.
-
psip_state(FluxState) –The state of the poloidal flux coordinate.
-
path(str) –The path of the netCDF file.
-
netcdf_version(NetCDFVersion) –The netCDF convention version (SemVer).
-
equilibrium_type(EquilibriumType) –The object's equilibrium's type.
-
interp_type(str) –The Interpolation type.
-
psi_last(float) –The value of the last closed toroidal flux surface \(\psi_{LCFS}\) in Normalized Units.
-
psip_last(float) –The value of the last closed poloidal flux surface \(\psi_{p,LCFS}\) in Normalized Units.
-
psi_array(Array1) –The NetCDF \(\psi\) data.
-
psip_array(Array1) –The NetCDF \(\psi_p\) data.
-
g_array(Array1) –The NetCDF \(g\) data.
-
i_array(Array1) –The NetCDF \(I\) data.
dexter.NcCurrent.psi_state: FluxState
property
¶
The state of the toroidal flux coordinate.
dexter.NcCurrent.psip_state: FluxState
property
¶
The state of the poloidal flux coordinate.
dexter.NcCurrent.path: str
property
¶
The path of the netCDF file.
dexter.NcCurrent.netcdf_version: NetCDFVersion
property
¶
The netCDF convention version (SemVer).
dexter.NcCurrent.equilibrium_type: EquilibriumType
property
¶
The object's equilibrium's type.
dexter.NcCurrent.interp_type: str
property
¶
The Interpolation type.
dexter.NcCurrent.psi_last: float
property
¶
The value of the last closed toroidal flux surface \(\psi_{LCFS}\) in Normalized Units.
dexter.NcCurrent.psip_last: float
property
¶
The value of the last closed poloidal flux surface \(\psi_{p,LCFS}\) in Normalized Units.
dexter.NcCurrent.psi_array: Array1
property
¶
The NetCDF \(\psi\) data.
dexter.NcCurrent.psip_array: Array1
property
¶
The NetCDF \(\psi_p\) data.
dexter.NcCurrent.g_array: Array1
property
¶
The NetCDF \(g\) data.
dexter.NcCurrent.i_array: Array1
property
¶
The NetCDF \(I\) data.
dexter.NcCurrent.g_of_psi(psi: ArrayLike) -> NDArray
¶
The \(g(\psi)\) value in Normalized Units.
Parameters:
-
psi(ArrayLike) –The toroidal flux \(\psi\) in Normalized Units.
dexter.NcCurrent.g_of_psip(psip: ArrayLike) -> NDArray
¶
The \(g(\psi_p)\) value in Normalized Units.
Parameters:
-
psip(ArrayLike) –The poloidal flux \(\psi_p\) in Normalized Units.
dexter.NcCurrent.i_of_psi(psi: ArrayLike) -> NDArray
¶
The \(I(\psi)\) value in Normalized Units.
Parameters:
-
psi(ArrayLike) –The toroidal flux \(\psi\) in Normalized Units.
dexter.NcCurrent.i_of_psip(psip: ArrayLike) -> NDArray
¶
The \(I(\psi_p)\) value in Normalized Units.
Parameters:
-
psip(ArrayLike) –The poloidal flux \(\psi_p\) in Normalized Units.
dexter.NcCurrent.dg_dpsi(psi: ArrayLike) -> NDArray
¶
The \(dg(\psi)/d\psi\) value in Normalized Units.
Parameters:
-
psi(ArrayLike) –The toroidal flux \(\psi\) in Normalized Units.
dexter.NcCurrent.dg_dpsip(psip: ArrayLike) -> NDArray
¶
The \(dg(\psi_p)/d\psi_p\) value in Normalized Units.
Parameters:
-
psip(ArrayLike) –The poloidal flux \(\psi\) in Normalized Units.
dexter.NcCurrent.di_dpsi(psi: ArrayLike) -> NDArray
¶
The \(dg(\psi)/d\psi\) value in Normalized Units.
Parameters:
-
psi(ArrayLike) –The toroidal flux \(\psi\) in Normalized Units.
dexter.NcCurrent.di_dpsip(psip: ArrayLike) -> NDArray
¶
The \(dg(\psi_p)/d\psi_p\) value in Normalized Units.
Parameters:
-
psip(ArrayLike) –The poloidal flux \(\psi\) in Normalized Units.
dexter.NcCurrent.plot_g_of_psi(points: int = 1000, data: bool = False, show: bool = True) -> Canvas
¶
Plots \(g(\psi)\).
Parameters:
-
points(int, default:1000) –The number of points in which to evaluate \(g(\psi)\). Defaults to 1000.
-
data(bool, default:False) –Whether or not to plot the data array points (numerical equilibria only). Defaults to False.
-
show(bool, default:True) –Whether or not to call
plt.show(). Defaults to True.
Returns:
-
Canvas–The produced
FigureandAx.
dexter.NcCurrent.plot_g_of_psip(points: int = 1000, data: bool = False, show: bool = True) -> Canvas
¶
Plots \(g(\psi_p)\).
Parameters:
-
points(int, default:1000) –The number of points in which to evaluate \(g(\psi_p)\). Defaults to 1000.
-
data(bool, default:False) –Whether or not to plot the data array points (numerical equilibria only). Defaults to False.
-
show(bool, default:True) –Whether or not to call
plt.show(). Defaults to True.
Returns:
-
Canvas–The produced
FigureandAx.
dexter.NcCurrent.plot_i_of_psi(points: int = 1000, data: bool = False, show: bool = True) -> Canvas
¶
Plots \(I(\psi)\).
Parameters:
-
points(int, default:1000) –The number of points in which to evaluate \(I(\psi)\). Defaults to 1000.
-
data(bool, default:False) –Whether or not to plot the data array points (numerical equilibria only). Defaults to False.
-
show(bool, default:True) –Whether or not to call
plt.show(). Defaults to True.
Returns:
-
Canvas–The produced
FigureandAx.
dexter.NcCurrent.plot_i_of_psip(points: int = 1000, data: bool = False, show: bool = True) -> Canvas
¶
Plots \(I(\psi_p)\).
Parameters:
-
points(int, default:1000) –The number of points in which to evaluate \(I(\psi_p)\). Defaults to 1000.
-
data(bool, default:False) –Whether or not to plot the data array points (numerical equilibria only). Defaults to False.
-
show(bool, default:True) –Whether or not to call
plt.show(). Defaults to True.
Returns:
-
Canvas–The produced
FigureandAx.
dexter.NcCurrent.plot_dg_dpsi(points: int = 1000, show: bool = True) -> Canvas
¶
Plots \(dg(\psi)/d\psi\).
Parameters:
-
points(int, default:1000) –The number of points in which to evaluate \(dg(\psi)/d\psi\). Defaults to 1000.
-
show(bool, default:True) –Whether or not to call
plt.show(). Defaults to True.
Returns:
-
Canvas–The produced
FigureandAx.
dexter.NcCurrent.plot_dg_dpsip(points: int = 1000, show: bool = True) -> Canvas
¶
Plots \(dg(\psi_p)/d\psi_p\).
Parameters:
-
points(int, default:1000) –The number of points in which to evaluate \(dg(\psi_p)/d\psi_p\). Defaults to 1000.
-
show(bool, default:True) –Whether or not to call
plt.show(). Defaults to True.
Returns:
-
Canvas–The produced
FigureandAx.
dexter.NcCurrent.plot_di_dpsi(points: int = 1000, show: bool = True) -> Canvas
¶
Plots \(dI(\psi)/d\psi\).
Parameters:
-
points(int, default:1000) –The number of points in which to evaluate \(dI(\psi)/d\psi\). Defaults to 1000.
-
show(bool, default:True) –Whether or not to call
plt.show(). Defaults to True.
Returns:
-
Canvas–The produced
FigureandAx.
dexter.NcCurrent.plot_di_dpsip(points: int = 1000, show: bool = True) -> Canvas
¶
Plots \(dI(\psi_p)/d\psi_p\).
Parameters:
-
points(int, default:1000) –The number of points in which to evaluate \(dI(\psi_p)/d\psi_p\). Defaults to 1000.
-
show(bool, default:True) –Whether or not to call
plt.show(). Defaults to True.
Returns:
-
Canvas–The produced
FigureandAx.