Mordicus.Core.DataCompressors.SnapshotPOD module¶
- Mordicus.Core.DataCompressors.SnapshotPOD.ComputeReducedOrderBasis(snapshotsIterator, snapshotCorrelationOperator, tolerance)[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 - Parameters
- snapshotsIterator (iterator) – iterator over the snapshots on which we want to compute a reducedOrderBasis 
- snapshotCorrelationOperator (scipy.sparse.csr) – correlation operator between the snapshots 
- tolerance (float) – target accuracy of the data compression 
 
- Returns
- of size (numberOfModes, numberOfDOFs) 
- Return type
- np.ndarray 
 
- Mordicus.Core.DataCompressors.SnapshotPOD.ComputeReducedOrderBasisFromCollectionProblemData(collectionProblemData, solutionName, tolerance, snapshotCorrelationOperator=None)[source]¶
- Computes a reducedOrderBasis using the SnapshotPOD algorithm, from the snapshots contained in the solutions of name “solutionName” from all problemDatas in collectionProblemData, with tolerance as target accuracy of the data compression - Parameters
- collectionProblemData (CollectionProblemData) – input collectionProblemData containing the data 
- solutionName (str) – name of the solutions from which snapshots are taken 
- tolerance (float) – target accuracy of the data compression 
- snapshotCorrelationOperator (scipy.sparse.csr, optional) – correlation operator between the snapshots 
 
- Returns
- of size (numberOfModes, numberOfDOFs) 
- Return type
- np.ndarray