CurvCoords#
- class cherab.lhd.emc3.curvilinear.CurvCoords(grid: CenterGrid)Source#
Bases:
objectClass for curvilinear coordinates.
This class is used to represent curvilinear coordinates of EMC3-EIRENE-defined center grids, and calculate co/contra-variant bases, metric tensors, etc.
This curvilinear coordinates follows the radial, poloidal and toroidal directions of the magnetic field lines, which are based on the EMC3-EIRENE-defined center grids.
- Parameters:
- grid
CenterGrid Instance of
CenterGridclass.
- grid
Methods
compute_metric(v1, v2)Compute metric tensor.
Attributes
Radial covariant basis \(\mathbf{b}_\rho\).
Radial contravariant basis \(\mathbf{b}^\rho\).
Poloidal contravariant basis \(\mathbf{b}^\theta\).
Toroidal contravariant basis \(\mathbf{b}^\zeta\).
Poloidal covariant basis \(\mathbf{b}_\theta\).
Toroidal covariant basis \(\mathbf{b}_\zeta\).
CenterGridinstance.Jacobian determinant of EMC3-EIRENE-defined center grids.