Geometry input documentation

Initialize geometry parameters.

Used to initialize class qimpy.transport.Geometry.

YAML template:

vertices: [list of list of float,, or <class 'numpy.ndarray'> or <class 'torch.Tensor'>]  # Caretsian vertex coordinates (n_vertices x 2).
edges: [list of list of int,, or <class 'numpy.ndarray'> or <class 'torch.Tensor'>]       # Indices of vertices in edges (n_edges x 4).
quads: [list of list of int,, or <class 'numpy.ndarray'> or <class 'torch.Tensor'>]       # Indices of edges in each quad (n_quads x 4).

Parameters:

vertices

Type: list of list of float,, or <class ‘numpy.ndarray’> or <class ‘torch.Tensor’>

Caretsian vertex coordinates (n_vertices x 2).

edges

Type: list of list of int,, or <class ‘numpy.ndarray’> or <class ‘torch.Tensor’>

Indices of vertices in edges (n_edges x 4). Each edge should have three 0-based indices into the vertices array, for the starting, end and mid point. The midpoint index can be set to -1 to make the edge linear (autocompute midpoint from extremes). The final entry is the number of subdivisions, or -1 for automatic

quads

Type: list of list of int,, or <class ‘numpy.ndarray’> or <class ‘torch.Tensor’>

Indices of edges in each quad (n_quads x 4).