CurvCoords#

class cherab.lhd.emc3.curvilinear.CurvCoords(grid: CenterGrid)Source#

Bases: object

Class 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:
gridCenterGrid

Instance of CenterGrid class.

Methods

compute_metric(v1, v2)

Compute metric tensor.

Attributes

b_rho

Radial covariant basis \(\mathbf{b}_\rho\).

b_sup_rho

Radial contravariant basis \(\mathbf{b}^\rho\).

b_sup_theta

Poloidal contravariant basis \(\mathbf{b}^\theta\).

b_sup_zeta

Toroidal contravariant basis \(\mathbf{b}^\zeta\).

b_theta

Poloidal covariant basis \(\mathbf{b}_\theta\).

b_zeta

Toroidal covariant basis \(\mathbf{b}_\zeta\).

grid

CenterGrid instance.

jacobian

Jacobian determinant of EMC3-EIRENE-defined center grids.