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

Source file of the ITHACAfieldsOperations file. More...

Go to the source code of this file.

Namespaces

namespace  ITHACAutilities
 Namespace to implement some useful assign operation of OF fields.

Functions

template<typename T>
void ITHACAutilities::multField (T &f1, double alpha)
 Multiplication between a field of type vol[Scalar|Vector|Tensor]Field and a double.
template void ITHACAutilities::multField (volScalarField &f1, double alpha)
template void ITHACAutilities::multField (volVectorField &f1, double alpha)
template void ITHACAutilities::multField (volTensorField &f1, double alpha)
template<typename T>
void ITHACAutilities::multField (T &f1, const Eigen::VectorXd alphaVec)
 Multiplication between field of type vol[Scalar|Vector|Tensor]Field and a vector.
template void ITHACAutilities::multField (volScalarField &f1, const Eigen::VectorXd alphaVec)
template void ITHACAutilities::multField (volVectorField &f1, const Eigen::VectorXd alphaVec)
template void ITHACAutilities::multField (volTensorField &f1, const Eigen::VectorXd alphaVec)
template<typename T>
void ITHACAutilities::multField (PtrList< T > &f1, const Eigen::VectorXd alphaVec)
 Multiplication between a list of field of type vol[Scalar|Vector|Tensor]Field.
template void ITHACAutilities::multField (PtrList< volScalarField > &f1, const Eigen::VectorXd alphaVec)
template void ITHACAutilities::multField (PtrList< volVectorField > &f1, const Eigen::VectorXd alphaVec)
template void ITHACAutilities::multField (PtrList< volTensorField > &f1, const Eigen::VectorXd alphaVec)
template<typename T>
void ITHACAutilities::addFields (T &f1, const T &f2c, double alpha=1.0)
 Perform the following operation f1 + f2 * alpha with f1 and f2 being of type vol[Scalar|Vector|Tensor]Field and alpha a double.
template void ITHACAutilities::addFields (volScalarField &f1, const volScalarField &f2c, double alpha)
template void ITHACAutilities::addFields (volVectorField &f1, const volVectorField &f2c, double alpha)
template void ITHACAutilities::addFields (volTensorField &f1, const volTensorField &f2c, double alpha)
template<typename T>
void ITHACAutilities::subtractFields (T &f1, const T &f2)
 Perform the substraction (f1 - f2) between two fields of type vol[Scalar|Vector|Tensor]Field and alpha a double.
template void ITHACAutilities::subtractFields (volScalarField &f1, const volScalarField &f2)
template void ITHACAutilities::subtractFields (volVectorField &f1, const volVectorField &f2)
template void ITHACAutilities::subtractFields (volTensorField &f1, const volTensorField &f2)
volTensorField ITHACAutilities::tensorFieldProduct (const volScalarField &coef, const volTensorField &S)
 Tensor field product between a volScalarField and a volTensorField.
volTensorField ITHACAutilities::tensorFieldProduct (const volTensorField &coef, const volTensorField &S)
 Tensor field product between two volTensorFields.
int ITHACAutilities::dimensionField (const volTensorField &v)
 Return the dimension of a volTensorField.
int ITHACAutilities::dimensionField (const volVectorField &v)
 Return the dimension of a volVectorField.
int ITHACAutilities::dimensionField (const volScalarField &v)
 Return the dimension of a volScalarField.
template<class TypeField>
PtrList< TypeField > ITHACAutilities::averageSubtract (PtrList< TypeField > fields, Eigen::MatrixXd ind, PtrList< TypeField > &ave)
 A function to compute time-averaged fields for a set of different parameter samples and also the fields with the corresponding averaged subtracted.
template PtrList< volScalarField > ITHACAutilities::averageSubtract (PtrList< volScalarField > fields, Eigen::MatrixXd ind, PtrList< volScalarField > &ave)
template PtrList< volVectorField > ITHACAutilities::averageSubtract (PtrList< volVectorField > fields, Eigen::MatrixXd ind, PtrList< volVectorField > &ave)
template<class TypeField>
TypeField ITHACAutilities::computeAverage (PtrList< TypeField > &fields)
 Calculates the average of a list of fields.
template volVectorField ITHACAutilities::computeAverage (PtrList< volVectorField > &fields)
template volScalarField ITHACAutilities::computeAverage (PtrList< volScalarField > &fields)
template<typename Type>
void ITHACAutilities::normalizeFields (PtrList< GeometricField< Type, fvPatchField, volMesh > > &fields)
 Normalize list of Geometric fields.
template void ITHACAutilities::normalizeFields (PtrList< GeometricField< scalar, fvPatchField, volMesh > > &fields)
template void ITHACAutilities::normalizeFields (PtrList< GeometricField< vector, fvPatchField, volMesh > > &fields)
template<typename Type>
Eigen::MatrixXd ITHACAutilities::getValues (GeometricField< Type, fvPatchField, volMesh > &field, labelList &indices)
template<>
Eigen::MatrixXd ITHACAutilities::getValues (GeometricField< vector, fvPatchField, volMesh > &field, labelList &indices, labelList *xyz)
template<>
Eigen::MatrixXd ITHACAutilities::getValues (GeometricField< scalar, fvPatchField, volMesh > &field, labelList &indices, labelList *xyz)
template<typename T>
Eigen::MatrixXd ITHACAutilities::getValues (PtrList< GeometricField< T, fvPatchField, volMesh > > &fields, labelList &indices, labelList *xyz)
template Eigen::MatrixXd ITHACAutilities::getValues (PtrList< GeometricField< scalar, fvPatchField, volMesh > > &fields, labelList &indices, labelList *xyz)
template Eigen::MatrixXd ITHACAutilities::getValues (PtrList< GeometricField< vector, fvPatchField, volMesh > > &fields, labelList &indices, labelList *xyz)

Detailed Description

Source file of the ITHACAfieldsOperations file.

Definition in file ITHACAfieldsOperations.C.