genericROM.DataCompressors.FusedSnapshotPOD

CompressData(collectionProblemData, solutionName, tolerance=None, snapshotCorrelationOperator=None, snapshots=None, compressSolutions=False, nbModes=None)[source]

Computes a reducedOrderBasis using the SnapshotPOD algorithm, from the snapshots contained in the iterator snapshotsIterator, which a correlation operator between the snapshots defined by the matrix snapshotCorrelationOperator, with tolerance as target accuracy of the data compression. If a reducedOrderBasis prexists, it is updated using the snapshots from the solutions.

Parameters
  • collectionProblemData (CollectionProblemData) – input collectionProblemData containing the data

  • solutionName (str) – name of the solutions from which snapshots are taken

  • tolerance (float, cannot be provided with nbModes) – target accuracy of the data compression

  • snapshotCorrelationOperator (scipy.sparse.csr_matrix, optional) – correlation operator between the snapshots

  • snapshots (np.ndarray, optional) – of size (nbSnapshots, numberOfDofs): snapshots of the solutions to compress

  • compressSolutions (bool, optional) – True to compresse solutions using the constructed reducedOrderBasis

  • nbModes (int, cannot be provided with tolerance) – the number of keps snapshot POD modes