xnn.common.deploy.domain.DomainPlan#
- class xnn.common.deploy.domain.DomainPlan(grid, rank, world, owned, ghosts, ghost_shifts, send_rows, send_counts, recv_counts, edge_index, cell_shifts, pbc, atomic_numbers, total_charge, spin_multiplicity, reference, cell, counts, order, need, skin)[source]#
Bases:
objectThe atoms one process evaluates, its exchanges and its neighbor list.
Local atoms are the owned atoms followed by the ghosts.
- Variables:
world (rank,) – The process (sub-domain) the plan belongs to and the number of processes.
owned (Tensor) – Owned atoms
(n_owned,), in ascending order.ghosts (Tensor) – Atom behind every ghost
(n_ghost,), grouped by owner.ghost_shifts (Tensor or None) – Periodic image of every ghost relative to its owner’s copy
(n_ghost, 3);Nonefor a molecule.send_rows (Tensor) – Owned atoms (rows of
owned) sent to the other processes, grouped by receiving process.recv_counts (send_counts,) – Rows sent to and received from every process.
cell_shifts (edge_index,) – Neighbor list of the local atoms, as in
AtomicGraph, out to the cutoff plus the skin; with the one-cutoff shell, only the edges into owned atoms.pbc (Tensor or None) – Periodicity of the local atoms
(3,): the periodic axes that are not cut.Nonewhen no axis stays periodic.atomic_numbers (Tensor) – Atomic numbers of every atom of the structure
(N,).spin_multiplicity (total_charge,) – Of the structure, as in its graph.
reference (Tensor) – Positions of the owned atoms when the plan was built
(n_owned, 3), float64: fractional and wrapped into the cell for a periodic structure, Cartesian for a molecule.cell (Tensor or None) – The cell when the plan was built
(3, 3), float64;Nonefor a molecule.order (Tensor) – The owned atoms of every process, process by process
(N,).need (float) – Thickness of the ghost shell the model needs (one cutoff or the receptive field).
skin (float) – Thickness added to the shell and the neighbor list.
- Parameters:
grid (tuple)
rank (int)
world (int)
owned (Tensor)
ghosts (Tensor)
ghost_shifts (Tensor | None)
send_rows (Tensor)
send_counts (list)
recv_counts (list)
edge_index (Tensor)
cell_shifts (Tensor)
pbc (Tensor | None)
atomic_numbers (Tensor)
total_charge (Tensor | None)
spin_multiplicity (Tensor | None)
reference (Tensor)
cell (Tensor | None)
counts (list)
order (Tensor)
need (float)
skin (float)