namespace for the computation of the POD, it exploits bot the method of snapshots and SVD. More...
Classes | |
| struct | indexTri |
| struct | indexSquare |
| class | PODTemplate |
| class | PODTemplateH1 |
Functions | |
| void | weightedGramSchmidt (Eigen::MatrixXd &matrix, Eigen::VectorXd &weights) |
| Weighted Gram-Schmidt orthogonalization. | |
| template<class Type, template< class > class PatchField, class GeoMesh> | |
| void | getNestedSnapshotMatrix (PtrList< GeometricField< Type, PatchField, GeoMesh > > &snapshots, PtrList< GeometricField< Type, PatchField, GeoMesh > > &modes, word fieldName, label Npar, label NnestedOut) |
| Nested-POD approach. | |
| template void | getNestedSnapshotMatrix (PtrList< volScalarField > &snapshots, PtrList< volScalarField > &ModesGlobal, word fieldName, label Npar, label NnestedOut) |
| template void | getNestedSnapshotMatrix (PtrList< volVectorField > &snapshots, PtrList< volVectorField > &ModesGlobal, word fieldName, label Npar, label NnestedOut) |
| template<class Type, template< class > class PatchField, class GeoMesh> | |
| void | 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 | getModes (PtrList< volVectorField > &snapshots, PtrList< volVectorField > &modes, word fieldName, bool podex, bool supex, bool sup, label nmodes, bool correctBC) |
| template void | getModes (PtrList< volScalarField > &snapshots, PtrList< volScalarField > &modes, word fieldName, bool podex, bool supex, bool sup, label nmodes, bool correctBC) |
| template void | getModes (PtrList< surfaceScalarField > &snapshots, PtrList< surfaceScalarField > &modes, word fieldName, bool podex, bool supex, bool sup, label nmodes, bool correctBC) |
| template void | getModes (PtrList< pointVectorField > &snapshots, PtrList< pointVectorField > &modes, word fieldName, bool podex, bool supex, bool sup, label nmodes, bool correctBC) |
| template<class Type, template< class > class PatchField, class GeoMesh> | |
| void | getModesMemoryEfficient (GeometricField< Type, PatchField, GeoMesh > &templateField, word snapshotsPath, PtrList< GeometricField< Type, PatchField, GeoMesh > > &modes, word fieldName, bool podex=false, bool supex=false, bool sup=false, label nmodes=0, bool correctBC=true, autoPtr< GeometricField< Type, PatchField, GeoMesh > > meanField=NULL) |
| Gets the modes in a memory-efficient manner. | |
| template void | getModesMemoryEfficient (GeometricField< scalar, fvPatchField, volMesh > &, word, PtrList< GeometricField< scalar, fvPatchField, volMesh > > &, word, bool, bool, bool, label, bool, autoPtr< GeometricField< scalar, fvPatchField, volMesh > >) |
| template void | getModesMemoryEfficient (GeometricField< vector, fvPatchField, volMesh > &, word, PtrList< GeometricField< vector, fvPatchField, volMesh > > &, word, bool, bool, bool, label, bool, autoPtr< GeometricField< vector, fvPatchField, volMesh > >) |
| template<class Type, template< class > class PatchField, class GeoMesh> | |
| void | getMeanMemoryEfficient (GeometricField< Type, PatchField, GeoMesh > &templateField, word snapshotsPath, autoPtr< GeometricField< Type, PatchField, GeoMesh > > &meanField, bool meanex=false) |
| Gets the mean field in a memory-efficient manner. | |
| template void | getMeanMemoryEfficient (GeometricField< scalar, fvPatchField, volMesh > &, word snapshotsPath, autoPtr< GeometricField< scalar, fvPatchField, volMesh > > &, bool) |
| template void | getMeanMemoryEfficient (GeometricField< vector, fvPatchField, volMesh > &, word snapshotsPath, autoPtr< GeometricField< vector, fvPatchField, volMesh > > &, bool) |
| template<class Type, template< class > class PatchField, class GeoMesh> | |
| void | 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 | getWeightedModes (PtrList< volScalarField > &snapshots, PtrList< volScalarField > &modes, word fieldName, bool podex, bool supex, bool sup, label nmodes, bool correctBC) |
| template void | 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 | 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 | getModesSVD (PtrList< volScalarField > &snapshots, PtrList< volScalarField > &modes, word fieldName, bool podex, bool supex, bool sup, label nmodes, bool correctBC) |
| template void | getModesSVD (PtrList< volVectorField > &snapshots, PtrList< volVectorField > &modes, word fieldName, bool podex, bool supex, bool sup, label nmodes, bool correctBC) |
| template<> | |
| Eigen::MatrixXd | corMatrix (PtrList< volScalarField > &snapshots) |
| Construct the Correlation Matrix for Scalar Field. | |
| template<> | |
| Eigen::MatrixXd | corMatrix (PtrList< volVectorField > &snapshots) |
| Construct the Correlation Matrix for Vector Field. | |
| template<> | |
| Eigen::MatrixXd | corMatrix (List< Eigen::SparseMatrix< double > > &snapshots) |
| Construct the Correlation Matrix for Vector Field. | |
| template<> | |
| Eigen::MatrixXd | corMatrix (List< Eigen::VectorXd > &snapshots) |
| Construct the Correlation Matrix for Vector Field. | |
| template<class Type, template< class > class PatchField, class GeoMesh> | |
| void | exportBases (PtrList< GeometricField< Type, PatchField, GeoMesh > > &s, PtrList< GeometricField< Type, PatchField, GeoMesh > > &bases, word fieldName, bool sup) |
| Export the Bases. | |
| template void | exportBases (PtrList< volVectorField > &s, PtrList< volVectorField > &bases, word fieldName, bool sup) |
| template void | exportBases (PtrList< volScalarField > &s, PtrList< volScalarField > &bases, word fieldName, bool sup) |
| void | exportEigenvalues (scalarField Eigenvalues, fileName name, bool sup=0) |
| Exports the eigenvalues as a txt file. | |
| void | 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 > > | 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 | GrammSchmidt (Eigen::MatrixXd &Matrix) |
| Performs GrammSchmidt orthonormalization on an Eigen Matrix. | |
| template<class Type, template< class > class PatchField, class GeoMesh> | |
| void | 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 | getModes (PtrList< volScalarField > &snapshots, PtrList< volScalarField > &modes, PtrList< volScalarField > &Volumes, word fieldName, bool podex, bool supex, bool sup, label nmodes, bool correctBC) |
| template void | 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 > > | 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 > > | DEIMmodes (PtrList< fvScalarMatrix > &MatrixList, label nmodesA, label nmodesB, word MatrixName) |
| template std::tuple< List< Eigen::SparseMatrix< double > >, List< Eigen::VectorXd > > | DEIMmodes (PtrList< fvVectorMatrix > &MatrixList, label nmodesA, label nmodesB, word MatrixName) |
| template<class Type, template< class > class PatchField, class GeoMesh> | |
| PtrList< GeometricField< Type, PatchField, GeoMesh > > | 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 | 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 | getModes (PtrList< surfaceScalarField > &snapshots, PtrList< surfaceScalarField > &modes, PtrList< volVectorField > &fields2, word fieldName, bool podex, bool supex, bool sup, label nmodes, bool correctBC) |
| template void | 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 > | DEIMmodes (PtrList< volScalarField > &SnapShotsMatrix, label nmodes, word FunctionName, word FieldName) |
| template PtrList< volVectorField > | DEIMmodes (PtrList< volVectorField > &SnapShotsMatrix, label nmodes, word FunctionName, word FieldName) |
| template<> | |
| scalar | computeInnerProduct (const GeometricField< scalar, fvPatchField, volMesh > &field1, const GeometricField< scalar, fvPatchField, volMesh > &field2) |
| template<> | |
| scalar | computeInnerProduct (const GeometricField< vector, fvPatchField, volMesh > &field1, const GeometricField< vector, fvPatchField, volMesh > &field2) |
| template<> | |
| scalar | computeFrobeniusInnerProduct (const GeometricField< scalar, fvPatchField, volMesh > &field1, const GeometricField< scalar, fvPatchField, volMesh > &field2) |
| template<> | |
| scalar | computeFrobeniusInnerProduct (const GeometricField< vector, fvPatchField, volMesh > &field1, const GeometricField< vector, fvPatchField, volMesh > &field2) |
| template<class Field_type> | |
| Eigen::MatrixXd | corMatrix (Field_type &snapshots) |
| Computes the correlation matrix given a vector field snapshot Matrix using different norms depending on the input snapshots. | |
| template<class Type, template< class > class PatchField, class GeoMesh> | |
| void | getModes (PtrList< GeometricField< Type, PatchField, GeoMesh > > &snapshots, PtrList< GeometricField< Type, PatchField, GeoMesh > > &modes, PtrList< volScalarField > &Volumes, word fieldName, bool podex, bool supex=0, bool sup=0, label nmodes=0) |
| Gets the modes. | |
| template<class Field_type, class Field_type_2> | |
| void | getModes (PtrList< Field_type > &snapshots, PtrList< Field_type > &modes, PtrList< Field_type_2 > &fields2, word fieldName, bool podex, bool supex=0, bool sup=0, label nmodes=0) |
| Gets Modes based on eigenvalue decomposition of another Field. | |
| template<class Type, template< class > class PatchField, class GeoMesh> | |
| scalar | computeInnerProduct (const GeometricField< Type, PatchField, GeoMesh > &field1, const GeometricField< Type, PatchField, GeoMesh > &field2) |
| Helper function to compute inner product value for different field types. | |
| template<class Type, template< class > class PatchField, class GeoMesh> | |
| scalar | computeFrobeniusInnerProduct (const GeometricField< Type, PatchField, GeoMesh > &field1, const GeometricField< Type, PatchField, GeoMesh > &field2) |
| Helper function to compute Frobenius norm inner product. | |
| void | computeLift (PtrList< volTensorField > &Lfield, PtrList< volTensorField > &liftfield, PtrList< volTensorField > &omfield, Eigen::MatrixXi inletIndex) |
| void | computeLift (PtrList< volVectorField > &Lfield, PtrList< volVectorField > &liftfield, PtrList< volVectorField > &omfield, Eigen::MatrixXi inletIndex) |
| void | computeLift (PtrList< volScalarField > &Lfield, PtrList< volScalarField > &liftfield, PtrList< volScalarField > &omfield, Eigen::MatrixXi inletIndex) |
| void | computeLift (Foam::PtrList< Foam::volScalarField > &Lfield, Foam::PtrList< Foam::volScalarField > &liftfield, Foam::PtrList< Foam::volScalarField > &omfield, Eigen::MatrixXi inletIndex) |
| void | computeLift (Foam::PtrList< Foam::volVectorField > &Lfield, Foam::PtrList< Foam::volVectorField > &liftfield, Foam::PtrList< Foam::volVectorField > &omfield, Eigen::MatrixXi inletIndex) |
| void | computeLift (Foam::PtrList< Foam::volTensorField > &Lfield, Foam::PtrList< Foam::volTensorField > &liftfield, Foam::PtrList< Foam::volTensorField > &omfield, Eigen::MatrixXi inletIndex) |
namespace for the computation of the POD, it exploits bot the method of snapshots and SVD.
| struct ITHACAPOD::indexTri |
Definition at line 25 of file PODTemplate.H.
| Class Members | ||
|---|---|---|
| label | index_end | |
| label | index_start | |
| struct ITHACAPOD::indexSquare |
Definition at line 33 of file PODTemplate.H.
| Class Members | ||
|---|---|---|
| label | index1_end | |
| label | index1_start | |
| label | index2_end | |
| label | index2_start | |
| scalar ITHACAPOD::computeFrobeniusInnerProduct | ( | const GeometricField< scalar, fvPatchField, volMesh > & | field1, |
| const GeometricField< scalar, fvPatchField, volMesh > & | field2 ) |
Definition at line 2117 of file ITHACAPOD.C.
| scalar ITHACAPOD::computeFrobeniusInnerProduct | ( | const GeometricField< Type, PatchField, GeoMesh > & | field1, |
| const GeometricField< Type, PatchField, GeoMesh > & | field2 ) |
Helper function to compute Frobenius norm inner product.
| [in] | field1 | First field |
| [in] | field2 | Second field |
| scalar ITHACAPOD::computeFrobeniusInnerProduct | ( | const GeometricField< vector, fvPatchField, volMesh > & | field1, |
| const GeometricField< vector, fvPatchField, volMesh > & | field2 ) |
Definition at line 2125 of file ITHACAPOD.C.
| scalar ITHACAPOD::computeInnerProduct | ( | const GeometricField< scalar, fvPatchField, volMesh > & | field1, |
| const GeometricField< scalar, fvPatchField, volMesh > & | field2 ) |
Definition at line 2101 of file ITHACAPOD.C.
| scalar ITHACAPOD::computeInnerProduct | ( | const GeometricField< Type, PatchField, GeoMesh > & | field1, |
| const GeometricField< Type, PatchField, GeoMesh > & | field2 ) |
Helper function to compute inner product value for different field types.
| [in] | field1 | First field |
| [in] | field2 | Second field |
| scalar ITHACAPOD::computeInnerProduct | ( | const GeometricField< vector, fvPatchField, volMesh > & | field1, |
| const GeometricField< vector, fvPatchField, volMesh > & | field2 ) |
Definition at line 2109 of file ITHACAPOD.C.
| void ITHACAPOD::computeLift | ( | PtrList< volScalarField > & | Lfield, |
| PtrList< volScalarField > & | liftfield, | ||
| PtrList< volScalarField > & | omfield, | ||
| Eigen::MatrixXi | inletIndex ) |
Definition at line 1218 of file PODTemplate.C.
| void ITHACAPOD::computeLift | ( | PtrList< volTensorField > & | Lfield, |
| PtrList< volTensorField > & | liftfield, | ||
| PtrList< volTensorField > & | omfield, | ||
| Eigen::MatrixXi | inletIndex ) |
Definition at line 1142 of file PODTemplate.C.
| void ITHACAPOD::computeLift | ( | PtrList< volVectorField > & | Lfield, |
| PtrList< volVectorField > & | liftfield, | ||
| PtrList< volVectorField > & | omfield, | ||
| Eigen::MatrixXi | inletIndex ) |
Definition at line 1180 of file PODTemplate.C.
| Eigen::MatrixXd ITHACAPOD::corMatrix | ( | Field_type & | snapshots | ) |
Computes the correlation matrix given a vector field snapshot Matrix using different norms depending on the input snapshots.
| [in] | snapshots | List of snapshots. |
| Field_type | Type of the input list you are passing, it can be: PtrList<volVectorField>, PtrList<volScalarField>, List<Eigen::SparseMatrix<double>>, List<Eigen::VectorXd>. |
| Eigen::MatrixXd ITHACAPOD::corMatrix | ( | List< Eigen::SparseMatrix< double > > & | snapshots | ) |
Construct the Correlation Matrix for Vector Field.
Definition at line 1010 of file ITHACAPOD.C.
| Eigen::MatrixXd ITHACAPOD::corMatrix | ( | List< Eigen::VectorXd > & | snapshots | ) |
Construct the Correlation Matrix for Vector Field.
Definition at line 1045 of file ITHACAPOD.C.
| Eigen::MatrixXd ITHACAPOD::corMatrix | ( | PtrList< volScalarField > & | snapshots | ) |
Construct the Correlation Matrix for Scalar Field.
Definition at line 955 of file ITHACAPOD.C.
| Eigen::MatrixXd ITHACAPOD::corMatrix | ( | PtrList< volVectorField > & | snapshots | ) |
Construct the Correlation Matrix for Vector Field.
Definition at line 983 of file ITHACAPOD.C.
| 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.
| A | List of matrices for the lhs | |
| b | List of vectors for the rhs | |
| [in] | nmodesA | The number of modes |
| [in] | nmodesB | The nmodes b |
| [in] | MatrixName | The matrix name, used to save the matrix |
| [in] | MatrixList | The matrix list as a list of pointers |
| The | type of matrix, can be fvScalarMatrix or fvVectorMatrix |
Definition at line 1172 of file ITHACAPOD.C.
| 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.
| [in] | SnapShotsMatrix | The snapshots matrix |
| [in] | nmodes | The number of modes |
| [in] | FunctionName | The function name |
| Type | templated object for the snapshots matrix type |
Definition at line 1740 of file ITHACAPOD.C.
| 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.
| [in] | MatrixList | The matrix list as a list of pointers |
| [in] | nmodesA | The number of modes for A |
| [in] | nmodesB | The number of modes for B |
| [in] | MatrixName | The matrix name, used to save the matrix |
| type_matrix | The type of matrix, can be fvScalarMatrix or fvVectorMatrix |
Definition at line 1555 of file ITHACAPOD.C.
| void ITHACAPOD::exportBases | ( | PtrList< GeometricField< Type, PatchField, GeoMesh > > & | snapshots, |
| PtrList< GeometricField< Type, PatchField, GeoMesh > > & | bases, | ||
| word | fieldName, | ||
| bool | sup = 0 ) |
Export the Bases.
Exports the basis for an OpenFOAM GeometricField into the ITHACAOutput/POD or ITHACAOutput/supremizer.
| snapshots | The snapshots | |
| [in] | bases | a PtrList of GeometricField where the bases are stored. |
| [in] | fieldName | The field name |
| [in] | sup | a boolean variable 1 if you want to export the supremizer bases (in ITHACAOutput/supremizer) 0 elsewhere (Default is 0). |
| [in] | s | a PtrList of GeometricField where the snapshots associated with the bases are stored. |
| Type | vector or scalar. |
| PatchField | fvPatchField or fvsPatchField. |
| GeoMesh | volMesh or surfaceMesh. |
Definition at line 1074 of file ITHACAPOD.C.
| void ITHACAPOD::exportcumEigenvalues | ( | scalarField | cumEigenvalues, |
| fileName | name, | ||
| bool | sup = 0 ) |
Export the cumulative eigenvalues as a txt file.
| [in] | cumEigenvalues | a scalarField of cumEigenvalues. |
| [in] | name | a fileName to indicate the name of the txt file. |
| [in] | sup | If 1, it exports the cumEigenValues in "ITHACAOutput/supremizer". If 0, no actions (Default is 0). |
Definition at line 1141 of file ITHACAPOD.C.
| void ITHACAPOD::exportEigenvalues | ( | scalarField | Eigenvalues, |
| fileName | name, | ||
| bool | sup = 0 ) |
Exports the eigenvalues as a txt file.
| [in] | Eigenvalues | a scalarField of eigenvalues. |
| [in] | name | a fileName to indicate the name of the txt file. |
| [in] | sup | If 1, it exports the eigenValues in "ITHACAOutput/supremizer". If 0, no actions (Default is 0). |
Definition at line 1112 of file ITHACAPOD.C.
| void ITHACAPOD::getMeanMemoryEfficient | ( | GeometricField< Type, PatchField, GeoMesh > & | templateField, |
| word | snapshotsPath, | ||
| autoPtr< GeometricField< Type, PatchField, GeoMesh > > & | meanField, | ||
| bool | meanex ) |
Gets the mean field in a memory-efficient manner.
Definition at line 660 of file ITHACAPOD.C.
| 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 ) |
Definition at line 1940 of file ITHACAPOD.C.
| void ITHACAPOD::getModes | ( | PtrList< Field_type > & | snapshots, |
| PtrList< Field_type > & | modes, | ||
| PtrList< Field_type_2 > & | fields2, | ||
| word | fieldName, | ||
| bool | podex, | ||
| bool | supex = 0, | ||
| bool | sup = 0, | ||
| label | nmodes = 0 ) |
Gets Modes based on eigenvalue decomposition of another Field.
| snapshots | The snapshots of which we want to create the modes | |
| modes | The modes of the snapshots | |
| fields2 | The fields that we want to use for the eigenvalue decomposition | |
| [in] | fieldName | The field name |
| [in] | podex | boolean variable 1 if the modes have been already computed and stored (in this case the function is reading them) 0 elsewhere. |
| [in] | supex | boolean variable 1 if the supremizer modes have been already computed and stored (in this case the function is reading them) 0 elsewhere. |
| [in] | sup | boolean variable 1 if you want to compute the supremizer modes 0 elsewhere. |
| [in] | nmodes | label variable to set the number of modes to be stored, if set to 0 the maximum number of modes will computed. |
| Field_type | Type of field snapshots |
| Field_type_2 | Type of the other fields |
| 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 ) |
Definition at line 1392 of file ITHACAPOD.C.
| void ITHACAPOD::getModes | ( | PtrList< GeometricField< Type, PatchField, GeoMesh > > & | snapshots, |
| PtrList< GeometricField< Type, PatchField, GeoMesh > > & | modes, | ||
| PtrList< volScalarField > & | Volumes, | ||
| word | fieldName, | ||
| bool | podex, | ||
| bool | supex = 0, | ||
| bool | sup = 0, | ||
| label | nmodes = 0 ) |
Gets the modes.
| [in] | snapshots | List of snapshots. |
| [out] | modes | A PtrList where modes are stored (it must be passed empty). |
| Volumes | The volumes | |
| [in] | fieldName | The field name |
| [in] | podex | If 1, the functions read the stored mode. If 0, the function computes the modes and stores them. |
| [in] | supex | If 1, the functions read the stored supremizer mode. If 0, the function computes and stores them. |
| [in] | sup | If 1 it computes the supremizer modes. |
| [in] | nmodes | Number of modes to be stored. If 0, the maximum number of modes will computed. |
| Type | vector or scalar. |
| PatchField | fvPatchField or fvsPatchField. |
| GeoMesh | volMesh or surfaceMesh. |
| 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.
| [in] | snapshots | List of snapshots. |
| [out] | modes | A PtrList where modes are stored (it must be passed empty). |
| [in] | fieldName | The field name |
| [in] | podex | If 1, the functions read the stored mode. If 0, the function computes the modes and stores them. |
| [in] | supex | If 1, the functions read the stored supremizer mode. If 0, the function computes and stores them. |
| [in] | sup | If 1 it computes the supremizer modes. |
| [in] | nmodes | Number of modes to be stored. If 0, the maximum number of modes will computed. |
| Type | vector or scalar. |
| PatchField | fvPatchField or fvsPatchField. |
| GeoMesh | volMesh or surfaceMesh. |
Definition at line 93 of file ITHACAPOD.C.
| void ITHACAPOD::getModesMemoryEfficient | ( | GeometricField< Type, PatchField, GeoMesh > & | templateField, |
| word | snapshotsPath, | ||
| PtrList< GeometricField< Type, PatchField, GeoMesh > > & | modes, | ||
| word | fieldName, | ||
| bool | podex = false, | ||
| bool | supex = false, | ||
| bool | sup = false, | ||
| label | nmodes = 0, | ||
| bool | correctBC = true, | ||
| autoPtr< GeometricField< Type, PatchField, GeoMesh > > | meanField = NULL ) |
Gets the modes in a memory-efficient manner.
| [in] | templateField | The template field |
| [in] | snapshotsPath | The path to the snapshots |
| [out] | modes | The modes |
| [in] | fieldName | The field name |
| [in] | podex | If 1, the functions read the stored mode. If 0, the function computes the modes and stores them. |
| [in] | supex | If 1, the functions read the stored supremizer mode. If 0, the function computes and stores them. |
| [in] | sup | If 1, it computes the supremizer modes. |
| [in] | nmodes | Number of modes to be stored. If 0, the maximum number of modes will computed. |
| [in] | correctBC | If true, correct the boundary conditions. |
| Type | The type of the field |
| PatchField | The patch field type |
| GeoMesh | The mesh type |
Definition at line 345 of file ITHACAPOD.C.
| 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.
| [in] | snapshots | List of snapshots. |
| [out] | modes | A PtrList where modes are stored (it must be passed empty). |
| [in] | fieldName | The file name |
| [in] | podex | If 1, the functions read the stored mode. If 0, the function computes the modes and stores them. |
| [in] | supex | If 1, the functions read the stored supremizer mode. If 0, the function computes and stores them. |
| [in] | sup | If 1 it computes the supremizer modes. |
| [in] | nmodes | Number of modes to be stored. If 0, the maximum number of modes will computed. |
| Type | vector or scalar. |
| PatchField | fvPatchField or fvsPatchField. |
| GeoMesh | volMesh or surfaceMesh. |
Definition at line 858 of file ITHACAPOD.C.
| void ITHACAPOD::getNestedSnapshotMatrix | ( | PtrList< GeometricField< Type, PatchField, GeoMesh > > & | snapshots, |
| PtrList< GeometricField< Type, PatchField, GeoMesh > > & | modes, | ||
| word | fieldName, | ||
| label | Npar, | ||
| label | NnestedOut ) |
Nested-POD approach.
Computes the nested snapshot matrix and weighted bases for a vector field
| [in] | snapshots | List of snapshots. |
| modes | The modes | |
| [in] | fieldName | The field name |
| [in] | Npar | Number of parameters |
| [in] | NnestedOut | Number of weighted modes to be stored for the assembly of the nested matrix |
| [out] | UModesGlobal | List of snapshots where modes are stored (it must be passed empty). |
| Type | vector or scalar. |
| PatchField | fvPatchField or fvsPatchField. |
| GeoMesh | volMesh or surfaceMesh. |
Definition at line 41 of file ITHACAPOD.C.
| 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.
| [in] | snapshots | List of snapshots. |
| [out] | modes | A PtrList where modes are stored (it must be passed empty). |
| [in] | fieldName | The field name |
| [in] | podex | If 1, the functions read the stored mode. If 0, the function computes the modes and stores them. |
| [in] | supex | If 1, the functions read the stored supremizer mode. If 0, the function computes and stores them. |
| [in] | sup | If 1, it computes the supremizer modes. |
| [in] | nmodes | Number of modes to be stored. If 0, the maximum number of modes will computed. |
| Type | vector or scalar. |
| PatchField | fvPatchField or fvsPatchField. |
| GeoMesh | volMesh or surfaceMesh. |
Definition at line 715 of file ITHACAPOD.C.
| void ITHACAPOD::GrammSchmidt | ( | Eigen::MatrixXd & | Matrix | ) |
Performs GrammSchmidt orthonormalization on an Eigen Matrix.
| [out] | Matrix | The matrix |
Definition at line 1370 of file ITHACAPOD.C.
| void ITHACAPOD::weightedGramSchmidt | ( | Eigen::MatrixXd & | matrix, |
| Eigen::VectorXd & | weights ) |
Weighted Gram-Schmidt orthogonalization.
| [in] | matrix | Matrix to be orthogonalized |
| [in] | weights | Vector of weights |
Definition at line 190 of file incrementalPOD.H.
1.16.1