Namespace for input-output manipulation. More...
Functions | |
| template<typename Type> | |
| void | exportFvMatrix (fvMatrix< Type > &Matrix, word folder, word MatrixName) |
| Export an Fv Matrix to folder together with its source term. | |
| template<typename T, int dim> | |
| void | exportMatrix (Eigen::Matrix< T, -1, dim > &matrix, word Name, word type="python", word folder="./Matrices") |
| Export the reduced matrices in numpy (type=python), matlab (type=matlab) and txt (type=eigen) format The function is implemented for a second order matrix. | |
| template void | exportMatrix (Eigen::Matrix< double, -1, -1 > &matrix, word Name, word type, word folder) |
| template void | exportMatrix (Eigen::Matrix< int, -1, -1 > &matrix, word Name, word type, word folder) |
| template void | exportMatrix (Eigen::Matrix< float, -1, -1 > &matrix, word Name, word type, word folder) |
| template void | exportMatrix (Eigen::Matrix< double, -1, 1 > &matrix, word Name, word type, word folder) |
| template void | exportMatrix (Eigen::Matrix< int, -1, 1 > &matrix, word Name, word type, word folder) |
| template void | exportMatrix (Eigen::Matrix< float, -1, 1 > &matrix, word Name, word type, word folder) |
| void | exportMatrix (List< Eigen::MatrixXd > &matrix, word Name, word type="python", word folder="./Matrices") |
| Export the reduced matrices in numpy (type=python), matlab (type=matlab) and txt (type=eigen) format The function is implemented for a third order matrix The eigen matrix is stored as a set of two dimensional matrices where each matrix is in a different file. | |
| void | exportVector (Eigen::VectorXd &vector, word Name, word type, word folder) |
| template<typename T> | |
| void | exportTensor (Eigen::Tensor< T, 3 > tensor, word Name, word type="python", word folder="./Matrices") |
| Export the reduced tensor in numpy (tipo=python), matlab (tipo=matlab) and txt (tipo=eigen) format. | |
| template void | exportTensor (Eigen::Tensor< double, 3 > tensor, word Name, word type, word folder) |
| template void | exportTensor (Eigen::Tensor< int, 3 > tensor, word Name, word type, word folder) |
| template void | exportTensor (Eigen::Tensor< float, 3 > tensor, word Name, word type, word folder) |
| List< Eigen::MatrixXd > | readMatrix (word folder, word mat_name) |
| Read a three dimensional matrix from a txt file in Eigen format. | |
| Eigen::MatrixXd | readMatrix (word filename) |
| Read a two dimensional matrix from a txt file in Eigen format. | |
| template<class Type, template< class > class PatchField, class GeoMesh> | |
| GeometricField< Type, PatchField, GeoMesh > | readFieldByIndex (const GeometricField< Type, PatchField, GeoMesh > &field, fileName casename, label index) |
| Function to read a single field by index from a folder. | |
| template<class Type, template< class > class PatchField, class GeoMesh> | |
| void | read_fields (PtrList< GeometricField< Type, PatchField, GeoMesh > > &Lfield, word Name, fileName casename, int first_snap=0, int n_snap=0) |
| Function to read a list of fields from the name of the field and casename. | |
| template<class Type, template< class > class PatchField, class GeoMesh> | |
| void | read_fields (PtrList< GeometricField< Type, PatchField, GeoMesh > > &Lfield, GeometricField< Type, PatchField, GeoMesh > &field, fileName casename, int first_snap=0, int n_snap=0) |
| Function to read a list of fields from the name of the field if it is already existing. | |
| template<class Type, template< class > class PatchField, class GeoMesh> | |
| void | readMiddleFields (PtrList< GeometricField< Type, PatchField, GeoMesh > > &Lfield, GeometricField< Type, PatchField, GeoMesh > &field, fileName casename) |
| Funtion to read a list of volVectorField from name of the field including all the intermediate snapshots. | |
| template<class Type, template< class > class PatchField, class GeoMesh> | |
| void | readConvergedFields (PtrList< GeometricField< Type, PatchField, GeoMesh > > &Lfield, GeometricField< Type, PatchField, GeoMesh > &field, fileName casename) |
| Function to read a list of volVectorField from name of the field including only converged snapshots. | |
| template<class Type, template< class > class PatchField, class GeoMesh> | |
| void | read_last_fields (PtrList< GeometricField< Type, PatchField, GeoMesh > > &Lfield, const GeometricField< Type, PatchField, GeoMesh > &field, const fileName casename) |
| Function to read a list of fields from the name of the field including only the last snapshot. | |
| template<class Type, template< class > class PatchField, class GeoMesh> | |
| void | readLastFields (PtrList< GeometricField< Type, PatchField, GeoMesh > > &Lfield, const GeometricField< Type, PatchField, GeoMesh > &field, const fileName casename) |
| Funtion to read a list of volVectorField from name of the field including only the last snapshots. | |
| int | numberOfFiles (word folder, word MatrixName, word ext="") |
| Count the number of files with a certain name prefix, used by reading functions of list of matrices. | |
| template<class Type, template< class > class PatchField, class GeoMesh> | |
| void | exportFields (PtrList< GeometricField< Type, PatchField, GeoMesh > > &field, word folder, word fieldname) |
| Function to export a scalar of vector field. | |
| template void | exportFields (PtrList< GeometricField< scalar, fvPatchField, volMesh > > &field, word folder, word fieldname) |
| template void | exportFields (PtrList< GeometricField< scalar, fvsPatchField, surfaceMesh > > &field, word folder, word fieldname) |
| template void | exportFields (PtrList< GeometricField< vector, fvPatchField, volMesh > > &field, word folder, word fieldname) |
| template void | exportFields (PtrList< GeometricField< tensor, fvPatchField, volMesh > > &field, word folder, word fieldname) |
| template<class Type, template< class > class PatchField, class GeoMesh> | |
| void | exportSolution (GeometricField< Type, PatchField, GeoMesh > &s, fileName subfolder, fileName folder, word fieldName) |
| Export a field to file in a certain folder and subfolder. | |
| template void | exportSolution (GeometricField< scalar, fvPatchField, volMesh > &s, fileName subfolder, fileName folder, word fieldName) |
| template void | exportSolution (GeometricField< vector, fvPatchField, volMesh > &s, fileName subfolder, fileName folder, word fieldName) |
| template void | exportSolution (GeometricField< tensor, fvPatchField, volMesh > &s, fileName subfolder, fileName folder, word fieldName) |
| template void | exportSolution (GeometricField< scalar, fvsPatchField, surfaceMesh > &s, fileName subfolder, fileName folder, word fieldName) |
| template<class Type, template< class > class PatchField, class GeoMesh> | |
| void | exportSolution (GeometricField< Type, PatchField, GeoMesh > &s, fileName subfolder, fileName folder) |
| Export a field to file in a certain folder and subfolder. | |
| template void | exportSolution (GeometricField< scalar, fvPatchField, volMesh > &s, fileName subfolder, fileName folder) |
| template void | exportSolution (GeometricField< vector, fvPatchField, volMesh > &s, fileName subfolder, fileName folder) |
| template void | exportSolution (GeometricField< tensor, fvPatchField, volMesh > &s, fileName subfolder, fileName folder) |
| template void | exportSolution (GeometricField< scalar, fvsPatchField, surfaceMesh > &s, fileName subfolder, fileName folder) |
| template void | exportSolution (GeometricField< scalar, pointPatchField, pointMesh > &s, fileName subfolder, fileName folder) |
| template void | exportSolution (GeometricField< vector, pointPatchField, pointMesh > &s, fileName subfolder, fileName folder) |
| template void | exportSolution (GeometricField< tensor, pointPatchField, pointMesh > &s, fileName subfolder, fileName folder) |
| void | writePoints (pointField points, fileName folder, fileName subfolder) |
| Write points of a mesh to a file. | |
| void | printProgress (double percentage) |
| Print progress bar given the percentage. | |
| template<typename T> | |
| void | save (const List< Eigen::SparseMatrix< T > > &MatrixList, word folder, word MatrixName) |
| template<typename T> | |
| void | load (List< Eigen::SparseMatrix< T > > &MatrixList, word folder, word MatrixName) |
| template void | read_fields (PtrList< volScalarField > &Lfield, word Name, fileName casename, int first_snap, int n_snap) |
| template void | read_fields (PtrList< volVectorField > &Lfield, word Name, fileName casename, int first_snap, int n_snap) |
| template void | read_fields (PtrList< volTensorField > &Lfield, word Name, fileName casename, int first_snap, int n_snap) |
| template void | read_fields (PtrList< surfaceScalarField > &Lfield, word Name, fileName casename, int first_snap, int n_snap) |
| template void | read_fields (PtrList< surfaceVectorField > &Lfield, word Name, fileName casename, int first_snap, int n_snap) |
| template void | read_fields (PtrList< volScalarField > &Lfield, volScalarField &field, fileName casename, int first_snap, int n_snap) |
| template void | read_fields (PtrList< volVectorField > &Lfield, volVectorField &field, fileName casename, int first_snap, int n_snap) |
| template void | read_fields (PtrList< volTensorField > &Lfield, volTensorField &field, fileName casename, int first_snap, int n_snap) |
| template void | read_fields (PtrList< surfaceScalarField > &Lfield, surfaceScalarField &field, fileName casename, int first_snap, int n_snap) |
| template void | read_fields (PtrList< surfaceVectorField > &Lfield, surfaceVectorField &field, fileName casename, int first_snap, int n_snap) |
| template void | readMiddleFields (PtrList< volScalarField > &Lfield, volScalarField &field, fileName casename) |
| template void | readMiddleFields (PtrList< volVectorField > &Lfield, volVectorField &field, fileName casename) |
| template void | readMiddleFields (PtrList< volTensorField > &Lfield, volTensorField &field, fileName casename) |
| template void | readMiddleFields (PtrList< surfaceScalarField > &Lfield, surfaceScalarField &field, fileName casename) |
| template void | readMiddleFields (PtrList< surfaceVectorField > &Lfield, surfaceVectorField &field, fileName casename) |
| template void | readConvergedFields (PtrList< volScalarField > &Lfield, volScalarField &field, fileName casename) |
| template void | readConvergedFields (PtrList< volVectorField > &Lfield, volVectorField &field, fileName casename) |
| template void | readConvergedFields (PtrList< volTensorField > &Lfield, volTensorField &field, fileName casename) |
| template void | readConvergedFields (PtrList< surfaceScalarField > &Lfield, surfaceScalarField &field, fileName casename) |
| template void | readConvergedFields (PtrList< surfaceVectorField > &Lfield, surfaceVectorField &field, fileName casename) |
| template void | read_last_fields (PtrList< volScalarField > &Lfield, const volScalarField &field, const fileName casename) |
| template void | read_last_fields (PtrList< volVectorField > &Lfield, const volVectorField &field, const fileName casename) |
| template void | read_last_fields (PtrList< volTensorField > &Lfield, const volTensorField &field, const fileName casename) |
| template void | read_last_fields (PtrList< surfaceScalarField > &Lfield, const surfaceScalarField &field, const fileName casename) |
| template void | read_last_fields (PtrList< surfaceVectorField > &Lfield, const surfaceVectorField &field, const fileName casename) |
| template void | readLastFields (PtrList< volScalarField > &Lfield, const volScalarField &field, const fileName casename) |
| template void | readLastFields (PtrList< volVectorField > &Lfield, const volVectorField &field, const fileName casename) |
| template void | readLastFields (PtrList< volTensorField > &Lfield, const volTensorField &field, const fileName casename) |
| template void | readLastFields (PtrList< surfaceScalarField > &Lfield, const surfaceScalarField &field, const fileName casename) |
| template void | readLastFields (PtrList< surfaceVectorField > &Lfield, const surfaceVectorField &field, const fileName casename) |
| template<typename T> | |
| void | exportList (T &list, word folder, word filename) |
| Export a list to file. | |
| template void | exportList (Field< scalar > &list, word folder, word filename) |
| template void | exportList (Field< vector > &list, word folder, word filename) |
| template void | exportList (Field< tensor > &list, word folder, word filename) |
| template void | save (const List< Eigen::SparseMatrix< double > > &MatrixList, word folder, word MatrixName) |
| template void | load (List< Eigen::SparseMatrix< double > > &MatrixList, word folder, word MatrixName) |
| template GeometricField< scalar, fvPatchField, volMesh > | readFieldByIndex (const GeometricField< scalar, fvPatchField, volMesh > &, fileName, label) |
| template GeometricField< vector, fvPatchField, volMesh > | readFieldByIndex (const GeometricField< vector, fvPatchField, volMesh > &, fileName, label) |
| template GeometricField< tensor, fvPatchField, volMesh > | readFieldByIndex (const GeometricField< tensor, fvPatchField, volMesh > &, fileName, label) |
| template GeometricField< scalar, fvsPatchField, surfaceMesh > | readFieldByIndex (const GeometricField< scalar, fvsPatchField, surfaceMesh > &, fileName, label) |
| template GeometricField< vector, fvsPatchField, surfaceMesh > | readFieldByIndex (const GeometricField< vector, fvsPatchField, surfaceMesh > &, fileName, label) |
| template<typename T, int Nrows, typename IND> | |
| void | SaveSparseMatrix (Eigen::SparseMatrix< T, Nrows, IND > &m, word folder, word MatrixName) |
| Export an Eigen sparse matrix into bynary format file. | |
| template<typename T, int Nrows, typename IND> | |
| void | ReadSparseMatrix (Eigen::SparseMatrix< T, Nrows, IND > &m, word folder, word MatrixName) |
| Read an Eigen sparse matrix from a bynary format file. | |
| template<typename MatrixType> | |
| void | SaveDenseMatrix (MatrixType &Matrix, word folder, word MatrixName) |
| Save a dense matrix to a binary format file. | |
| template<typename MatrixType> | |
| void | ReadDenseMatrix (MatrixType &Matrix, word folder, word MatrixName) |
| Read a dense matrix from a binary format file. | |
| template<typename TensorType> | |
| void | SaveDenseTensor (TensorType &Tensor, word folder, word MatrixName) |
| Save a dense tensor to file. | |
| template<typename TensorType> | |
| void | ReadDenseTensor (TensorType &Tensor, word folder, word MatrixName) |
| Read a dense tensor from file. | |
| template<typename MatrixType> | |
| void | SaveSparseMatrixList (List< MatrixType > &MatrixList, word folder, word MatrixName) |
| Save a sparse matrix list to bynary files. | |
| template<typename T, int Nrows, typename IND> | |
| void | ReadSparseMatrixList (List< Eigen::SparseMatrix< T, Nrows, IND > > &m, word folder, word MatrixName) |
| Read a sparse matrix list to bynary files. | |
| template<typename MatrixType> | |
| void | SaveDenseMatrixList (List< MatrixType > &MatrixList, word folder, word MatrixName) |
| Save a dense matrix list to bynary files. | |
| template<typename MatrixType> | |
| void | ReadDenseMatrixList (List< MatrixType > &m, word folder, word MatrixName) |
| Read a sparse matrix list to bynary files. | |
Namespace for input-output manipulation.
| template void ITHACAstream::exportFields | ( | PtrList< GeometricField< scalar, fvPatchField, volMesh > > & | field, |
| word | folder, | ||
| word | fieldname ) |
| template void ITHACAstream::exportFields | ( | PtrList< GeometricField< scalar, fvsPatchField, surfaceMesh > > & | field, |
| word | folder, | ||
| word | fieldname ) |
| template void ITHACAstream::exportFields | ( | PtrList< GeometricField< tensor, fvPatchField, volMesh > > & | field, |
| word | folder, | ||
| word | fieldname ) |
| void ITHACAstream::exportFields | ( | PtrList< GeometricField< Type, PatchField, GeoMesh > > & | field, |
| word | folder, | ||
| word | fieldname ) |
Function to export a scalar of vector field.
| [in] | field | The field you want to export. |
| [in] | folder | The folder where you want to save the field. |
| [in] | fieldname | The name you want to give to the file. |
| Type | vector or scalar. |
| PatchField | fvPatchField or fvsPatchField. |
| GeoMesh | volMesh or surfaceMesh. |
Definition at line 874 of file ITHACAstream.C.
| template void ITHACAstream::exportFields | ( | PtrList< GeometricField< vector, fvPatchField, volMesh > > & | field, |
| word | folder, | ||
| word | fieldname ) |
| void ITHACAstream::exportFvMatrix | ( | fvMatrix< Type > & | Matrix, |
| word | folder, | ||
| word | MatrixName ) |
Export an Fv Matrix to folder together with its source term.
| Matrix | The matrix | |
| [in] | folder | The folder |
| [in] | MatrixName | The fieldname |
| Type | can be scalar or vector |
Definition at line 44 of file ITHACAstream.C.
| template void ITHACAstream::exportList | ( | Field< scalar > & | list, |
| word | folder, | ||
| word | filename ) |
| template void ITHACAstream::exportList | ( | Field< tensor > & | list, |
| word | folder, | ||
| word | filename ) |
| template void ITHACAstream::exportList | ( | Field< vector > & | list, |
| word | folder, | ||
| word | filename ) |
Export a list to file.
| [in] | list | The list |
| [in] | filename | Name of saved file |
| [in] | folder | Folder where the field is stored |
| T | generic list type object |
Definition at line 1134 of file ITHACAstream.C.
| template void ITHACAstream::exportMatrix | ( | Eigen::Matrix< double, -1, -1 > & | matrix, |
| word | Name, | ||
| word | type, | ||
| word | folder ) |
| template void ITHACAstream::exportMatrix | ( | Eigen::Matrix< double, -1, 1 > & | matrix, |
| word | Name, | ||
| word | type, | ||
| word | folder ) |
| template void ITHACAstream::exportMatrix | ( | Eigen::Matrix< float, -1, -1 > & | matrix, |
| word | Name, | ||
| word | type, | ||
| word | folder ) |
| template void ITHACAstream::exportMatrix | ( | Eigen::Matrix< float, -1, 1 > & | matrix, |
| word | Name, | ||
| word | type, | ||
| word | folder ) |
| template void ITHACAstream::exportMatrix | ( | Eigen::Matrix< int, -1, -1 > & | matrix, |
| word | Name, | ||
| word | type, | ||
| word | folder ) |
| template void ITHACAstream::exportMatrix | ( | Eigen::Matrix< int, -1, 1 > & | matrix, |
| word | Name, | ||
| word | type, | ||
| word | folder ) |
| void ITHACAstream::exportMatrix | ( | Eigen::Matrix< T, -1, dim > & | matrix, |
| word | Name, | ||
| word | type = "python", | ||
| word | folder = "./Matrices" ) |
Export the reduced matrices in numpy (type=python), matlab (type=matlab) and txt (type=eigen) format The function is implemented for a second order matrix.
| [in] | matrix | Eigen::MatrixXd that you want to export. |
| [in] | Name | Name of saved file. |
| [in] | type | Format of the file: numpy (type="python"), matlab (type="matlab"), txt (type="eigen"). |
| [in] | folder | Directory in which the file is saved. |
| T | The matrix can be of integers, double or float |
Definition at line 55 of file ITHACAstream.C.
| void ITHACAstream::exportMatrix | ( | List< Eigen::MatrixXd > & | matrix, |
| word | Name, | ||
| word | type = "python", | ||
| word | folder = "./Matrices" ) |
Export the reduced matrices in numpy (type=python), matlab (type=matlab) and txt (type=eigen) format The function is implemented for a third order matrix The eigen matrix is stored as a set of two dimensional matrices where each matrix is in a different file.
| [in] | matrix | Eigen::MatrixXd that you want to export. |
| [in] | Name | Name of saved file. |
| [in] | type | Format of the file: numpy (type="python"), matlab (type="matlab"), txt (type="eigen"). |
| [in] | folder | Directory in which the file is saved. |
Definition at line 173 of file ITHACAstream.C.
| template void ITHACAstream::exportSolution | ( | GeometricField< scalar, fvPatchField, volMesh > & | s, |
| fileName | subfolder, | ||
| fileName | folder ) |
| template void ITHACAstream::exportSolution | ( | GeometricField< scalar, fvPatchField, volMesh > & | s, |
| fileName | subfolder, | ||
| fileName | folder, | ||
| word | fieldName ) |
| template void ITHACAstream::exportSolution | ( | GeometricField< scalar, fvsPatchField, surfaceMesh > & | s, |
| fileName | subfolder, | ||
| fileName | folder ) |
| template void ITHACAstream::exportSolution | ( | GeometricField< scalar, fvsPatchField, surfaceMesh > & | s, |
| fileName | subfolder, | ||
| fileName | folder, | ||
| word | fieldName ) |
| template void ITHACAstream::exportSolution | ( | GeometricField< scalar, pointPatchField, pointMesh > & | s, |
| fileName | subfolder, | ||
| fileName | folder ) |
| template void ITHACAstream::exportSolution | ( | GeometricField< tensor, fvPatchField, volMesh > & | s, |
| fileName | subfolder, | ||
| fileName | folder ) |
| template void ITHACAstream::exportSolution | ( | GeometricField< tensor, fvPatchField, volMesh > & | s, |
| fileName | subfolder, | ||
| fileName | folder, | ||
| word | fieldName ) |
| template void ITHACAstream::exportSolution | ( | GeometricField< tensor, pointPatchField, pointMesh > & | s, |
| fileName | subfolder, | ||
| fileName | folder ) |
| void ITHACAstream::exportSolution | ( | GeometricField< Type, PatchField, GeoMesh > & | s, |
| fileName | subfolder, | ||
| fileName | folder ) |
Export a field to file in a certain folder and subfolder.
| [in] | s | Field |
| [in] | subfolder | Subfolder where the field is stored |
| [in] | folder | Folder where the field is stored |
| Type | vector or scalar. |
| PatchField | fvPatchField or fvsPatchField. |
| GeoMesh | volMesh or surfaceMesh. |
Definition at line 950 of file ITHACAstream.C.
| void ITHACAstream::exportSolution | ( | GeometricField< Type, PatchField, GeoMesh > & | s, |
| fileName | subfolder, | ||
| fileName | folder, | ||
| word | fieldName ) |
Export a field to file in a certain folder and subfolder.
| [in] | s | Field |
| [in] | subfolder | Subfolder where the field is stored |
| [in] | folder | Folder where the field is stored |
| [in] | fieldName | Name of the field/file |
| Type | vector or scalar. |
| PatchField | fvPatchField or fvsPatchField. |
| GeoMesh | volMesh or surfaceMesh. |
Definition at line 904 of file ITHACAstream.C.
| template void ITHACAstream::exportSolution | ( | GeometricField< vector, fvPatchField, volMesh > & | s, |
| fileName | subfolder, | ||
| fileName | folder ) |
| template void ITHACAstream::exportSolution | ( | GeometricField< vector, fvPatchField, volMesh > & | s, |
| fileName | subfolder, | ||
| fileName | folder, | ||
| word | fieldName ) |
| template void ITHACAstream::exportSolution | ( | GeometricField< vector, pointPatchField, pointMesh > & | s, |
| fileName | subfolder, | ||
| fileName | folder ) |
| template void ITHACAstream::exportTensor | ( | Eigen::Tensor< double, 3 > | tensor, |
| word | Name, | ||
| word | type, | ||
| word | folder ) |
| template void ITHACAstream::exportTensor | ( | Eigen::Tensor< float, 3 > | tensor, |
| word | Name, | ||
| word | type, | ||
| word | folder ) |
| template void ITHACAstream::exportTensor | ( | Eigen::Tensor< int, 3 > | tensor, |
| word | Name, | ||
| word | type, | ||
| word | folder ) |
| void ITHACAstream::exportTensor | ( | Eigen::Tensor< T, 3 > | tensor, |
| word | Name, | ||
| word | type = "python", | ||
| word | folder = "./Matrices" ) |
Export the reduced tensor in numpy (tipo=python), matlab (tipo=matlab) and txt (tipo=eigen) format.
| [in] | tensor | The tensor that you want to export. |
| [in] | Name | Name of saved file. |
| [in] | type | Format of the file: numpy (type="python"), matlab (type="matlab"), txt (type="eigen"). |
| [in] | folder | Directory in which the file is saved. |
| [in] | folder | folder string to identify the folder where you want to save the file. |
| T | The tensor can be of integers, double or float |
Definition at line 264 of file ITHACAstream.C.
| void ITHACAstream::exportVector | ( | Eigen::VectorXd & | vector, |
| word | Name, | ||
| word | type, | ||
| word | folder ) |
Definition at line 255 of file ITHACAstream.C.
| template void ITHACAstream::load | ( | List< Eigen::SparseMatrix< double > > & | MatrixList, |
| word | folder, | ||
| word | MatrixName ) |
| void ITHACAstream::load | ( | List< Eigen::SparseMatrix< T > > & | MatrixList, |
| word | folder, | ||
| word | MatrixName ) |
Definition at line 1049 of file ITHACAstream.C.
| int ITHACAstream::numberOfFiles | ( | word | folder, |
| word | MatrixName, | ||
| word | ext = "" ) |
Count the number of files with a certain name prefix, used by reading functions of list of matrices.
| [in] | folder | The folder |
| [in] | MatrixName | The matrix name |
Definition at line 853 of file ITHACAstream.C.
| void ITHACAstream::printProgress | ( | double | percentage | ) |
Print progress bar given the percentage.
| [in] | percentage | The percentage |
Definition at line 1023 of file ITHACAstream.C.
| void ITHACAstream::read_fields | ( | PtrList< GeometricField< Type, PatchField, GeoMesh > > & | Lfield, |
| GeometricField< Type, PatchField, GeoMesh > & | field, | ||
| fileName | casename, | ||
| int | first_snap = 0, | ||
| int | n_snap = 0 ) |
Function to read a list of fields from the name of the field if it is already existing.
| [in] | Lfield | a PtrList of OpenFOAM fields where you want to store the field. |
| [in] | field | The field used as template to read other fields. |
| [in] | casename | The folder where the field is stored. |
| [in] | first_snap | The first snapshots from which you want to start reading the field. |
| [in] | n_snap | The number of snapshots you want to read. |
| Type | vector or scalar. |
| PatchField | fvPatchField or fvsPatchField. |
| GeoMesh | volMesh or surfaceMesh. |
Definition at line 607 of file ITHACAstream.C.
| void ITHACAstream::read_fields | ( | PtrList< GeometricField< Type, PatchField, GeoMesh > > & | Lfield, |
| word | Name, | ||
| fileName | casename, | ||
| int | first_snap = 0, | ||
| int | n_snap = 0 ) |
Function to read a list of fields from the name of the field and casename.
| [in] | Lfield | a PtrList of OpenFOAM fields where you want to store the field. |
| [in] | Name | The name of the field you want to read. |
| [in] | casename | The folder where the field is stored. |
| [in] | first_snap | The first snapshots from which you want to start reading the field. |
| [in] | n_snap | The number of snapshots you want to read. |
| Type | vector or scalar. |
| PatchField | fvPatchField or fvsPatchField. |
| GeoMesh | volMesh or surfaceMesh. |
Definition at line 516 of file ITHACAstream.C.
| template void ITHACAstream::read_fields | ( | PtrList< surfaceScalarField > & | Lfield, |
| surfaceScalarField & | field, | ||
| fileName | casename, | ||
| int | first_snap, | ||
| int | n_snap ) |
| template void ITHACAstream::read_fields | ( | PtrList< surfaceScalarField > & | Lfield, |
| word | Name, | ||
| fileName | casename, | ||
| int | first_snap, | ||
| int | n_snap ) |
| template void ITHACAstream::read_fields | ( | PtrList< surfaceVectorField > & | Lfield, |
| surfaceVectorField & | field, | ||
| fileName | casename, | ||
| int | first_snap, | ||
| int | n_snap ) |
| template void ITHACAstream::read_fields | ( | PtrList< surfaceVectorField > & | Lfield, |
| word | Name, | ||
| fileName | casename, | ||
| int | first_snap, | ||
| int | n_snap ) |
| template void ITHACAstream::read_fields | ( | PtrList< volScalarField > & | Lfield, |
| volScalarField & | field, | ||
| fileName | casename, | ||
| int | first_snap, | ||
| int | n_snap ) |
| template void ITHACAstream::read_fields | ( | PtrList< volScalarField > & | Lfield, |
| word | Name, | ||
| fileName | casename, | ||
| int | first_snap, | ||
| int | n_snap ) |
| template void ITHACAstream::read_fields | ( | PtrList< volTensorField > & | Lfield, |
| volTensorField & | field, | ||
| fileName | casename, | ||
| int | first_snap, | ||
| int | n_snap ) |
| template void ITHACAstream::read_fields | ( | PtrList< volTensorField > & | Lfield, |
| word | Name, | ||
| fileName | casename, | ||
| int | first_snap, | ||
| int | n_snap ) |
| template void ITHACAstream::read_fields | ( | PtrList< volVectorField > & | Lfield, |
| volVectorField & | field, | ||
| fileName | casename, | ||
| int | first_snap, | ||
| int | n_snap ) |
| template void ITHACAstream::read_fields | ( | PtrList< volVectorField > & | Lfield, |
| word | Name, | ||
| fileName | casename, | ||
| int | first_snap, | ||
| int | n_snap ) |
| void ITHACAstream::read_last_fields | ( | PtrList< GeometricField< Type, PatchField, GeoMesh > > & | Lfield, |
| const GeometricField< Type, PatchField, GeoMesh > & | field, | ||
| const fileName | casename ) |
Function to read a list of fields from the name of the field including only the last snapshot.
| [in] | Lfield | a PtrList of OpenFOAM fields where you want to store the field. |
| [in] | field | The field used as template to read other fields. |
| [in] | casename | The folder where the field is stored. |
| Type | vector or scalar. |
| PatchField | fvPatchField or fvsPatchField. |
| GeoMesh | volMesh or surfaceMesh. |
Definition at line 753 of file ITHACAstream.C.
| template void ITHACAstream::read_last_fields | ( | PtrList< surfaceScalarField > & | Lfield, |
| const surfaceScalarField & | field, | ||
| const fileName | casename ) |
| template void ITHACAstream::read_last_fields | ( | PtrList< surfaceVectorField > & | Lfield, |
| const surfaceVectorField & | field, | ||
| const fileName | casename ) |
| template void ITHACAstream::read_last_fields | ( | PtrList< volScalarField > & | Lfield, |
| const volScalarField & | field, | ||
| const fileName | casename ) |
| template void ITHACAstream::read_last_fields | ( | PtrList< volTensorField > & | Lfield, |
| const volTensorField & | field, | ||
| const fileName | casename ) |
| template void ITHACAstream::read_last_fields | ( | PtrList< volVectorField > & | Lfield, |
| const volVectorField & | field, | ||
| const fileName | casename ) |
| void ITHACAstream::readConvergedFields | ( | PtrList< GeometricField< Type, PatchField, GeoMesh > > & | Lfield, |
| GeometricField< Type, PatchField, GeoMesh > & | field, | ||
| fileName | casename ) |
Function to read a list of volVectorField from name of the field including only converged snapshots.
| [in] | Lfield | a PtrList of OpenFOAM fields where you want to store the field. |
| [in] | field | The field used as template to read other fields. |
| [in] | casename | The folder where the field is stored. |
| Type | vector or scalar. |
| PatchField | fvPatchField or fvsPatchField. |
| GeoMesh | volMesh or surfaceMesh. |
Definition at line 717 of file ITHACAstream.C.
| template void ITHACAstream::readConvergedFields | ( | PtrList< surfaceScalarField > & | Lfield, |
| surfaceScalarField & | field, | ||
| fileName | casename ) |
| template void ITHACAstream::readConvergedFields | ( | PtrList< surfaceVectorField > & | Lfield, |
| surfaceVectorField & | field, | ||
| fileName | casename ) |
| template void ITHACAstream::readConvergedFields | ( | PtrList< volScalarField > & | Lfield, |
| volScalarField & | field, | ||
| fileName | casename ) |
| template void ITHACAstream::readConvergedFields | ( | PtrList< volTensorField > & | Lfield, |
| volTensorField & | field, | ||
| fileName | casename ) |
| template void ITHACAstream::readConvergedFields | ( | PtrList< volVectorField > & | Lfield, |
| volVectorField & | field, | ||
| fileName | casename ) |
| void ITHACAstream::ReadDenseMatrix | ( | MatrixType & | Matrix, |
| word | folder, | ||
| word | MatrixName ) |
Read a dense matrix from a binary format file.
| [in,out] | Matrix | Eigen dense matrix |
| [in] | folder | Folder from where you want to read the matrix |
| [in] | MatrixName | Name of the input file |
| MatrixType | type of the matrix, i.e. double, float, ... |
Definition at line 692 of file ITHACAstream.H.
| void ITHACAstream::ReadDenseMatrixList | ( | List< MatrixType > & | m, |
| word | folder, | ||
| word | MatrixName ) |
Read a sparse matrix list to bynary files.
| [in,out] | MatrixList | The matrix list |
| [in] | folder | The folder from where you want to read the files |
| [in] | MatrixName | The matrix name prefix, files are the named with an incremental number |
| MatrixType | MatrixType type of the matrix, i.e. double, float, ... |
Definition at line 802 of file ITHACAstream.H.
| void ITHACAstream::ReadDenseTensor | ( | TensorType & | Tensor, |
| word | folder, | ||
| word | MatrixName ) |
Read a dense tensor from file.
| [in/out] | Tensor The tensor | |
| [in] | folder | Folder where you want to read the tensor |
| [in] | MatrixName | The matrix name |
| TensorType | type of the tensor, i.e. double, float, ... |
Definition at line 739 of file ITHACAstream.H.
| template GeometricField< scalar, fvPatchField, volMesh > ITHACAstream::readFieldByIndex | ( | const GeometricField< scalar, fvPatchField, volMesh > & | , |
| fileName | , | ||
| label | ) |
| template GeometricField< scalar, fvsPatchField, surfaceMesh > ITHACAstream::readFieldByIndex | ( | const GeometricField< scalar, fvsPatchField, surfaceMesh > & | , |
| fileName | , | ||
| label | ) |
| template GeometricField< tensor, fvPatchField, volMesh > ITHACAstream::readFieldByIndex | ( | const GeometricField< tensor, fvPatchField, volMesh > & | , |
| fileName | , | ||
| label | ) |
| GeometricField< Type, PatchField, GeoMesh > ITHACAstream::readFieldByIndex | ( | const GeometricField< Type, PatchField, GeoMesh > & | field, |
| fileName | casename, | ||
| label | index ) |
Function to read a single field by index from a folder.
| [in] | field | The field template to use for reading |
| [in] | casename | The folder where the field is stored |
| [in] | index | The index of the field to read |
| Type | vector or scalar |
| PatchField | fvPatchField or fvsPatchField |
| GeoMesh | volMesh or surfaceMesh |
Definition at line 454 of file ITHACAstream.C.
| template GeometricField< vector, fvPatchField, volMesh > ITHACAstream::readFieldByIndex | ( | const GeometricField< vector, fvPatchField, volMesh > & | , |
| fileName | , | ||
| label | ) |
| template GeometricField< vector, fvsPatchField, surfaceMesh > ITHACAstream::readFieldByIndex | ( | const GeometricField< vector, fvsPatchField, surfaceMesh > & | , |
| fileName | , | ||
| label | ) |
| void ITHACAstream::readLastFields | ( | PtrList< GeometricField< Type, PatchField, GeoMesh > > & | Lfield, |
| const GeometricField< Type, PatchField, GeoMesh > & | field, | ||
| const fileName | casename ) |
Funtion to read a list of volVectorField from name of the field including only the last snapshots.
| [in] | Lfield | a PtrList of OpenFOAM fields where you want to store the field. |
| [in] | field | The field used as template to read other fields. |
| [in] | casename | The folder where the field is stored. |
| Type | vector or scalar. |
| PatchField | fvPatchField or fvsPatchField. |
| GeoMesh | volMesh or surfaceMesh. |
Definition at line 837 of file ITHACAstream.C.
| template void ITHACAstream::readLastFields | ( | PtrList< surfaceScalarField > & | Lfield, |
| const surfaceScalarField & | field, | ||
| const fileName | casename ) |
| template void ITHACAstream::readLastFields | ( | PtrList< surfaceVectorField > & | Lfield, |
| const surfaceVectorField & | field, | ||
| const fileName | casename ) |
| template void ITHACAstream::readLastFields | ( | PtrList< volScalarField > & | Lfield, |
| const volScalarField & | field, | ||
| const fileName | casename ) |
| template void ITHACAstream::readLastFields | ( | PtrList< volTensorField > & | Lfield, |
| const volTensorField & | field, | ||
| const fileName | casename ) |
| template void ITHACAstream::readLastFields | ( | PtrList< volVectorField > & | Lfield, |
| const volVectorField & | field, | ||
| const fileName | casename ) |
| Eigen::MatrixXd ITHACAstream::readMatrix | ( | word | filename | ) |
Read a two dimensional matrix from a txt file in Eigen format.
| [in] | filename | The filename of the matrix. |
Definition at line 400 of file ITHACAstream.C.
| List< Eigen::MatrixXd > ITHACAstream::readMatrix | ( | word | folder, |
| word | mat_name ) |
Read a three dimensional matrix from a txt file in Eigen format.
| [in] | folder | The folder where the txt files are located |
| [in] | mat_name | The matrix name |
Definition at line 372 of file ITHACAstream.C.
| void ITHACAstream::readMiddleFields | ( | PtrList< GeometricField< Type, PatchField, GeoMesh > > & | Lfield, |
| GeometricField< Type, PatchField, GeoMesh > & | field, | ||
| fileName | casename ) |
Funtion to read a list of volVectorField from name of the field including all the intermediate snapshots.
| [in] | Lfield | a PtrList of OpenFOAM fields where you want to store the field. |
| [in] | field | The field used as template to read other fields. |
| [in] | casename | The folder where the field is stored. |
| Type | vector or scalar. |
| PatchField | fvPatchField or fvsPatchField. |
| GeoMesh | volMesh or surfaceMesh. |
Definition at line 701 of file ITHACAstream.C.
| template void ITHACAstream::readMiddleFields | ( | PtrList< surfaceScalarField > & | Lfield, |
| surfaceScalarField & | field, | ||
| fileName | casename ) |
| template void ITHACAstream::readMiddleFields | ( | PtrList< surfaceVectorField > & | Lfield, |
| surfaceVectorField & | field, | ||
| fileName | casename ) |
| template void ITHACAstream::readMiddleFields | ( | PtrList< volScalarField > & | Lfield, |
| volScalarField & | field, | ||
| fileName | casename ) |
| template void ITHACAstream::readMiddleFields | ( | PtrList< volTensorField > & | Lfield, |
| volTensorField & | field, | ||
| fileName | casename ) |
| template void ITHACAstream::readMiddleFields | ( | PtrList< volVectorField > & | Lfield, |
| volVectorField & | field, | ||
| fileName | casename ) |
| void ITHACAstream::ReadSparseMatrix | ( | Eigen::SparseMatrix< T, Nrows, IND > & | m, |
| word | folder, | ||
| word | MatrixName ) |
Read an Eigen sparse matrix from a bynary format file.
| [in,out] | m | Eigen::SparseMatrix m |
| [in] | folder | The folder from where you want to read the matrix |
| [in] | MatrixName | The matrix name for the input file |
| T | type of the matrix, i.e. double, float, ... |
| Nrows | number of matrix rows |
| IND | number of matrix cols |
| void ITHACAstream::ReadSparseMatrixList | ( | List< Eigen::SparseMatrix< T, Nrows, IND > > & | m, |
| word | folder, | ||
| word | MatrixName ) |
Read a sparse matrix list to bynary files.
| [in,out] | MatrixList | The matrix list |
| [in] | folder | The folder from where you want to read the files |
| [in] | MatrixName | The matrix name prefix, files are the named with an incremental number |
| MatrixType | MatrixType type of the matrix, i.e. double, float, ... |
| Nrows | number of matrix rows |
| IND | number of matrix cols |
| template void ITHACAstream::save | ( | const List< Eigen::SparseMatrix< double > > & | MatrixList, |
| word | folder, | ||
| word | MatrixName ) |
| void ITHACAstream::save | ( | const List< Eigen::SparseMatrix< T > > & | MatrixList, |
| word | folder, | ||
| word | MatrixName ) |
Definition at line 1037 of file ITHACAstream.C.
| void ITHACAstream::SaveDenseMatrix | ( | MatrixType & | Matrix, |
| word | folder, | ||
| word | MatrixName ) |
Save a dense matrix to a binary format file.
| [in] | Matrix | Eigen dense matrix |
| [in] | folder | Folder where you want to save the matrix |
| [in] | MatrixName | Name of the output file |
| MatrixType | type of the matrix, i.e. double, float, ... |
Definition at line 675 of file ITHACAstream.H.
| void ITHACAstream::SaveDenseMatrixList | ( | List< MatrixType > & | MatrixList, |
| word | folder, | ||
| word | MatrixName ) |
Save a dense matrix list to bynary files.
| [in] | MatrixList | The matrix list |
| [in] | folder | The folder where you want to save files |
| [in] | MatrixName | The matrix name prefix, files are the named with an incremental number |
| MatrixType | MatrixType type of the matrix, i.e. double, float, ... |
Definition at line 774 of file ITHACAstream.H.
| void ITHACAstream::SaveDenseTensor | ( | TensorType & | Tensor, |
| word | folder, | ||
| word | MatrixName ) |
Save a dense tensor to file.
| [in] | Tensor | The tensor |
| [in] | folder | Folder where you want to save the tensor |
| [in] | MatrixName | The matrix name |
| TensorType | type of the tensor, i.e. double, float, ... |
Definition at line 718 of file ITHACAstream.H.
| void ITHACAstream::SaveSparseMatrix | ( | Eigen::SparseMatrix< T, Nrows, IND > & | m, |
| word | folder, | ||
| word | MatrixName ) |
Export an Eigen sparse matrix into bynary format file.
| m | Eigen::SparseMatrix | |
| [in] | folder | The folder where you want to save the matrix |
| [in] | MatrixName | The matrix name for the output file |
| T | type of the matrix, i.e. double, float, ... |
| Nrows | number of matrix rows |
| IND | number of matrix cols |
| void ITHACAstream::SaveSparseMatrixList | ( | List< MatrixType > & | MatrixList, |
| word | folder, | ||
| word | MatrixName ) |
Save a sparse matrix list to bynary files.
| [in] | MatrixList | The matrix list |
| [in] | folder | The folder where you want to save files |
| [in] | MatrixName | The matrix name prefix, files are the named with an incremental number |
| MatrixType | MatrixType type of the matrix, i.e. double, float, ... |
Definition at line 764 of file ITHACAstream.H.
| void ITHACAstream::writePoints | ( | pointField | points, |
| fileName | folder, | ||
| fileName | subfolder ) |
Write points of a mesh to a file.
| [in] | points | The points you want to write |
| [in] | folder | The folder where you want to save the file |
| [in] | subfolder | The subfolder where you want to save the file |
Definition at line 997 of file ITHACAstream.C.
1.13.2