Source file of the ITHACAstream namespace. More...
#include "ITHACAstream.H"
Go to the source code of this file.
Namespaces | |
namespace | ITHACAstream |
Namespace for input-output manipulation. | |
Functions | |
template<typename Type > | |
void | ITHACAstream::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 | 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. | |
template void | ITHACAstream::exportMatrix (Eigen::Matrix< double, -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< float, -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< int, -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) |
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. | |
void | ITHACAstream::exportVector (Eigen::VectorXd &vector, word Name, word type, word folder) |
template<typename T > | |
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. | |
template void | ITHACAstream::exportTensor (Eigen::Tensor< double, 3 > tensor, word Name, word type, word folder) |
template void | ITHACAstream::exportTensor (Eigen::Tensor< int, 3 > tensor, word Name, word type, word folder) |
template void | ITHACAstream::exportTensor (Eigen::Tensor< float, 3 > tensor, word Name, word type, word folder) |
List< Eigen::MatrixXd > | ITHACAstream::readMatrix (word folder, word mat_name) |
Read a three dimensional matrix from a txt file in Eigen format. | |
Eigen::MatrixXd | ITHACAstream::readMatrix (word filename) |
Read a two dimensional matrix from a txt file in Eigen format. | |
template<class Type , template< class > class PatchField, class GeoMesh > | |
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. | |
template<class Type , template< class > class PatchField, class GeoMesh > | |
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. | |
template<class Type , template< class > class PatchField, class GeoMesh > | |
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. | |
template<class Type , template< class > class PatchField, class GeoMesh > | |
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. | |
template<class Type , template< class > class PatchField, class GeoMesh > | |
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. | |
template<class Type , template< class > class PatchField, class GeoMesh > | |
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. | |
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. | |
template<class Type , template< class > class PatchField, class GeoMesh > | |
void | ITHACAstream::exportFields (PtrList< GeometricField< Type, PatchField, GeoMesh > > &field, word folder, word fieldname) |
Function to export a scalar of vector field. | |
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< vector, fvPatchField, volMesh > > &field, word folder, word fieldname) |
template void | ITHACAstream::exportFields (PtrList< GeometricField< tensor, fvPatchField, volMesh > > &field, word folder, word fieldname) |
template<class Type , template< class > class PatchField, class GeoMesh > | |
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. | |
template void | ITHACAstream::exportSolution (GeometricField< scalar, fvPatchField, volMesh > &s, fileName subfolder, fileName folder, word fieldName) |
template void | ITHACAstream::exportSolution (GeometricField< vector, fvPatchField, volMesh > &s, fileName subfolder, fileName folder, word fieldName) |
template void | ITHACAstream::exportSolution (GeometricField< tensor, fvPatchField, volMesh > &s, fileName subfolder, fileName folder, word fieldName) |
template void | ITHACAstream::exportSolution (GeometricField< scalar, fvsPatchField, surfaceMesh > &s, fileName subfolder, fileName folder, word fieldName) |
template<class Type , template< class > class PatchField, class GeoMesh > | |
void | ITHACAstream::exportSolution (GeometricField< Type, PatchField, GeoMesh > &s, fileName subfolder, fileName folder) |
Export a field to file in a certain folder and subfolder. | |
template void | ITHACAstream::exportSolution (GeometricField< scalar, fvPatchField, volMesh > &s, fileName subfolder, fileName folder) |
template void | ITHACAstream::exportSolution (GeometricField< vector, fvPatchField, volMesh > &s, fileName subfolder, fileName folder) |
template void | ITHACAstream::exportSolution (GeometricField< tensor, fvPatchField, volMesh > &s, fileName subfolder, fileName folder) |
template void | ITHACAstream::exportSolution (GeometricField< scalar, fvsPatchField, surfaceMesh > &s, fileName subfolder, fileName folder) |
template void | ITHACAstream::exportSolution (GeometricField< scalar, pointPatchField, pointMesh > &s, fileName subfolder, fileName folder) |
template void | ITHACAstream::exportSolution (GeometricField< vector, pointPatchField, pointMesh > &s, fileName subfolder, fileName folder) |
template void | ITHACAstream::exportSolution (GeometricField< tensor, pointPatchField, pointMesh > &s, fileName subfolder, fileName folder) |
void | ITHACAstream::writePoints (pointField points, fileName folder, fileName subfolder) |
Write points of a mesh to a file. | |
void | ITHACAstream::printProgress (double percentage) |
Print progress bar given the percentage. | |
template<typename T > | |
void | ITHACAstream::save (const List< Eigen::SparseMatrix< T > > &MatrixList, word folder, word MatrixName) |
template<typename T > | |
void | ITHACAstream::load (List< Eigen::SparseMatrix< T > > &MatrixList, word folder, word MatrixName) |
template void | ITHACAstream::read_fields (PtrList< volScalarField > &Lfield, word Name, 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) |
template void | ITHACAstream::read_fields (PtrList< volTensorField > &Lfield, word Name, 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, 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< volVectorField > &Lfield, volVectorField &field, 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< surfaceScalarField > &Lfield, surfaceScalarField &field, 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::readMiddleFields (PtrList< volScalarField > &Lfield, volScalarField &field, fileName casename) |
template void | ITHACAstream::readMiddleFields (PtrList< volVectorField > &Lfield, volVectorField &field, fileName casename) |
template void | ITHACAstream::readMiddleFields (PtrList< volTensorField > &Lfield, volTensorField &field, fileName casename) |
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::readConvergedFields (PtrList< volScalarField > &Lfield, volScalarField &field, fileName casename) |
template void | ITHACAstream::readConvergedFields (PtrList< volVectorField > &Lfield, volVectorField &field, fileName casename) |
template void | ITHACAstream::readConvergedFields (PtrList< volTensorField > &Lfield, volTensorField &field, fileName casename) |
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::read_last_fields (PtrList< volScalarField > &Lfield, const volScalarField &field, const fileName casename) |
template void | ITHACAstream::read_last_fields (PtrList< volVectorField > &Lfield, const volVectorField &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< 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::readLastFields (PtrList< volScalarField > &Lfield, const volScalarField &field, const fileName casename) |
template void | ITHACAstream::readLastFields (PtrList< volVectorField > &Lfield, const volVectorField &field, const fileName casename) |
template void | ITHACAstream::readLastFields (PtrList< volTensorField > &Lfield, const volTensorField &field, const fileName casename) |
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<typename T > | |
void | ITHACAstream::exportList (T &list, word folder, word filename) |
Export a list to file. | |
template void | ITHACAstream::exportList (Field< scalar > &list, word folder, word filename) |
template void | ITHACAstream::exportList (Field< vector > &list, word folder, word filename) |
template void | ITHACAstream::exportList (Field< tensor > &list, word folder, word filename) |
template void | ITHACAstream::save (const List< Eigen::SparseMatrix< double > > &MatrixList, word folder, word MatrixName) |
template void | ITHACAstream::load (List< Eigen::SparseMatrix< double > > &MatrixList, word folder, word MatrixName) |
Source file of the ITHACAstream namespace.
Definition in file ITHACAstream.C.