create_dmats_pairs_subdomains#

cherab.lhd.emc3.inversion.derivative.create_dmats_pairs_subdomains(zone1: str = 'zone0', zone2: str = 'zone11', index_type: str = 'coarse', mode: Literal['strict', 'ii', 'ii+no-metric', 'flux'] = 'strict', min_points: int = 200, ratio: float = 1.0) list[tuple[csr_matrix, csr_matrix]]Source#

Create derivative matrices for each coordinate pair considering the connection between two subdomains.

This function is used to conbaine two derivative matrices both of which are connected along the toroidal direction like zone0 and zone11.

Parameters:
zone1str, optional

Zone name of the first subdomain, by default “zone0”.

zone2str, optional

Zone name of the second subdomain, by default “zone11”.

index_typestr, optional

Index type, by default “coarse”.

mode{“strict”, “ii”, “ii+no-metric”, “flux”}, optional

Derivative matrix mode, by default “strict”.

min_pointsint, optional

Minimum number of points to be used for the boundary map, by default 200.

ratiofloat, optional

Ratio of the number of points to be used for the boundary map, by default 1.0.

Returns:
list[tuple[csr_matrix, csr_matrix]]

List of derivative matrices for each coordinate pair.