q_from_qid

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

Calculate q’s from all qid’s.

Parameters:
qarray[m x 1]

Force density vector.

indlist[k]

List with the indices of the k independent edges.

Edinvarray[(m - k) x ni]

Inverse of equilibrium matrix sliced to the dependent edges.

Eiarray[ni x k]

Equilibrium matrix sliced to the independent edges.

pharray[ni x 1]

Stack of the horizontal loads applied to the free nodes [pxi, pyi].

Returns:
qarray [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})