Loading...
Searching...
No Matches
ITHACAPOD.C File Reference

source file for the ITHACAPOD class More...

#include "ITHACAPOD.H"
#include "EigenFunctions.H"

Go to the source code of this file.

Namespaces

namespace  ITHACAPOD
 namespace for the computation of the POD, it exploits bot the method of snapshots and SVD.
 

Functions

template<class Type , template< class > class PatchField, class GeoMesh >
void ITHACAPOD::getNestedSnapshotMatrix (PtrList< GeometricField< Type, PatchField, GeoMesh > > &snapshots, PtrList< GeometricField< Type, PatchField, GeoMesh > > &modes, word fieldName, label Npar, label NnestedOut)
 Nested-POD approach.
 
template void ITHACAPOD::getNestedSnapshotMatrix (PtrList< volScalarField > &snapshots, PtrList< volScalarField > &ModesGlobal, word fieldName, label Npar, label NnestedOut)
 
template void ITHACAPOD::getNestedSnapshotMatrix (PtrList< volVectorField > &snapshots, PtrList< volVectorField > &ModesGlobal, word fieldName, label Npar, label NnestedOut)
 
template<class Type , template< class > class PatchField, class GeoMesh >
void ITHACAPOD::getModes (PtrList< GeometricField< Type, PatchField, GeoMesh > > &snapshots, PtrList< GeometricField< Type, PatchField, GeoMesh > > &modes, word fieldName, bool podex, bool supex=0, bool sup=0, label nmodes=0, bool correctBC=true)
 Computes the bases or reads them for a field.
 
template void ITHACAPOD::getModes (PtrList< volVectorField > &snapshots, PtrList< volVectorField > &modes, word fieldName, bool podex, bool supex, bool sup, label nmodes, bool correctBC)
 
template void ITHACAPOD::getModes (PtrList< volScalarField > &snapshots, PtrList< volScalarField > &modes, word fieldName, bool podex, bool supex, bool sup, label nmodes, bool correctBC)
 
template void ITHACAPOD::getModes (PtrList< surfaceScalarField > &snapshots, PtrList< surfaceScalarField > &modes, word fieldName, bool podex, bool supex, bool sup, label nmodes, bool correctBC)
 
template<class Type , template< class > class PatchField, class GeoMesh >
void ITHACAPOD::getWeightedModes (PtrList< GeometricField< Type, PatchField, GeoMesh > > &snapshots, PtrList< GeometricField< Type, PatchField, GeoMesh > > &modes, word fieldName, bool podex, bool supex=0, bool sup=0, label nmodes=0, bool correctBC=true)
 Computes the weighted bases (using the nested-pod approach) or read them for a vector field.
 
template void ITHACAPOD::getWeightedModes (PtrList< volScalarField > &snapshots, PtrList< volScalarField > &modes, word fieldName, bool podex, bool supex, bool sup, label nmodes, bool correctBC)
 
template void ITHACAPOD::getWeightedModes (PtrList< volVectorField > &snapshots, PtrList< volVectorField > &modes, word fieldName, bool podex, bool supex, bool sup, label nmodes, bool correctBC)
 
template<class Type , template< class > class PatchField, class GeoMesh >
void ITHACAPOD::getModesSVD (PtrList< GeometricField< Type, PatchField, GeoMesh > > &snapshots, PtrList< GeometricField< Type, PatchField, GeoMesh > > &modes, word fieldName, bool podex, bool supex=0, bool sup=0, label nmodes=0, bool correctBC=true)
 Gets the bases for a scalar field using SVD instead of the method of snapshots.
 
template void ITHACAPOD::getModesSVD (PtrList< volScalarField > &snapshots, PtrList< volScalarField > &modes, word fieldName, bool podex, bool supex, bool sup, label nmodes, bool correctBC)
 
template void ITHACAPOD::getModesSVD (PtrList< volVectorField > &snapshots, PtrList< volVectorField > &modes, word fieldName, bool podex, bool supex, bool sup, label nmodes, bool correctBC)
 
template<>
Eigen::MatrixXd ITHACAPOD::corMatrix (PtrList< volScalarField > &snapshots)
 Construct the Correlation Matrix for Scalar Field.
 
template<>
Eigen::MatrixXd ITHACAPOD::corMatrix (PtrList< volVectorField > &snapshots)
 Construct the Correlation Matrix for Vector Field.
 
template<>
Eigen::MatrixXd ITHACAPOD::corMatrix (List< Eigen::SparseMatrix< double > > &snapshots)
 Construct the Correlation Matrix for Vector Field.
 
template<>
Eigen::MatrixXd ITHACAPOD::corMatrix (List< Eigen::VectorXd > &snapshots)
 Construct the Correlation Matrix for Vector Field.
 
template<class Type , template< class > class PatchField, class GeoMesh >
void ITHACAPOD::exportBases (PtrList< GeometricField< Type, PatchField, GeoMesh > > &s, PtrList< GeometricField< Type, PatchField, GeoMesh > > &bases, word fieldName, bool sup)
 Export the Bases.
 
template void ITHACAPOD::exportBases (PtrList< volVectorField > &s, PtrList< volVectorField > &bases, word fieldName, bool sup)
 
template void ITHACAPOD::exportBases (PtrList< volScalarField > &s, PtrList< volScalarField > &bases, word fieldName, bool sup)
 
void ITHACAPOD::exportEigenvalues (scalarField Eigenvalues, fileName name, bool sup=0)
 Exports the eigenvalues as a txt file.
 
void ITHACAPOD::exportcumEigenvalues (scalarField cumEigenvalues, fileName name, bool sup=0)
 Export the cumulative eigenvalues as a txt file.
 
std::tuple< List< Eigen::SparseMatrix< double > >, List< Eigen::VectorXd > > ITHACAPOD::DEIMmodes (List< Eigen::SparseMatrix< double > > &A, List< Eigen::VectorXd > &b, label nmodesA, label nmodesB, word MatrixName="Matrix")
 Get the DEIM modes for a generic non a parametrized matrix coming from a differential operator function.
 
void ITHACAPOD::GrammSchmidt (Eigen::MatrixXd &Matrix)
 Performs GrammSchmidt orthonormalization on an Eigen Matrix.
 
template<class Type , template< class > class PatchField, class GeoMesh >
void ITHACAPOD::getModes (PtrList< GeometricField< Type, PatchField, GeoMesh > > &snapshots, PtrList< GeometricField< Type, PatchField, GeoMesh > > &modes, PtrList< volScalarField > &Volumes, word fieldName, bool podex, bool supex, bool sup, label nmodes, bool correctBC)
 
template void ITHACAPOD::getModes (PtrList< volScalarField > &snapshots, PtrList< volScalarField > &modes, PtrList< volScalarField > &Volumes, word fieldName, bool podex, bool supex, bool sup, label nmodes, bool correctBC)
 
template void ITHACAPOD::getModes (PtrList< volVectorField > &snapshots, PtrList< volVectorField > &modes, PtrList< volScalarField > &Volumes, word fieldName, bool podex, bool supex, bool sup, label nmodes, bool correctBC)
 
template<typename type_matrix >
std::tuple< List< Eigen::SparseMatrix< double > >, List< Eigen::VectorXd > > ITHACAPOD::DEIMmodes (PtrList< type_matrix > &MatrixList, label nmodesA, label nmodesB, word MatrixName="Matrix")
 Get the DEIM modes for a generic non-parametrized matrix coming from a differential operator function.
 
template std::tuple< List< Eigen::SparseMatrix< double > >, List< Eigen::VectorXd > > ITHACAPOD::DEIMmodes (PtrList< fvScalarMatrix > &MatrixList, label nmodesA, label nmodesB, word MatrixName)
 
template std::tuple< List< Eigen::SparseMatrix< double > >, List< Eigen::VectorXd > > ITHACAPOD::DEIMmodes (PtrList< fvVectorMatrix > &MatrixList, label nmodesA, label nmodesB, word MatrixName)
 
template<class Type , template< class > class PatchField, class GeoMesh >
PtrList< GeometricField< Type, PatchField, GeoMesh > > ITHACAPOD::DEIMmodes (PtrList< GeometricField< Type, PatchField, GeoMesh > > &SnapShotsMatrix, label nmodes, word FunctionName, word FieldName)
 Get the DEIM modes for a generic non linear function.
 
template<class Field_type , class Field_type_2 >
void ITHACAPOD::getModes (PtrList< Field_type > &snapshots, PtrList< Field_type > &modes, PtrList< Field_type_2 > &fields2, word fieldName, bool podex, bool supex, bool sup, label nmodes, bool correctBC)
 
template void ITHACAPOD::getModes (PtrList< surfaceScalarField > &snapshots, PtrList< surfaceScalarField > &modes, PtrList< volVectorField > &fields2, word fieldName, bool podex, bool supex, bool sup, label nmodes, bool correctBC)
 
template void ITHACAPOD::getModes (PtrList< volScalarField > &snapshots, PtrList< volScalarField > &modes, PtrList< volVectorField > &fields2, word fieldName, bool podex, bool supex, bool sup, label nmodes, bool correctBC)
 
template PtrList< volScalarField > ITHACAPOD::DEIMmodes (PtrList< volScalarField > &SnapShotsMatrix, label nmodes, word FunctionName, word FieldName)
 
template PtrList< volVectorField > ITHACAPOD::DEIMmodes (PtrList< volVectorField > &SnapShotsMatrix, label nmodes, word FunctionName, word FieldName)
 

Detailed Description

source file for the ITHACAPOD class

Definition in file ITHACAPOD.C.