68class Modes :
public PtrList<GeometricField<Type, PatchField, GeoMesh>>
79 List<Eigen::MatrixXd>
toEigen();
86 PtrList<GeometricField<Type, PatchField, GeoMesh>>&
toPtrList()
88 return static_cast<PtrList<GeometricField<Type, PatchField, GeoMesh>
>&>(*this);
113 List<Eigen::MatrixXd>
project(fvMatrix<Type>& Af, label numberOfModes = 0,
114 word projType =
"G");
133 Eigen::MatrixXd
project(GeometricField<Type, PatchField, GeoMesh>& field,
134 label numberOfModes = 0, word projType =
"G", fvMatrix<Type>* Af = NULL);
153 Eigen::MatrixXd
project(PtrList<GeometricField<Type, PatchField, GeoMesh>>&
155 label numberOfModes = 0, word projType =
"G", fvMatrix<Type>* Af = NULL);
168 GeometricField<Type, PatchField, GeoMesh>& field,
169 label numberOfModes = 0, word projType =
"G", fvMatrix<Type>* Af = NULL);
183 GeometricField<Type, PatchField, GeoMesh>
reconstruct(
184 GeometricField<Type, PatchField, GeoMesh>& inputField, Eigen::MatrixXd Coeff,
199 PtrList<GeometricField<Type, PatchField, GeoMesh>>
reconstruct(
200 GeometricField<Type, PatchField, GeoMesh>& inputField,
201 List < Eigen::MatrixXd> Coeff,
212 snapshots, PtrList<GeometricField<Type, PatchField, GeoMesh>>& projSnapshots,
213 label numberOfModes = 0, word innerProduct =
"L2");
222 snapshots, PtrList<GeometricField<Type, PatchField, GeoMesh>>& projSnapshots,
223 word innerProduct =
"L2");
234 snapshots, PtrList<GeometricField<Type, PatchField, GeoMesh>>& projSnapshots,
235 PtrList<volScalarField> Volumes,
236 label numberOfModes = 0, word innerProduct =
"L2");
246 snapshots, PtrList<GeometricField<Type, PatchField, GeoMesh>>& projSnapshots,
247 PtrList<volScalarField> Volumes,
250 void operator=(
const PtrList<GeometricField<Type, PatchField, GeoMesh>>& modes);
GeometricField< Type, PatchField, GeoMesh > reconstruct(GeometricField< Type, PatchField, GeoMesh > &inputField, Eigen::MatrixXd Coeff, word Name)
Function to reconstruct the solution starting from the coefficients, in this case the field is passed...
void projectSnapshots(PtrList< GeometricField< Type, PatchField, GeoMesh > > snapshots, PtrList< GeometricField< Type, PatchField, GeoMesh > > &projSnapshots, label numberOfModes=0, word innerProduct="L2")
Function to project a list of fields into the modes manifold.
GeometricField< Type, PatchField, GeoMesh > projectSnapshot(GeometricField< Type, PatchField, GeoMesh > &field, label numberOfModes=0, word projType="G", fvMatrix< Type > *Af=NULL)
A function that project and reconstruct a snapshot on the modes.