49#pragma GCC diagnostic push
50#pragma GCC diagnostic ignored "-Wold-style-cast"
51#pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
52#include <Spectra/GenEigsSolver.h>
53#include <Spectra/SymEigsSolver.h>
55#include <unsupported/Eigen/SparseExtra>
56#include <unsupported/Eigen/MatrixFunctions>
58#pragma GCC diagnostic pop
68template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
79 ITHACADMD(PtrList<GeometricField<Type, PatchField, GeoMesh >> & snapshots,
131 void getModes(label SVD_rank = -1,
bool exact =
true,
132 bool exportDMDmodes =
false);
Header file of the EigenFunctions class.
Header file of the Foam2Eigen class.
ITHACADMD< scalar, fvPatchField, volMesh > ITHACADMDvolScalar
ITHACADMD< vector, fvPatchField, volMesh > ITHACADMDvolVector
Header file of the ITHACAPOD class.
Header file of the ITHACAstream class, it contains the implementation of several methods for input ou...
Header file of the ITHACAutilities namespace.
Header file of the Modes class.
Class of the computation of the DMD, it exploits the SVD methods.
PtrList< GeometricField< scalar, fvPatchField, volMesh > > snapshotsDMD
void convert2Foam()
Convert the EigenModes in Matrix form into OpenFOAM GeometricFields.
ITHACADMD(PtrList< GeometricField< Type, PatchField, GeoMesh > > &snapshots, double dt)
Constructs the object.
Eigen::VectorXd Amplitudes
void getDynamics(double tStart, double tFinal, double dt)
Export the dynamics of DMD given an initial time step, a final one and a time step.
void reconstruct(word exportFolder, word fieldName)
Reconstruct and export the solution using the computed dynamics.
Eigen::MatrixXcd dynamics
List< Eigen::MatrixXcd > PODmBC
void exportEigs(word exportFolder)
Export the eigenvalues in numpy format.
Modes< scalar, fvPatchField, volMesh > DMDmodesImag
List< Eigen::MatrixXcd > DMDEigenModesBC
void getModes(label SVD_rank=-1, bool exact=true, bool exportDMDmodes=false)
Get the DMD modes.
Modes< scalar, fvPatchField, volMesh > DMDmodesReal
Eigen::VectorXcd eigenValues
Eigen::MatrixXcd DMDEigenModes
Implementation of a container class derived from PtrList.