ssf_trigonometric

mdcraft.analysis.structure.ssf_trigonometric(qrs: ndarray[float]) ndarray[float][source]

Computes the static structure factors using a two-dimensional NumPy array containing \(\mathbf{q}\cdot\mathbf{r}\) using the trigonometric form.

\[NS(q)=\left\langle\left(\sum_{j=1}^N \cos{(\mathbf{q}\cdot\mathbf{r}_j)}\right)^2+\left( \sum_{j=1}^N\sin{(\mathbf{q}\cdot\mathbf{r}_j)} \right)^2\right\rangle\]
Parameters:
qrsnp.ndarray

Inner products \(\mathbf{q}\cdot\mathbf{r}_j\).

Shape: \((N_q,\,N_r)\).

Returns:
ssfnp.ndarray

Static structure factors.

Shape: \((N_q,)\).