fedoo.constitutivelaw.CompositeUD.get_H_condensed

static CompositeUD.get_H_condensed(H, kept)

Statically condense a 3D tangent onto the Voigt slots kept.

The stress of the other slots is zero: the returned tangent is the Schur complement \(H_{kk} - H_{kc} H_{cc}^{-1} H_{ck}\). Its rows and columns of the condensed slots are zero.

Parameters:
  • H (array_like) – Full 3D tangent, of shape (6, 6) or (6, 6, n_points). Entries may be scalars or point-wise arrays.

  • kept (sequence of int) – Voigt slots whose strain is prescribed, e.g. (0,) for a uniaxial stress state.

Returns:

Condensed tangent with the shape of the dense input.

Return type:

numpy.ndarray

Notes

A condensed slot whose row and column are zero carries no stiffness and no coupling: it is left out of the Schur complement. A tangent already condensed (all such slots zero) is therefore returned unchanged on its kept block, and the operation is idempotent.