Mordicus.Modules.Safran.BasicAlgorithms.GappyPOD module

Mordicus.Modules.Safran.BasicAlgorithms.GappyPOD.Fit(modesAtMask, fieldAtMask)[source]

Fits GappyPOD approximation

Parameters
  • modesAtMask – np.ndarray of size (nbeModes, maskSize)

  • fieldAtMask (np.ndarray) – np.ndarray of size (maskSize,)

Returns

of size (nbeModes,)

Return type

np.ndarray

Mordicus.Modules.Safran.BasicAlgorithms.GappyPOD.FitAndCost(modesAtMask, fieldAtMask)[source]

Fits GappyPOD approximation an return prediction and cost

Parameters
  • modesAtMask – np.ndarray of size (nbeModes, maskSize)

  • fieldAtMask (np.ndarray) – np.ndarray of size (maskSize,)

Returns

  • np.ndarray – of size (nbeModes,)

  • float – evaluation of the cost function at convergence