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

Header file of the ITHACAfieldsOperations file. More...

#include "fvCFD.H"
#include <Eigen/Eigen>
#include "ITHACAstream.H"
#include "ITHACAparameters.H"
#include "ITHACAgeometry.H"
#include "ITHACAsystem.H"
#include "ITHACAassign.H"

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<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<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<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<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.
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<class TypeField>
TypeField ITHACAutilities::computeAverage (PtrList< TypeField > &fields)
 Calculates the average of a list of fields.
template<typename Type>
void ITHACAutilities::normalizeFields (PtrList< GeometricField< Type, fvPatchField, volMesh > > &fields)
 Normalize list of Geometric fields.
template<typename Type>
Eigen::MatrixXd ITHACAutilities::getValues (GeometricField< Type, fvPatchField, volMesh > &field, labelList &indices, labelList *xyz=NULL)
 ///
template<typename Type>
Eigen::MatrixXd ITHACAutilities::getValues (PtrList< GeometricField< Type, fvPatchField, volMesh > > &field, labelList &indices, labelList *xyz=NULL)
 Gets the values from a list of indices.

Detailed Description

Header file of the ITHACAfieldsOperations file.

Definition in file ITHACAfieldsOperations.H.