build_cell_geometry

jaxrens.constraints.cell_geometry.build_cell_geometry(n_atoms, max_vol_per_atom=100.0, min_vol_per_atom=1.0, min_aspect=0.5)[source]

Build a cell-geometry predicate.

Parameters:
  • n_atoms (int) – Number of atoms (volume-per-atom needs it; static).

  • max_vol_per_atom (float) – Upper bound on volume per atom.

  • min_vol_per_atom (float) – Lower bound on volume per atom.

  • min_aspect (float) – Minimum cell aspect ratio.

Returns:

is_valid(positions, types, cell) -> bool scalar predicate. Only cell is read; positions/types are accepted to satisfy the Constraint signature.

Return type:

object