pysdic.SDICAnalysis.pack_unknowns#

SDICAnalysis.pack_unknowns(unknowns)[source]#

The complete vector of unknowns \(\vec{p}\) of the current state of the analysis (e.g. the initial parameters p0 without parametrization): the total displacements of the optimized frames, then the parameters of the optimized transformations.

p = numpy.concatenate(
    [analysis.get_displacement(frame).ravel(order="F") for frame in unknowns.optimized_frames]
    + [analysis.get_transformation_parameters(kind, index) for kind, index in unknowns.optimized_transformations]
)

Warning

With a parametrization, use parametrization.reparametrized_pack() (see pysdic.SDICFixedParametrization).

Returns:

The vector of unknowns, of shape \((N_f N_v E + \sum n_p,)\) (n_unknowns()).

Return type:

numpy.ndarray

Raises:

ValueError – If the unknowns are not valid or the displacement of an optimized frame is not set.

Parameters:

unknowns (SDICUnknowns)