q_from_qid

compas_tno.algorithms.q_from_qid(q, ind, Edinv, Ei, ph)[source]

Calculate q’s from all qid’s.

Parameters
  • q (array [mx1]) – Force density vector.

  • ind (list [k]) – List with the indices of the k independent edges.

  • Edinv (array [nix(m - k)]) – Inverse of equilibrium matrix sliced to the dependent edges.

  • Ei (array [nix(m - k)]) – Equilibrium matrix sliced to the independent edges.

  • ph (array [nix1]) – Stack of the horizontal loads applied to the free nodes [pxi, pyi].

Returns

q (array [mx1]) – Force densities on all edges.

Notes

Solver of the following equation: mathbf{q}_mathrm{id} = - mathbf{Ed}_mathrm{id}(mathbf{E}_mathrm{i} * mathbf{q}_mathrm{i} - mathbf{p}_mathrm{h})