Namespace to implement some useful assign operation of OF fields. More...
Namespaces | |
| namespace | ITHACAsurfacetools |
Functions | |
| template<class TypeField> | |
| PtrList< TypeField > | 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 > | averageSubtract (PtrList< volScalarField > fields, Eigen::MatrixXd ind, PtrList< volScalarField > &ave) |
| template PtrList< volVectorField > | averageSubtract (PtrList< volVectorField > fields, Eigen::MatrixXd ind, PtrList< volVectorField > &ave) |
| template<class TypeField> | |
| TypeField | computeAverage (PtrList< TypeField > &fields) |
| Calculates the average of a list of fields. | |
| template volVectorField | computeAverage (PtrList< volVectorField > &fields) |
| template volScalarField | computeAverage (PtrList< volScalarField > &fields) |
| template<typename Type> | |
| void | assignIF (GeometricField< Type, fvPatchField, volMesh > &field, Type value) |
| Assign internal field. | |
| template void | assignIF (GeometricField< scalar, fvPatchField, volMesh > &field, scalar value) |
| template void | assignIF (GeometricField< vector, fvPatchField, volMesh > &field, vector value) |
| template<typename Type> | |
| void | assignIF (GeometricField< Type, fvPatchField, volMesh > &field, Type &value, List< label > &indices) |
| Assign internal field. | |
| template void | assignIF (GeometricField< scalar, fvPatchField, volMesh > &s, scalar &value, List< label > &indices) |
| template void | assignIF (GeometricField< vector, fvPatchField, volMesh > &s, vector &value, List< label > &indices) |
| template<typename Type> | |
| void | assignIF (GeometricField< Type, fvPatchField, volMesh > &field, Type &value, label index) |
| Assign internal field. | |
| template void | assignIF (GeometricField< scalar, fvPatchField, volMesh > &field, scalar &value, label index) |
| template void | assignIF (GeometricField< vector, fvPatchField, volMesh > &field, vector &value, label index) |
| void | assignONE (volScalarField &s, List< label > &L) |
| Assign one to volScalarField. | |
| void | assignBC (GeometricField< scalar, fvPatchField, volMesh > &s, label BC_ind, double value) |
| Assign uniform Boundary Condition to a volScalarField. | |
| void | assignBC (GeometricField< scalar, fvPatchField, volMesh > &s, label BC_ind, Eigen::MatrixXd valueVec) |
| Assign Boundary Condition to a volScalarField. | |
| void | assignBC (GeometricField< scalar, fvPatchField, volMesh > &s, label BC_ind, List< double > valueList) |
| Assign Boundary Condition to a volScalarField. | |
| void | assignBC (GeometricField< vector, fvPatchField, volMesh > &s, label BC_ind, vector value) |
| Assign Boundary Condition to a volVectorField. | |
| void | assignBC (GeometricField< tensor, fvPatchField, volMesh > &s, label BC_ind, tensor value) |
| Assign Boundary Condition to a volTensorField. | |
| void | assignBC (GeometricField< vector, fvPatchField, volMesh > &s, label BC_ind, Eigen::MatrixXd valueVec) |
| Assign Boundary Condition to a volVectorField. | |
| void | assignBC (GeometricField< tensor, fvPatchField, volMesh > &s, label BC_ind, Eigen::MatrixXd valueVec) |
| Assign Boundary Condition to a volTensorField. | |
| void | assignBC (GeometricField< scalar, fvsPatchField, surfaceMesh > &field, label BC_ind, Eigen::MatrixXd value) |
| Assign Boundary Condition to a surfaceField. | |
| void | assignBC (GeometricField< vector, fvsPatchField, surfaceMesh > &s, label BC_ind, Eigen::MatrixXd valueVec) |
| void | assignBC (GeometricField< vector, fvPatchField, volMesh > &s, label BC_ind, List< vector > valueList) |
| Assign Boundary Condition to a volVectorField. | |
| void | assignBC (GeometricField< tensor, fvPatchField, volMesh > &s, label BC_ind, List< tensor > valueList) |
| Assign Boundary Condition to a volTensorField. | |
| template<typename Type> | |
| void | assignBC (GeometricField< Type, fvsPatchField, surfaceMesh > &field, label BC_ind, List< Type > &value) |
| Assign Boundary Condition to a surfaceField. | |
| template void | assignBC (GeometricField< scalar, fvsPatchField, surfaceMesh > &s, label BC_ind, List< scalar > &valueList) |
| template void | assignBC (GeometricField< vector, fvsPatchField, surfaceMesh > &s, label BC_ind, List< vector > &valueList) |
| template<typename Type> | |
| void | assignBC (GeometricField< Type, fvsPatchField, surfaceMesh > &field, label BC_ind, Type &value) |
| Assign Boundary Condition to a surfaceField. | |
| template void | assignBC (GeometricField< scalar, fvsPatchField, surfaceMesh > &s, label BC_ind, scalar &valueList) |
| template void | assignBC (GeometricField< vector, fvsPatchField, surfaceMesh > &s, label BC_ind, vector &valueList) |
| template<typename Type> | |
| void | changeNeumann2Dirichlet (GeometricField< Type, fvPatchField, volMesh > &field, Type &value) |
| Change all Neumann boundary conditions to Dirichlet boundary conditions. | |
| template void | changeNeumann2Dirichlet (GeometricField< scalar, fvPatchField, volMesh > &field, scalar &value) |
| template void | changeNeumann2Dirichlet (GeometricField< vector, fvPatchField, volMesh > &field, vector &value) |
| template<typename Type> | |
| void | assignZeroDirichlet (GeometricField< Type, fvPatchField, volMesh > &field) |
| Assign zero internal field. | |
| template void | assignZeroDirichlet (GeometricField< vector, fvPatchField, volMesh > &field) |
| template void | assignZeroDirichlet (GeometricField< scalar, fvPatchField, volMesh > &field) |
| template<typename Type> | |
| void | setBoxToValue (GeometricField< Type, fvPatchField, volMesh > &field, Eigen::MatrixXd Box, Type value) |
| Set value of a volScalarField to a constant inside a given box. | |
| template void | setBoxToValue (GeometricField< scalar, fvPatchField, volMesh > &field, Eigen::MatrixXd Box, scalar value) |
| template void | setBoxToValue (GeometricField< vector, fvPatchField, volMesh > &field, Eigen::MatrixXd Box, vector value) |
| template<typename Type> | |
| void | setIndices2Value (labelList &ind2set, List< Type > &value2set, labelList &movingIDS, List< Type > &originalList) |
| Sets some given Indices of a list of objects to given values. | |
| template void | setIndices2Value (labelList &ind2set, List< scalar > &value2set, labelList &movingIDS, List< scalar > &originalList) |
| template void | setIndices2Value (labelList &ind2set, List< vector > &value2set, labelList &movingIDS, List< vector > &originalList) |
| template<class Type> | |
| void | changeBCtype (GeometricField< Type, fvPatchField, volMesh > &field, word BCtype, label BC_ind) |
| Change the boundary condition type for a GeometricField. | |
| template void | changeBCtype< scalar > (GeometricField< scalar, fvPatchField, volMesh > &field, word BCtype, label BC_ind) |
| template void | changeBCtype< vector > (GeometricField< vector, fvPatchField, volMesh > &field, word BCtype, label BC_ind) |
| template<typename Type> | |
| void | assignMixedBC (GeometricField< Type, fvPatchField, volMesh > &field, label BC_ind, List< Type > &value, List< Type > &grad, List< scalar > &valueFrac) |
| Assign value of a boundary condition of type "mixed". | |
| template void | assignMixedBC< scalar > (GeometricField< scalar, fvPatchField, volMesh > &field, label BC_ind, List< scalar > &value, List< scalar > &grad, List< scalar > &valueFrac) |
| template void | assignMixedBC< vector > (GeometricField< vector, fvPatchField, volMesh > &field, label BC_ind, List< vector > &value, List< vector > &grad, List< scalar > &valueFrac) |
| template<typename Type> | |
| void | normalizeFields (PtrList< GeometricField< Type, fvPatchField, volMesh > > &fields) |
| Normalize list of Geometric fields. | |
| template void | normalizeFields (PtrList< GeometricField< scalar, fvPatchField, volMesh > > &fields) |
| template void | normalizeFields (PtrList< GeometricField< vector, fvPatchField, volMesh > > &fields) |
| template<typename Type> | |
| Eigen::MatrixXd | getValues (GeometricField< Type, fvPatchField, volMesh > &field, labelList &indices) |
| template<> | |
| Eigen::MatrixXd | getValues (GeometricField< vector, fvPatchField, volMesh > &field, labelList &indices, labelList *xyz) |
| template<> | |
| Eigen::MatrixXd | getValues (GeometricField< scalar, fvPatchField, volMesh > &field, labelList &indices, labelList *xyz) |
| template<typename T> | |
| Eigen::MatrixXd | getValues (PtrList< GeometricField< T, fvPatchField, volMesh > > &fields, labelList &indices, labelList *xyz) |
| template Eigen::MatrixXd | getValues (PtrList< GeometricField< scalar, fvPatchField, volMesh > > &fields, labelList &indices, labelList *xyz) |
| template Eigen::MatrixXd | getValues (PtrList< GeometricField< vector, fvPatchField, volMesh > > &fields, labelList &indices, labelList *xyz) |
| template<typename Type> | |
| void | assignMixedBC (GeometricField< Type, fvPatchField, volMesh > &field, label BC_ind, Eigen::MatrixXd &value, Eigen::MatrixXd &grad, Eigen::MatrixXd &valueFrac) |
| Assign value of a boundary condition of type "mixed". | |
| template<typename Type> | |
| Eigen::MatrixXd | getValues (GeometricField< Type, fvPatchField, volMesh > &field, labelList &indices, labelList *xyz=NULL) |
| /// | |
| template<typename Type> | |
| Eigen::MatrixXd | getValues (PtrList< GeometricField< Type, fvPatchField, volMesh > > &field, labelList &indices, labelList *xyz=NULL) |
| Gets the values from a list of indices. | |
| template<class Type, template< class > class PatchField, class GeoMesh> | |
| PtrList< GeometricField< Type, PatchField, GeoMesh > > | reconstructFromCoeff (PtrList< GeometricField< Type, PatchField, GeoMesh > > &modes, Eigen::MatrixXd &coeff_matrix, label Nmodes) |
| Exact reconstruction using a certain number of modes for a list of fields and the projection coefficients. | |
| template PtrList< GeometricField< scalar, fvPatchField, volMesh > > | reconstructFromCoeff (PtrList< GeometricField< scalar, fvPatchField, volMesh > > &modes, Eigen::MatrixXd &coeff_matrix, label Nmodes) |
| template PtrList< GeometricField< vector, fvPatchField, volMesh > > | reconstructFromCoeff (PtrList< GeometricField< vector, fvPatchField, volMesh > > &modes, Eigen::MatrixXd &coeff_matrix, label Nmodes) |
| template PtrList< GeometricField< tensor, fvPatchField, volMesh > > | reconstructFromCoeff (PtrList< GeometricField< tensor, fvPatchField, volMesh > > &modes, Eigen::MatrixXd &coeff_matrix, label Nmodes) |
| template<class Type, template< class > class PatchField, class GeoMesh> | |
| Eigen::MatrixXd | getMassMatrix (PtrList< GeometricField< Type, PatchField, GeoMesh > > &fields, label nModes=0, bool consider_volumes=true) |
| Gets the mass matrix using the eigen routine. | |
| template Eigen::MatrixXd | getMassMatrix (PtrList< GeometricField< scalar, fvPatchField, volMesh > > &modes, label Nmodes, bool consider_volumes) |
| template Eigen::MatrixXd | getMassMatrix (PtrList< GeometricField< scalar, fvsPatchField, surfaceMesh > > &modes, label Nmodes, bool consider_volumes=false) |
| template Eigen::MatrixXd | getMassMatrix (PtrList< GeometricField< vector, fvPatchField, volMesh > > &modes, label Nmodes, bool consider_volumes) |
| template Eigen::MatrixXd | getMassMatrix (PtrList< GeometricField< tensor, fvPatchField, volMesh > > &modes, label Nmodes, bool consider_volumes) |
| template<class Type, template< class > class PatchField, class GeoMesh> | |
| Eigen::MatrixXd | getMassMatrix (PtrList< GeometricField< Type, PatchField, GeoMesh > > &fields, PtrList< GeometricField< Type, PatchField, GeoMesh > > &fields2, label nModes=0, bool consider_volumes=true) |
| Gets the cross mass matrix using the eigen routine. | |
| template Eigen::MatrixXd | getMassMatrix (PtrList< GeometricField< scalar, fvPatchField, volMesh > > &modes, PtrList< GeometricField< scalar, fvPatchField, volMesh > > &modes2, label Nmodes, bool consider_volumes) |
| template Eigen::MatrixXd | getMassMatrix (PtrList< GeometricField< scalar, fvsPatchField, surfaceMesh > > &modes, PtrList< GeometricField< scalar, fvsPatchField, surfaceMesh > > &modes2, label Nmodes, bool consider_volumes=false) |
| template Eigen::MatrixXd | getMassMatrix (PtrList< GeometricField< vector, fvPatchField, volMesh > > &modes, PtrList< GeometricField< vector, fvPatchField, volMesh > > &modes2, label Nmodes, bool consider_volumes) |
| template Eigen::MatrixXd | getMassMatrix (PtrList< GeometricField< tensor, fvPatchField, volMesh > > &modes, PtrList< GeometricField< tensor, fvPatchField, volMesh > > &modes2, label Nmodes, bool consider_volumes) |
| template<class Type, template< class > class PatchField, class GeoMesh> | |
| Eigen::MatrixXd | getMassMatrix (PtrList< GeometricField< Type, PatchField, GeoMesh > > &fields, PtrList< GeometricField< Type, PatchField, GeoMesh > > &fields2, Eigen::VectorXd weights, label Nmodes=0, bool consider_volumes=true) |
| Gets the cross mass matrix using the eigen routine. | |
| template Eigen::MatrixXd | getMassMatrix (PtrList< GeometricField< scalar, fvPatchField, volMesh > > &modes, PtrList< GeometricField< scalar, fvPatchField, volMesh > > &modes2, Eigen::VectorXd weights, label Nmodes=0, bool consider_volumes) |
| template Eigen::MatrixXd | getMassMatrix (PtrList< GeometricField< scalar, fvsPatchField, surfaceMesh > > &modes, PtrList< GeometricField< scalar, fvsPatchField, surfaceMesh > > &modes2, Eigen::VectorXd weights, label Nmodes=0, bool consider_volumes) |
| template Eigen::MatrixXd | getMassMatrix (PtrList< GeometricField< vector, fvPatchField, volMesh > > &modes, PtrList< GeometricField< vector, fvPatchField, volMesh > > &modes2, Eigen::VectorXd weights, label Nmodes=0, bool consider_volumes) |
| template Eigen::MatrixXd | getMassMatrix (PtrList< GeometricField< tensor, fvPatchField, volMesh > > &modes, PtrList< GeometricField< tensor, fvPatchField, volMesh > > &modes2, Eigen::VectorXd weights, label Nmodes=0, bool consider_volumes) |
| template<class Type, template< class > class PatchField, class GeoMesh> | |
| Eigen::VectorXd | getMassMatrixFV (GeometricField< Type, PatchField, GeoMesh > &snapshot) |
| Gets a vector containing the volumes of each cell of the mesh. | |
| template Eigen::VectorXd | getMassMatrixFV (GeometricField< scalar, fvPatchField, volMesh > &snapshot) |
| template Eigen::VectorXd | getMassMatrixFV (GeometricField< vector, fvPatchField, volMesh > &snapshot) |
| template Eigen::VectorXd | getMassMatrixFV (GeometricField< tensor, fvPatchField, volMesh > &snapshot) |
| template<class Type, template< class > class PatchField, class GeoMesh> | |
| Eigen::VectorXd | getCoeffs (GeometricField< Type, PatchField, GeoMesh > &snapshot, PtrList< GeometricField< Type, PatchField, GeoMesh > > &modes, label Nmodes=0, bool consider_volumes=true) |
| Projects a snapshot on a basis function and gets the coefficients of the projection. | |
| template Eigen::VectorXd | getCoeffs (GeometricField< scalar, fvPatchField, volMesh > &snapshot, PtrList< GeometricField< scalar, fvPatchField, volMesh > > &modes, label Nmodes, bool consider_volumes) |
| template Eigen::VectorXd | getCoeffs (GeometricField< scalar, fvsPatchField, surfaceMesh > &snapshot, PtrList< GeometricField< scalar, fvsPatchField, surfaceMesh > > &modes, label Nmodes, bool consider_volumes=false) |
| template Eigen::VectorXd | getCoeffs (GeometricField< vector, fvPatchField, volMesh > &snapshot, PtrList< GeometricField< vector, fvPatchField, volMesh > > &modes, label Nmodes, bool consider_volumes) |
| template<class Type, template< class > class PatchField, class GeoMesh> | |
| Eigen::MatrixXd | getCoeffs (PtrList< GeometricField< Type, PatchField, GeoMesh > > &snapshot, PtrList< GeometricField< Type, PatchField, GeoMesh > > &modes, label Nmodes=0, bool consider_volumes=true) |
| Projects snapshots on a basis function and gets the coefficients of the projection. | |
| template Eigen::MatrixXd | getCoeffs (PtrList< GeometricField< scalar, fvPatchField, volMesh > > &snapshot, PtrList< GeometricField< scalar, fvPatchField, volMesh > > &modes, label Nmodes, bool consider_volumes) |
| template Eigen::MatrixXd | getCoeffs (PtrList< GeometricField< vector, fvPatchField, volMesh > > &snapshot, PtrList< GeometricField< vector, fvPatchField, volMesh > > &modes, label Nmodes, bool consider_volumes) |
| template Eigen::MatrixXd | getCoeffs (PtrList< GeometricField< scalar, fvsPatchField, surfaceMesh > > &snapshot, PtrList< GeometricField< scalar, fvsPatchField, surfaceMesh > > &modes, label Nmodes, bool consider_volumes) |
| Eigen::MatrixXd | parTimeCombMat (List< Eigen::VectorXd > acquiredSnapshotsTimes, Eigen::MatrixXd parameters) |
| A method to compute the time-parameter combined matrix whose any single element corresponds to a unique snapshot in the snapshots acquired for the offline stage. | |
| template<> | |
| double | L2Norm (GeometricField< scalar, fvPatchField, volMesh > &field) |
| template<> | |
| double | L2Norm (GeometricField< vector, fvPatchField, volMesh > &field) |
| template<> | |
| double | LinfNorm (GeometricField< scalar, fvPatchField, volMesh > &field) |
| template<> | |
| double | LinfNorm (GeometricField< vector, fvPatchField, volMesh > &field) |
| template<class Type, template< class > class PatchField, class GeoMesh> | |
| double | errorFrobRel (GeometricField< Type, PatchField, GeoMesh > &field1, GeometricField< Type, PatchField, GeoMesh > &field2, List< label > *labels=NULL) |
| Computes the relative error between two Fields in the Frobenius norm. | |
| template double | errorFrobRel (GeometricField< scalar, fvPatchField, volMesh > &field1, GeometricField< scalar, fvPatchField, volMesh > &field2, List< label > *labels) |
| template double | errorFrobRel (GeometricField< vector, fvPatchField, volMesh > &field1, GeometricField< vector, fvPatchField, volMesh > &field2, List< label > *labels) |
| template double | errorFrobRel (GeometricField< scalar, fvsPatchField, surfaceMesh > &field1, GeometricField< scalar, fvsPatchField, surfaceMesh > &field2, List< label > *labels) |
| template<typename T> | |
| double | errorLinfRel (GeometricField< T, fvPatchField, volMesh > &field1, GeometricField< T, fvPatchField, volMesh > &field2, List< label > *labels=NULL) |
| Computes the relative error between two geometric Fields in Linf norm. | |
| template double | errorLinfRel (GeometricField< scalar, fvPatchField, volMesh > &field1, GeometricField< scalar, fvPatchField, volMesh > &field2, List< label > *labels) |
| template double | errorLinfRel (GeometricField< vector, fvPatchField, volMesh > &field1, GeometricField< vector, fvPatchField, volMesh > &field2, List< label > *labels) |
| template<> | |
| double | errorL2Abs (GeometricField< vector, fvPatchField, volMesh > &field1, GeometricField< vector, fvPatchField, volMesh > &field2, volScalarField &Volumes) |
| template<> | |
| double | errorL2Abs (GeometricField< scalar, fvPatchField, volMesh > &field1, GeometricField< scalar, fvPatchField, volMesh > &field2, volScalarField &Volumes) |
| template<typename T> | |
| double | errorL2Abs (GeometricField< T, fvPatchField, volMesh > &field1, GeometricField< T, fvPatchField, volMesh > &field2, List< label > *labels=NULL) |
| Computes the absolute error between two Fields in L2 norm. | |
| template double | errorL2Abs (GeometricField< scalar, fvPatchField, volMesh > &field1, GeometricField< scalar, fvPatchField, volMesh > &field2, List< label > *labels) |
| template double | errorL2Abs (GeometricField< vector, fvPatchField, volMesh > &field1, GeometricField< vector, fvPatchField, volMesh > &field2, List< label > *labels) |
| template<class T, template< class > class PatchField, class GeoMesh> | |
| Eigen::MatrixXd | errorFrobRel (PtrList< GeometricField< T, PatchField, GeoMesh > > &fields1, PtrList< GeometricField< T, PatchField, GeoMesh > > &fields2, List< label > *labels=NULL) |
| Computes the relative error in the Frobenius norm between two lists of fields. | |
| template Eigen::MatrixXd | errorFrobRel (PtrList< GeometricField< scalar, fvPatchField, volMesh > > &fields1, PtrList< GeometricField< scalar, fvPatchField, volMesh > > &fields2, List< label > *labels) |
| template Eigen::MatrixXd | errorFrobRel (PtrList< GeometricField< vector, fvPatchField, volMesh > > &fields1, PtrList< GeometricField< vector, fvPatchField, volMesh > > &fields2, List< label > *labels) |
| template Eigen::MatrixXd | errorFrobRel (PtrList< GeometricField< scalar, fvsPatchField, surfaceMesh > > &fields1, PtrList< GeometricField< scalar, fvsPatchField, surfaceMesh > > &fields2, List< label > *labels) |
| template<typename T> | |
| Eigen::MatrixXd | errorL2Abs (PtrList< GeometricField< T, fvPatchField, volMesh > > &fields1, PtrList< GeometricField< T, fvPatchField, volMesh > > &fields2, PtrList< volScalarField > &Volumes) |
| Computes the relative error in L2 norm between two lists of Fields given the list of mesh volumes fields. | |
| template Eigen::MatrixXd | errorL2Abs (PtrList< GeometricField< scalar, fvPatchField, volMesh > > &fields1, PtrList< GeometricField< scalar, fvPatchField, volMesh > > &fields2, PtrList< volScalarField > &Volumes) |
| template Eigen::MatrixXd | errorL2Abs (PtrList< GeometricField< vector, fvPatchField, volMesh > > &fields1, PtrList< GeometricField< vector, fvPatchField, volMesh > > &fields2, PtrList< volScalarField > &Volumes) |
| template<typename T> | |
| Eigen::MatrixXd | errorL2Abs (PtrList< GeometricField< T, fvPatchField, volMesh > > &fields1, PtrList< GeometricField< T, fvPatchField, volMesh > > &fields2, List< label > *labels=NULL) |
| Computes the absolute error in L2 norm between two lists of Fields. | |
| template Eigen::MatrixXd | errorL2Abs (PtrList< GeometricField< scalar, fvPatchField, volMesh > > &fields1, PtrList< GeometricField< scalar, fvPatchField, volMesh > > &fields2, List< label > *labels) |
| template Eigen::MatrixXd | errorL2Abs (PtrList< GeometricField< vector, fvPatchField, volMesh > > &fields1, PtrList< GeometricField< vector, fvPatchField, volMesh > > &fields2, List< label > *labels) |
| template<typename T> | |
| double | errorL2Rel (GeometricField< T, fvPatchField, volMesh > &field1, GeometricField< T, fvPatchField, volMesh > &field2, List< label > *labels=NULL) |
| Computes the relative error between two geometric Fields in L2 norm. | |
| template double | errorL2Rel (GeometricField< scalar, fvPatchField, volMesh > &field1, GeometricField< scalar, fvPatchField, volMesh > &field2, List< label > *labels) |
| template double | errorL2Rel (GeometricField< vector, fvPatchField, volMesh > &field1, GeometricField< vector, fvPatchField, volMesh > &field2, List< label > *labels) |
| template<typename T> | |
| Eigen::MatrixXd | errorL2Rel (PtrList< GeometricField< T, fvPatchField, volMesh > > &fields1, PtrList< GeometricField< T, fvPatchField, volMesh > > &fields2, List< label > *labels=NULL) |
| Computes the relative error in L2 norm between two lists of fields. | |
| template Eigen::MatrixXd | errorL2Rel (PtrList< GeometricField< scalar, fvPatchField, volMesh > > &fields1, PtrList< GeometricField< scalar, fvPatchField, volMesh > > &fields2, List< label > *labels) |
| template Eigen::MatrixXd | errorL2Rel (PtrList< GeometricField< vector, fvPatchField, volMesh > > &fields1, PtrList< GeometricField< vector, fvPatchField, volMesh > > &fields2, List< label > *labels) |
| template<> | |
| double | H1Seminorm (GeometricField< scalar, fvPatchField, volMesh > &field) |
| template<> | |
| double | H1Seminorm (GeometricField< vector, fvPatchField, volMesh > &field) |
| template<class Type, template< class > class PatchField, class GeoMesh> | |
| double | frobNorm (GeometricField< Type, PatchField, GeoMesh > &field) |
| Evaluate the Frobenius norm of a field. | |
| template double | frobNorm (GeometricField< scalar, fvPatchField, volMesh > &field) |
| template double | frobNorm (GeometricField< vector, fvPatchField, volMesh > &field) |
| double | L2normOnPatch (fvMesh &mesh, volScalarField &field, word patch) |
| Evaluate the L2 norm of a field on a boundary patch. | |
| double | L2productOnPatch (fvMesh &mesh, List< scalar > &field1, List< scalar > &field2, word patch) |
| Evaluate the L2 inner product between two scalarLists. | |
| double | LinfNormOnPatch (fvMesh &mesh, volScalarField &field, word patch) |
| Evaluate the Linf norm of a field on a boundary patch. | |
| double | integralOnPatch (fvMesh &mesh, volScalarField &field, word patch) |
| Evaluate the integral on a patch. | |
| double | integralOnPatch (fvMesh &mesh, List< scalar > field, word patch) |
| Evaluate the integral on a patch. | |
| template<typename T> | |
| double | errorL2Abs (GeometricField< T, fvPatchField, volMesh > &field1, GeometricField< T, fvPatchField, volMesh > &field2, volScalarField &Volumes) |
| Computes the absolute error between two geometric Fields in L2 norm, given the mesh volumes field. | |
| template<class T> | |
| double | L2Norm (GeometricField< T, fvPatchField, volMesh > &field) |
| Evaluate the L2 norm of a geometric field. | |
| template<class T> | |
| double | LinfNorm (GeometricField< T, fvPatchField, volMesh > &field) |
| Evaluate the Linf norm of a geometric field. | |
| template<class T> | |
| double | H1Seminorm (GeometricField< T, fvPatchField, volMesh > &field) |
| Evaluate the H1 seminorm of a geoemtri. | |
| labelList | getIndicesFromBox (const fvMesh &mesh, List< label > indices, Eigen::MatrixXd Box, List< vector > &points2Move) |
| Gives the indices conteined into a defined box. | |
| List< label > | getIndices (const fvMesh &mesh, int index, int layers) |
| Gets the indices of the cells around a certain cell. | |
| List< label > | getIndices (const fvMesh &mesh, int index_row, int index_col, int layers) |
| Gets the indices of the cells around a certain cell. | |
| void | getPointsFromPatch (fvMesh &mesh, label ind, List< vector > &points, labelList &indices) |
| Get the polabel coordinates and indices from patch. | |
| List< vector > | displacedSegment (List< vector > x0, double mux1, double mux2, double muy1, double muy2) |
| Get position of displaced segment of points given the displacements of the end points. | |
| vector | displacePolabel (vector x0, vector x_low, vector x_up, double mux_low, double mux_up, double muy_low, double muy_up, double muz_low=0.0, double muz_up=0.0) |
| Displace a Polabel belonging to a given segment. | |
| Field< vector > | rotateMesh (fvMesh &mesh, double r1, double r2, vector axis, double alpha, labelList movingPointsIDs, List< double > radii, word angleVariationMethod="Linear", double v=3) |
| A function that rotates the mesh rigidly, by a fixed specified angle for the points lying within a disc of radius r1, and by a an angle which diminishes from the former angle to zero either linearly or following a Sinusoidal relation or Sigmoid function in a disc of radius r2 larger than r1. | |
| Eigen::MatrixXd | rotationMatrix (vector AxisOfRotation, double AngleOfRotation) |
| Functions that return a Rotation Matrix given an axis of rotation and an angle in degrees. | |
| Eigen::VectorXd | boudaryFaceToCellDistance (fvMesh &mesh, label BC_ind) |
| Compute the distance between the boundary face center and the boundary cell center. | |
| List< label > | getIndicesFromDisc (const fvMesh &mesh, double radius, vector origin, vector axis, List< double > &radii) |
| Gets the indices of the points which are inside a disc of a specified radius before carrying out a rotation around an axis. | |
| template<typename type_f> | |
| List< label > | getIndicesFromBox (GeometricField< type_f, fvPatchField, volMesh > &field, Eigen::MatrixXd Box) |
| Gets the indices from coordinates of a given box. | |
| template List< label > | getIndicesFromBox (GeometricField< scalar, fvPatchField, volMesh > &field, Eigen::MatrixXd Box) |
| template List< label > | getIndicesFromBox (GeometricField< vector, fvPatchField, volMesh > &field, Eigen::MatrixXd Box) |
| template<typename type_f> | |
| fvMeshSubset * | getSubMeshFromBox (GeometricField< type_f, fvPatchField, volMesh > &field, Eigen::MatrixXd Box) |
| Gets a subMesh from a box of coordinates and a given field (used only for the mesh). | |
| template fvMeshSubset * | getSubMeshFromBox (GeometricField< scalar, fvPatchField, volMesh > &field, Eigen::MatrixXd Box) |
| template fvMeshSubset * | getSubMeshFromBox (GeometricField< vector, fvPatchField, volMesh > &field, Eigen::MatrixXd Box) |
| volScalarField | meshNonOrtho (fvMesh &mesh, volScalarField &NonOrtho) |
| Returns a scalarField that containes the non-orthogonality value of a given mesh. | |
| List< vector > | rotatePoints (const List< vector > &originalPoints, vector AxisOfRotation, double AngleOfRotation) |
| Rotate a list of points in clockwise direction given an axis of rotation and an angle in degrees. | |
| void | createSymLink (word folder) |
| Creates symbolic links to 0, system and constant. | |
| void | createSymLink (word linkFolder, word destFolder) |
| Creates a symbolic link to linkFolder into the destFolder. | |
| bool | check_folder (word folder) |
| Checks if a folder exists. | |
| bool | check_off () |
| Check if the offline data folder "./ITHACAoutput/Offline" exists. | |
| bool | check_file (std::string fileName) |
| Function that returns true if a file exists. | |
| bool | check_pod () |
| Check if the POD data folder "./ITHACAoutput/POD" exists. | |
| bool | check_sup () |
| Check if the supremizer folder exists. | |
| Eigen::MatrixXd | rand (label rows, label cols, double min, double max) |
| Generates random matrix with random values in an interval. | |
| Eigen::MatrixXd | rand (label rows, Eigen::MatrixXd minMax) |
| Generates random matrix with random values in an interval. | |
| bool | isInteger (double ratio) |
| This function checks if ratio is an integer. | |
| bool | isTurbulent () |
| This function checks if the case is turbulent. | |
| template<typename T> | |
| List< T > | combineList (List< List< T > > &doubleList) |
| Combine a list of list into a single list with unique elements. | |
| template List< label > | combineList (List< List< label > > &doubleList) |
| Eigen::MatrixXd | pinv_eigen_based (Eigen::MatrixXd &origin, const float er=0) |
| Using the Eigen library, using the SVD decomposition method to solve the matrix pseudo-inverse, the default error er is 0. | |
| Eigen::MatrixXd | invertMatrix (Eigen::MatrixXd &matrixToInvert, const word inversionMethod) |
| Invert a matrix given the method name in the ITHACAdict. | |
Namespace to implement some useful assign operation of OF fields.
Namespace to implement some useful functions inside ITHACA-FV.
Namespace to implement some useful system calls inside ITHACA-FV.
Namespace to implement projection coefficients calculation and mass matrices.
| void ITHACAutilities::assignBC | ( | GeometricField< scalar, fvPatchField, volMesh > & | s, |
| label | BC_ind, | ||
| double | value ) |
Assign uniform Boundary Condition to a volScalarField.
| [in] | s | field where you want to assign the BC. |
| [in] | BC_ind | The BC index. |
| [in] | value | The value you want to assign (it must be a double). |
Definition at line 143 of file ITHACAassign.C.
| void ITHACAutilities::assignBC | ( | GeometricField< scalar, fvPatchField, volMesh > & | s, |
| label | BC_ind, | ||
| Eigen::MatrixXd | valueVec ) |
Assign Boundary Condition to a volScalarField.
| [in] | s | field where you want to assign the BC. |
| [in] | BC_ind | The BC index. |
| [in] | valueVec | The value you want to assign (it must be an Eigen MatrixXd). |
Definition at line 157 of file ITHACAassign.C.
| void ITHACAutilities::assignBC | ( | GeometricField< scalar, fvPatchField, volMesh > & | s, |
| label | BC_ind, | ||
| List< double > | valueList ) |
Assign Boundary Condition to a volScalarField.
| [in] | s | field where you want to assign the BC. |
| [in] | BC_ind | The BC index. |
| [in] | valueList | The value you want to assign (it must be a list of doubles). |
Definition at line 174 of file ITHACAassign.C.
| void ITHACAutilities::assignBC | ( | GeometricField< scalar, fvsPatchField, surfaceMesh > & | field, |
| label | BC_ind, | ||
| Eigen::MatrixXd | value ) |
Assign Boundary Condition to a surfaceField.
| field | field where you want to assign the BC. | |
| [in] | BC_ind | The bc ind |
| value | you want to assign (it must be column matrix). |
| Type | Type of field (vector or scalar) |
Definition at line 315 of file ITHACAassign.C.
| template void ITHACAutilities::assignBC | ( | GeometricField< scalar, fvsPatchField, surfaceMesh > & | s, |
| label | BC_ind, | ||
| List< scalar > & | valueList ) |
| template void ITHACAutilities::assignBC | ( | GeometricField< scalar, fvsPatchField, surfaceMesh > & | s, |
| label | BC_ind, | ||
| scalar & | valueList ) |
| void ITHACAutilities::assignBC | ( | GeometricField< tensor, fvPatchField, volMesh > & | s, |
| label | BC_ind, | ||
| Eigen::MatrixXd | valueVec ) |
Assign Boundary Condition to a volTensorField.
| [in] | s | field where you want to assign the BC. |
| [in] | BC_ind | The BC index. |
| [in] | valueVec | The value you want to assign (it must be an Eigen MatrixXd). |
Definition at line 296 of file ITHACAassign.C.
| void ITHACAutilities::assignBC | ( | GeometricField< tensor, fvPatchField, volMesh > & | s, |
| label | BC_ind, | ||
| List< tensor > | valueList ) |
Assign Boundary Condition to a volTensorField.
| [in] | s | field where you want to assign the BC. |
| [in] | BC_ind | The BC index. |
| [in] | valueList | The value you want to assign (it must be a list of tensors). |
Definition at line 414 of file ITHACAassign.C.
| void ITHACAutilities::assignBC | ( | GeometricField< tensor, fvPatchField, volMesh > & | s, |
| label | BC_ind, | ||
| tensor | value ) |
Assign Boundary Condition to a volTensorField.
| [in] | s | field where you want to assign the BC. |
| [in] | BC_ind | The BC index. |
| [in] | value | The value you want to assign (it must be an OpenFOAM tensor). |
Definition at line 261 of file ITHACAassign.C.
| void ITHACAutilities::assignBC | ( | GeometricField< Type, fvsPatchField, surfaceMesh > & | field, |
| label | BC_ind, | ||
| List< Type > & | value ) |
Assign Boundary Condition to a surfaceField.
| field | field where you want to assign the BC. | |
| [in] | BC_ind | The bc ind |
| value | you want to assign (it must be a list of double or vector). |
| Type | Type of field (vector or scalar) |
Definition at line 478 of file ITHACAassign.C.
| void ITHACAutilities::assignBC | ( | GeometricField< Type, fvsPatchField, surfaceMesh > & | field, |
| label | BC_ind, | ||
| Type & | value ) |
Assign Boundary Condition to a surfaceField.
| field | field where you want to assign the BC. | |
| [in] | BC_ind | The bc ind |
| value | you want to assign (it must be a double or vector). |
| Type | Type of field (vector or scalar) |
Definition at line 552 of file ITHACAassign.C.
| void ITHACAutilities::assignBC | ( | GeometricField< vector, fvPatchField, volMesh > & | s, |
| label | BC_ind, | ||
| Eigen::MatrixXd | valueVec ) |
Assign Boundary Condition to a volVectorField.
| [in] | s | field where you want to assign the BC. |
| [in] | BC_ind | The BC index. |
| [in] | valueVec | The value you want to assign (it must be an Eigen MatrixXd). |
Definition at line 277 of file ITHACAassign.C.
| void ITHACAutilities::assignBC | ( | GeometricField< vector, fvPatchField, volMesh > & | s, |
| label | BC_ind, | ||
| List< vector > | valueList ) |
Assign Boundary Condition to a volVectorField.
| [in] | s | field where you want to assign the BC. |
| [in] | BC_ind | The BC index. |
| [in] | valueList | The value you want to assign (it must be a list of vectors). |
Definition at line 350 of file ITHACAassign.C.
| void ITHACAutilities::assignBC | ( | GeometricField< vector, fvPatchField, volMesh > & | s, |
| label | BC_ind, | ||
| vector | value ) |
Assign Boundary Condition to a volVectorField.
| [in] | s | field where you want to assign the BC. |
| [in] | BC_ind | The BC index. |
| [in] | value | The value you want to assign (it must be an OpenFOAM vector). |
Definition at line 245 of file ITHACAassign.C.
| void ITHACAutilities::assignBC | ( | GeometricField< vector, fvsPatchField, surfaceMesh > & | s, |
| label | BC_ind, | ||
| Eigen::MatrixXd | valueVec ) |
Definition at line 331 of file ITHACAassign.C.
| template void ITHACAutilities::assignBC | ( | GeometricField< vector, fvsPatchField, surfaceMesh > & | s, |
| label | BC_ind, | ||
| List< vector > & | valueList ) |
| template void ITHACAutilities::assignBC | ( | GeometricField< vector, fvsPatchField, surfaceMesh > & | s, |
| label | BC_ind, | ||
| vector & | valueList ) |
| template void ITHACAutilities::assignIF | ( | GeometricField< scalar, fvPatchField, volMesh > & | field, |
| scalar & | value, | ||
| label | index ) |
| template void ITHACAutilities::assignIF | ( | GeometricField< scalar, fvPatchField, volMesh > & | field, |
| scalar | value ) |
| template void ITHACAutilities::assignIF | ( | GeometricField< scalar, fvPatchField, volMesh > & | s, |
| scalar & | value, | ||
| List< label > & | indices ) |
| void ITHACAutilities::assignIF | ( | GeometricField< Type, fvPatchField, volMesh > & | field, |
| Type & | value, | ||
| label | index ) |
Assign internal field.
| [in,out] | field | Field to which assign the internal field |
| value | The value you want to assign | |
| index | The index where you want assign |
| Type | Type of field vector or scalar |
Definition at line 124 of file ITHACAassign.C.
| void ITHACAutilities::assignIF | ( | GeometricField< Type, fvPatchField, volMesh > & | field, |
| Type & | value, | ||
| List< label > & | indices ) |
Assign internal field.
| [in,out] | field | Field to which assign the internal field |
| value | The value you want to assign | |
| indices | The list of indices where you want assign |
| Type | Type of field vector or scalar |
Definition at line 109 of file ITHACAassign.C.
| void ITHACAutilities::assignIF | ( | GeometricField< Type, fvPatchField, volMesh > & | field, |
| Type | value ) |
Assign internal field.
| [in,out] | field | Field to which assign the internal field |
| value | The value you want to assign |
| Type | Type of field vector or scalar |
Definition at line 94 of file ITHACAassign.C.
| template void ITHACAutilities::assignIF | ( | GeometricField< vector, fvPatchField, volMesh > & | field, |
| vector & | value, | ||
| label | index ) |
| template void ITHACAutilities::assignIF | ( | GeometricField< vector, fvPatchField, volMesh > & | field, |
| vector | value ) |
| template void ITHACAutilities::assignIF | ( | GeometricField< vector, fvPatchField, volMesh > & | s, |
| vector & | value, | ||
| List< label > & | indices ) |
| void ITHACAutilities::assignMixedBC | ( | GeometricField< Type, fvPatchField, volMesh > & | field, |
| label | BC_ind, | ||
| Eigen::MatrixXd & | value, | ||
| Eigen::MatrixXd & | grad, | ||
| Eigen::MatrixXd & | valueFrac ) |
Assign value of a boundary condition of type "mixed".
| [in,out] | field | Field |
| [in] | BC_ind | Index of the boundary patch |
| [in] | value | Reference fixed value |
| [in] | grad | Reference normal gradient |
| [in] | valueFrac | Weight field |
| Type | Type of the field, it can be scalar or vector. |
| void ITHACAutilities::assignMixedBC | ( | GeometricField< Type, fvPatchField, volMesh > & | field, |
| label | BC_ind, | ||
| List< Type > & | value, | ||
| List< Type > & | grad, | ||
| List< scalar > & | valueFrac ) |
Assign value of a boundary condition of type "mixed".
| [in,out] | field | Field |
| [in] | BC_ind | Index of the boundary patch |
| [in] | value | Reference fixed value |
| [in] | grad | Reference normal gradient |
| [in] | valueFrac | Weight field |
| Type | Type of the field, it can be scalar or vector. |
Definition at line 714 of file ITHACAassign.C.
| template void ITHACAutilities::assignMixedBC< scalar > | ( | GeometricField< scalar, fvPatchField, volMesh > & | field, |
| label | BC_ind, | ||
| List< scalar > & | value, | ||
| List< scalar > & | grad, | ||
| List< scalar > & | valueFrac ) |
| template void ITHACAutilities::assignMixedBC< vector > | ( | GeometricField< vector, fvPatchField, volMesh > & | field, |
| label | BC_ind, | ||
| List< vector > & | value, | ||
| List< vector > & | grad, | ||
| List< scalar > & | valueFrac ) |
| void ITHACAutilities::assignONE | ( | volScalarField & | s, |
| List< label > & | L ) |
Assign one to volScalarField.
| [in,out] | s | field where you want to assign the internal field condition |
| L | List of indices |
Definition at line 135 of file ITHACAassign.C.
| template void ITHACAutilities::assignZeroDirichlet | ( | GeometricField< scalar, fvPatchField, volMesh > & | field | ) |
| void ITHACAutilities::assignZeroDirichlet | ( | GeometricField< Type, fvPatchField, volMesh > & | field | ) |
Assign zero internal field.
Change all non-zero Dirichlet boundary condition values to zero. Change all Neumann boundary conditions to Dirichlet boundary conditions.
| [in,out] | field | Field of which the BCs need to be changed |
| Type | Type of field (vector or scalar) |
Definition at line 596 of file ITHACAassign.C.
| template void ITHACAutilities::assignZeroDirichlet | ( | GeometricField< vector, fvPatchField, volMesh > & | field | ) |
| 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.
| [in] | fields | The fields from which the time-averaged fields have to be computed |
| [in] | ind | The indices at which fields for different samples of the parameter start |
| ave | The computed time-averaged fields |
| TypeField | Type of field |
Definition at line 31 of file ITHACAassign.C.
| 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 ) |
| Eigen::VectorXd ITHACAutilities::boudaryFaceToCellDistance | ( | fvMesh & | mesh, |
| label | BC_ind ) |
Compute the distance between the boundary face center and the boundary cell center.
| [in] | BC_ind | Index of the boundary patch |
| [in] | mesh | Mesh |
Definition at line 297 of file ITHACAgeometry.C.
| void ITHACAutilities::changeBCtype | ( | GeometricField< Type, fvPatchField, volMesh > & | field, |
| word | BCtype, | ||
| label | BC_ind ) |
Change the boundary condition type for a GeometricField.
| field | The field | |
| [in] | BCtype | The The BC type you want to set |
| [in] | BC_ind | The BC index |
| Type | The type of field it can be scalar or vector |
Definition at line 698 of file ITHACAassign.C.
| template void ITHACAutilities::changeBCtype< scalar > | ( | GeometricField< scalar, fvPatchField, volMesh > & | field, |
| word | BCtype, | ||
| label | BC_ind ) |
| template void ITHACAutilities::changeBCtype< vector > | ( | GeometricField< vector, fvPatchField, volMesh > & | field, |
| word | BCtype, | ||
| label | BC_ind ) |
| template void ITHACAutilities::changeNeumann2Dirichlet | ( | GeometricField< scalar, fvPatchField, volMesh > & | field, |
| scalar & | value ) |
| void ITHACAutilities::changeNeumann2Dirichlet | ( | GeometricField< Type, fvPatchField, volMesh > & | field, |
| Type & | value ) |
Change all Neumann boundary conditions to Dirichlet boundary conditions.
| [in,out] | field | Field of which the BCs need to be changed |
| value | The value you want to assign |
| Type | Type of field vector or scalar |
Definition at line 575 of file ITHACAassign.C.
| template void ITHACAutilities::changeNeumann2Dirichlet | ( | GeometricField< vector, fvPatchField, volMesh > & | field, |
| vector & | value ) |
| bool ITHACAutilities::check_file | ( | std::string | fileName | ) |
Function that returns true if a file exists.
| [in] | fileName | The name of the file |
Definition at line 136 of file ITHACAsystem.C.
| bool ITHACAutilities::check_folder | ( | word | folder | ) |
Checks if a folder exists.
| [in] | folder | The folder you want to check. |
Definition at line 89 of file ITHACAsystem.C.
| bool ITHACAutilities::check_off | ( | ) |
Check if the offline data folder "./ITHACAoutput/Offline" exists.
Definition at line 107 of file ITHACAsystem.C.
| bool ITHACAutilities::check_pod | ( | ) |
Check if the POD data folder "./ITHACAoutput/POD" exists.
Definition at line 143 of file ITHACAsystem.C.
| bool ITHACAutilities::check_sup | ( | ) |
Check if the supremizer folder exists.
Definition at line 173 of file ITHACAsystem.C.
| template List< label > ITHACAutilities::combineList | ( | List< List< label > > & | doubleList | ) |
Combine a list of list into a single list with unique elements.
| doubleList | The list of list |
| T | type of element label, double, etc... |
Definition at line 111 of file ITHACAutilities.C.
| TypeField ITHACAutilities::computeAverage | ( | PtrList< TypeField > & | fields | ) |
Calculates the average of a list of fields.
| fields | The fields |
| TypeField | { description } |
Definition at line 74 of file ITHACAassign.C.
| template volScalarField ITHACAutilities::computeAverage | ( | PtrList< volScalarField > & | fields | ) |
| template volVectorField ITHACAutilities::computeAverage | ( | PtrList< volVectorField > & | fields | ) |
| void ITHACAutilities::createSymLink | ( | word | folder | ) |
Creates symbolic links to 0, system and constant.
| [in] | folder | The folder where to create the symbolic links |
Definition at line 30 of file ITHACAsystem.C.
| void ITHACAutilities::createSymLink | ( | word | linkFolder, |
| word | destFolder ) |
Creates a symbolic link to linkFolder into the destFolder.
| [in] | linkFolder | The folder to be linked |
| [in] | destFolder | The folder where to create the symbolic link |
Definition at line 78 of file ITHACAsystem.C.
| List< vector > ITHACAutilities::displacedSegment | ( | List< vector > | x0, |
| double | mux1, | ||
| double | mux2, | ||
| double | muy1, | ||
| double | muy2 ) |
Get position of displaced segment of points given the displacements of the end points.
| [in] | x0 | The points of the segment before displacement |
| [in] | mux1 | The x displacement of the 1st end of the segment |
| [in] | mux2 | The x displacement of the 2nd end of the segment |
| [in] | muy1 | The y displacement of the 1st end of the segment |
| [in] | muy2 | The y displacement of the 2nd end of the segment |
Definition at line 134 of file ITHACAgeometry.C.
| vector ITHACAutilities::displacePolabel | ( | vector | x0, |
| vector | x_low, | ||
| vector | x_up, | ||
| double | mux_low, | ||
| double | mux_up, | ||
| double | muy_low, | ||
| double | muy_up, | ||
| double | muz_low = 0.0, | ||
| double | muz_up = 0.0 ) |
Displace a Polabel belonging to a given segment.
| [in] | x0 | The initial coordinate of the polabel |
| [in] | x_low | The position of the lower end of the segment |
| [in] | x_up | The posizion of the upper end of the segment |
| [in] | mux_low | The x displacement of the lower end of the segment |
| [in] | mux_up | The x displacement of the upper end of the segment |
| [in] | muy_low | The y displacement of the lower end of the segment |
| [in] | muy_up | The y displacement of the upper end of the segment |
| [in] | muz_low | The z displacement of the lower end of the segment |
| [in] | muz_up | The z displacement of the upper end of the segment |
Definition at line 161 of file ITHACAgeometry.C.
| template double ITHACAutilities::errorFrobRel | ( | GeometricField< scalar, fvPatchField, volMesh > & | field1, |
| GeometricField< scalar, fvPatchField, volMesh > & | field2, | ||
| List< label > * | labels ) |
| template double ITHACAutilities::errorFrobRel | ( | GeometricField< scalar, fvsPatchField, surfaceMesh > & | field1, |
| GeometricField< scalar, fvsPatchField, surfaceMesh > & | field2, | ||
| List< label > * | labels ) |
| double ITHACAutilities::errorFrobRel | ( | GeometricField< Type, PatchField, GeoMesh > & | field1, |
| GeometricField< Type, PatchField, GeoMesh > & | field2, | ||
| List< label > * | labels = NULL ) |
Computes the relative error between two Fields in the Frobenius norm.
| field1 | The reference field to which the norm is computed |
| field2 | The field for which the error is computed |
| labels | (optional) a list of labels with the indices were you want to compute the error |
| Type | Type of field, can be scalar or vector |
| PatchField | Type of PatchField, surface or volumetric |
| GeoMesh | Type of Mesh, surface or volumetric |
Definition at line 78 of file ITHACAerror.C.
| template double ITHACAutilities::errorFrobRel | ( | GeometricField< vector, fvPatchField, volMesh > & | field1, |
| GeometricField< vector, fvPatchField, volMesh > & | field2, | ||
| List< label > * | labels ) |
| template Eigen::MatrixXd ITHACAutilities::errorFrobRel | ( | PtrList< GeometricField< scalar, fvPatchField, volMesh > > & | fields1, |
| PtrList< GeometricField< scalar, fvPatchField, volMesh > > & | fields2, | ||
| List< label > * | labels ) |
| template Eigen::MatrixXd ITHACAutilities::errorFrobRel | ( | PtrList< GeometricField< scalar, fvsPatchField, surfaceMesh > > & | fields1, |
| PtrList< GeometricField< scalar, fvsPatchField, surfaceMesh > > & | fields2, | ||
| List< label > * | labels ) |
| Eigen::MatrixXd ITHACAutilities::errorFrobRel | ( | PtrList< GeometricField< T, PatchField, GeoMesh > > & | fields1, |
| PtrList< GeometricField< T, PatchField, GeoMesh > > & | fields2, | ||
| List< label > * | labels = NULL ) |
Computes the relative error in the Frobenius norm between two lists of fields.
| [in] | field1 | The reference field to which the norm is computed |
| [in] | field2 | The field for which the error is computed |
| [in] | labels | (optional) a list of labels with the indices were you want to compute the error |
| T | type of field |
Definition at line 266 of file ITHACAerror.C.
| template Eigen::MatrixXd ITHACAutilities::errorFrobRel | ( | PtrList< GeometricField< vector, fvPatchField, volMesh > > & | fields1, |
| PtrList< GeometricField< vector, fvPatchField, volMesh > > & | fields2, | ||
| List< label > * | labels ) |
| template double ITHACAutilities::errorL2Abs | ( | GeometricField< scalar, fvPatchField, volMesh > & | field1, |
| GeometricField< scalar, fvPatchField, volMesh > & | field2, | ||
| List< label > * | labels ) |
| double ITHACAutilities::errorL2Abs | ( | GeometricField< scalar, fvPatchField, volMesh > & | field1, |
| GeometricField< scalar, fvPatchField, volMesh > & | field2, | ||
| volScalarField & | Volumes ) |
Definition at line 208 of file ITHACAerror.C.
| double ITHACAutilities::errorL2Abs | ( | GeometricField< T, fvPatchField, volMesh > & | field1, |
| GeometricField< T, fvPatchField, volMesh > & | field2, | ||
| List< label > * | labels = NULL ) |
Computes the absolute error between two Fields in L2 norm.
| [in] | field1 | The reference field to which the norm is computed |
| [in] | field2 | The field for which the error is computed |
| [in] | labels | (optional) a list of labels with the indices were you want to compute the error |
| T | type of field |
Definition at line 219 of file ITHACAerror.C.
| double ITHACAutilities::errorL2Abs | ( | GeometricField< T, fvPatchField, volMesh > & | field1, |
| GeometricField< T, fvPatchField, volMesh > & | field2, | ||
| volScalarField & | Volumes ) |
Computes the absolute error between two geometric Fields in L2 norm, given the mesh volumes field.
| [in] | field1 | The reference field to which the norm is computed |
| [in] | field2 | The field for which the error is computed |
| [in] | labels | (optional) a list of labels with the indices were you want to compute the error |
| T | type of field |
| template double ITHACAutilities::errorL2Abs | ( | GeometricField< vector, fvPatchField, volMesh > & | field1, |
| GeometricField< vector, fvPatchField, volMesh > & | field2, | ||
| List< label > * | labels ) |
| double ITHACAutilities::errorL2Abs | ( | GeometricField< vector, fvPatchField, volMesh > & | field1, |
| GeometricField< vector, fvPatchField, volMesh > & | field2, | ||
| volScalarField & | Volumes ) |
Definition at line 197 of file ITHACAerror.C.
| template Eigen::MatrixXd ITHACAutilities::errorL2Abs | ( | PtrList< GeometricField< scalar, fvPatchField, volMesh > > & | fields1, |
| PtrList< GeometricField< scalar, fvPatchField, volMesh > > & | fields2, | ||
| List< label > * | labels ) |
| template Eigen::MatrixXd ITHACAutilities::errorL2Abs | ( | PtrList< GeometricField< scalar, fvPatchField, volMesh > > & | fields1, |
| PtrList< GeometricField< scalar, fvPatchField, volMesh > > & | fields2, | ||
| PtrList< volScalarField > & | Volumes ) |
| Eigen::MatrixXd ITHACAutilities::errorL2Abs | ( | PtrList< GeometricField< T, fvPatchField, volMesh > > & | fields1, |
| PtrList< GeometricField< T, fvPatchField, volMesh > > & | fields2, | ||
| List< label > * | labels = NULL ) |
Computes the absolute error in L2 norm between two lists of Fields.
| [in] | field1 | The reference field to which the norm is computed |
| [in] | field2 | The field for which the error is computed |
| [in] | labels | (optional) a list of labels with the indices were you want to compute the error |
| T | type of field |
Definition at line 335 of file ITHACAerror.C.
| Eigen::MatrixXd ITHACAutilities::errorL2Abs | ( | PtrList< GeometricField< T, fvPatchField, volMesh > > & | fields1, |
| PtrList< GeometricField< T, fvPatchField, volMesh > > & | fields2, | ||
| PtrList< volScalarField > & | Volumes ) |
Computes the relative error in L2 norm between two lists of Fields given the list of mesh volumes fields.
| [in] | fields1 | The fields 1, scalar or vector |
| [in] | fields2 | The fields 2, scalar or vector |
| [in] | Volumes | The list of the mesh volumes fields |
| TypeField | type of field |
Definition at line 304 of file ITHACAerror.C.
| template Eigen::MatrixXd ITHACAutilities::errorL2Abs | ( | PtrList< GeometricField< vector, fvPatchField, volMesh > > & | fields1, |
| PtrList< GeometricField< vector, fvPatchField, volMesh > > & | fields2, | ||
| List< label > * | labels ) |
| template Eigen::MatrixXd ITHACAutilities::errorL2Abs | ( | PtrList< GeometricField< vector, fvPatchField, volMesh > > & | fields1, |
| PtrList< GeometricField< vector, fvPatchField, volMesh > > & | fields2, | ||
| PtrList< volScalarField > & | Volumes ) |
| template double ITHACAutilities::errorL2Rel | ( | GeometricField< scalar, fvPatchField, volMesh > & | field1, |
| GeometricField< scalar, fvPatchField, volMesh > & | field2, | ||
| List< label > * | labels ) |
| double ITHACAutilities::errorL2Rel | ( | GeometricField< T, fvPatchField, volMesh > & | field1, |
| GeometricField< T, fvPatchField, volMesh > & | field2, | ||
| List< label > * | labels = NULL ) |
Computes the relative error between two geometric Fields in L2 norm.
| [in] | field1 | The reference field to which the norm is computed |
| [in] | field2 | The field for which the error is computed |
| [in] | labels | (optional) a list of labels with the indices were you want to compute the error |
| T | type of field |
Definition at line 369 of file ITHACAerror.C.
| template double ITHACAutilities::errorL2Rel | ( | GeometricField< vector, fvPatchField, volMesh > & | field1, |
| GeometricField< vector, fvPatchField, volMesh > & | field2, | ||
| List< label > * | labels ) |
| template Eigen::MatrixXd ITHACAutilities::errorL2Rel | ( | PtrList< GeometricField< scalar, fvPatchField, volMesh > > & | fields1, |
| PtrList< GeometricField< scalar, fvPatchField, volMesh > > & | fields2, | ||
| List< label > * | labels ) |
| Eigen::MatrixXd ITHACAutilities::errorL2Rel | ( | PtrList< GeometricField< T, fvPatchField, volMesh > > & | fields1, |
| PtrList< GeometricField< T, fvPatchField, volMesh > > & | fields2, | ||
| List< label > * | labels = NULL ) |
Computes the relative error in L2 norm between two lists of fields.
| [in] | field1 | The reference field to which the norm is computed |
| [in] | field2 | The field for which the error is computed |
| [in] | labels | (optional) a list of labels with the indices were you want to compute the error |
| T | type of field |
Definition at line 425 of file ITHACAerror.C.
| template Eigen::MatrixXd ITHACAutilities::errorL2Rel | ( | PtrList< GeometricField< vector, fvPatchField, volMesh > > & | fields1, |
| PtrList< GeometricField< vector, fvPatchField, volMesh > > & | fields2, | ||
| List< label > * | labels ) |
| template double ITHACAutilities::errorLinfRel | ( | GeometricField< scalar, fvPatchField, volMesh > & | field1, |
| GeometricField< scalar, fvPatchField, volMesh > & | field2, | ||
| List< label > * | labels ) |
| double ITHACAutilities::errorLinfRel | ( | GeometricField< T, fvPatchField, volMesh > & | field1, |
| GeometricField< T, fvPatchField, volMesh > & | field2, | ||
| List< label > * | labels = NULL ) |
Computes the relative error between two geometric Fields in Linf norm.
| [in] | field1 | The reference field to which the norm is computed |
| [in] | field2 | The field for which the error is computed |
| [in] | labels | (optional) a list of labels with the indices were you want to compute the error |
| T | type of field |
Definition at line 141 of file ITHACAerror.C.
| template double ITHACAutilities::errorLinfRel | ( | GeometricField< vector, fvPatchField, volMesh > & | field1, |
| GeometricField< vector, fvPatchField, volMesh > & | field2, | ||
| List< label > * | labels ) |
| template double ITHACAutilities::frobNorm | ( | GeometricField< scalar, fvPatchField, volMesh > & | field | ) |
| double ITHACAutilities::frobNorm | ( | GeometricField< Type, PatchField, GeoMesh > & | field | ) |
Evaluate the Frobenius norm of a field.
| [in] | field | The field. |
| T | Type of field, scalar or vector |
Definition at line 477 of file ITHACAerror.C.
| template double ITHACAutilities::frobNorm | ( | GeometricField< vector, fvPatchField, volMesh > & | field | ) |
| template Eigen::VectorXd ITHACAutilities::getCoeffs | ( | GeometricField< scalar, fvPatchField, volMesh > & | snapshot, |
| PtrList< GeometricField< scalar, fvPatchField, volMesh > > & | modes, | ||
| label | Nmodes, | ||
| bool | consider_volumes ) |
| template Eigen::VectorXd ITHACAutilities::getCoeffs | ( | GeometricField< scalar, fvsPatchField, surfaceMesh > & | snapshot, |
| PtrList< GeometricField< scalar, fvsPatchField, surfaceMesh > > & | modes, | ||
| label | Nmodes, | ||
| bool | consider_volumes = false ) |
| Eigen::VectorXd ITHACAutilities::getCoeffs | ( | GeometricField< Type, PatchField, GeoMesh > & | snapshot, |
| PtrList< GeometricField< Type, PatchField, GeoMesh > > & | modes, | ||
| label | Nmodes = 0, | ||
| bool | consider_volumes = true ) |
Projects a snapshot on a basis function and gets the coefficients of the projection.
| [in] | snapshot | The snapshot. |
| [in] | modes | The modes. |
| [in] | Nmodes | The number of modes |
| [in] | consider_volumes | Consider volumes or not, in not equals Frobenius Projection |
| Type | vector or scalar. |
| PatchField | fvPatchField or fvsPatchField. |
| GeoMesh | volMesh or surfaceMesh. |
Definition at line 325 of file ITHACAcoeffsMass.C.
| template Eigen::VectorXd ITHACAutilities::getCoeffs | ( | GeometricField< vector, fvPatchField, volMesh > & | snapshot, |
| PtrList< GeometricField< vector, fvPatchField, volMesh > > & | modes, | ||
| label | Nmodes, | ||
| bool | consider_volumes ) |
| template Eigen::MatrixXd ITHACAutilities::getCoeffs | ( | PtrList< GeometricField< scalar, fvPatchField, volMesh > > & | snapshot, |
| PtrList< GeometricField< scalar, fvPatchField, volMesh > > & | modes, | ||
| label | Nmodes, | ||
| bool | consider_volumes ) |
| template Eigen::MatrixXd ITHACAutilities::getCoeffs | ( | PtrList< GeometricField< scalar, fvsPatchField, surfaceMesh > > & | snapshot, |
| PtrList< GeometricField< scalar, fvsPatchField, surfaceMesh > > & | modes, | ||
| label | Nmodes, | ||
| bool | consider_volumes ) |
| Eigen::MatrixXd ITHACAutilities::getCoeffs | ( | PtrList< GeometricField< Type, PatchField, GeoMesh > > & | snapshot, |
| PtrList< GeometricField< Type, PatchField, GeoMesh > > & | modes, | ||
| label | Nmodes = 0, | ||
| bool | consider_volumes = true ) |
Projects snapshots on a basis function and gets the coefficients of the projection.
| [in] | snapshot | The snapshots. |
| [in] | modes | The modes. |
| [in] | Nmodes | The number of modes you want to use |
| [in] | consider_volumes | The consider volumes (if not equals Frobenius Projection) |
| Type | vector or scalar. |
| PatchField | fvPatchField or fvsPatchField. |
| GeoMesh | volMesh or surfaceMesh. |
Definition at line 386 of file ITHACAcoeffsMass.C.
| template Eigen::MatrixXd ITHACAutilities::getCoeffs | ( | PtrList< GeometricField< vector, fvPatchField, volMesh > > & | snapshot, |
| PtrList< GeometricField< vector, fvPatchField, volMesh > > & | modes, | ||
| label | Nmodes, | ||
| bool | consider_volumes ) |
| List< label > ITHACAutilities::getIndices | ( | const fvMesh & | mesh, |
| int | index, | ||
| int | layers ) |
Gets the indices of the cells around a certain cell.
| mesh | The mesh | |
| [in] | index | The index of the considered cell |
| [in] | layers | The number of layers to be considered |
Definition at line 62 of file ITHACAgeometry.C.
| List< label > ITHACAutilities::getIndices | ( | const fvMesh & | mesh, |
| int | index_row, | ||
| int | index_col, | ||
| int | layers ) |
Gets the indices of the cells around a certain cell.
| mesh | The mesh | |
| [in] | index_row | The index of the considered cell |
| [in] | index_col | The index of the considered cell |
| [in] | layers | The number of layers to be considered |
Definition at line 89 of file ITHACAgeometry.C.
| labelList ITHACAutilities::getIndicesFromBox | ( | const fvMesh & | mesh, |
| List< label > | indices, | ||
| Eigen::MatrixXd | Box, | ||
| List< vector > & | points2Move ) |
Gives the indices conteined into a defined box.
| [in] | mesh | The mesh |
| [in] | indices | The list where indices have to be stored |
| [in] | Box | The box defined by two opposite points |
| [in] | points2Move | The list containing the coordines of the points into the box |
Definition at line 31 of file ITHACAgeometry.C.
| template List< label > ITHACAutilities::getIndicesFromBox | ( | GeometricField< scalar, fvPatchField, volMesh > & | field, |
| Eigen::MatrixXd | Box ) |
| List< label > ITHACAutilities::getIndicesFromBox | ( | GeometricField< type_f, fvPatchField, volMesh > & | field, |
| Eigen::MatrixXd | Box ) |
Gets the indices from coordinates of a given box.
| field | A geometric Field from OpenFoam field | |
| [in] | Box | The box |
| type_f | type of the Field can be Scalar or Vector |
Definition at line 350 of file ITHACAgeometry.C.
| template List< label > ITHACAutilities::getIndicesFromBox | ( | GeometricField< vector, fvPatchField, volMesh > & | field, |
| Eigen::MatrixXd | Box ) |
| List< label > ITHACAutilities::getIndicesFromDisc | ( | const fvMesh & | mesh, |
| double | radius, | ||
| vector | origin, | ||
| vector | axis, | ||
| List< double > & | radii ) |
Gets the indices of the points which are inside a disc of a specified radius before carrying out a rotation around an axis.
| mesh | The mesh for which you want to find the indices of the points inside a disc | |
| [in] | radius | The radius of the disc |
| [in] | origin | The origin of the disc |
| [in] | axis | The axis of the rotation |
| radii | The distances of the points lying inside the disc to the origin |
Definition at line 319 of file ITHACAgeometry.C.
| template Eigen::MatrixXd ITHACAutilities::getMassMatrix | ( | PtrList< GeometricField< scalar, fvPatchField, volMesh > > & | modes, |
| label | Nmodes, | ||
| bool | consider_volumes ) |
| template Eigen::MatrixXd ITHACAutilities::getMassMatrix | ( | PtrList< GeometricField< scalar, fvPatchField, volMesh > > & | modes, |
| PtrList< GeometricField< scalar, fvPatchField, volMesh > > & | modes2, | ||
| Eigen::VectorXd | weights, | ||
| label | Nmodes = 0, | ||
| bool | consider_volumes ) |
| template Eigen::MatrixXd ITHACAutilities::getMassMatrix | ( | PtrList< GeometricField< scalar, fvPatchField, volMesh > > & | modes, |
| PtrList< GeometricField< scalar, fvPatchField, volMesh > > & | modes2, | ||
| label | Nmodes, | ||
| bool | consider_volumes ) |
| template Eigen::MatrixXd ITHACAutilities::getMassMatrix | ( | PtrList< GeometricField< scalar, fvsPatchField, surfaceMesh > > & | modes, |
| label | Nmodes, | ||
| bool | consider_volumes = false ) |
| template Eigen::MatrixXd ITHACAutilities::getMassMatrix | ( | PtrList< GeometricField< scalar, fvsPatchField, surfaceMesh > > & | modes, |
| PtrList< GeometricField< scalar, fvsPatchField, surfaceMesh > > & | modes2, | ||
| Eigen::VectorXd | weights, | ||
| label | Nmodes = 0, | ||
| bool | consider_volumes ) |
| template Eigen::MatrixXd ITHACAutilities::getMassMatrix | ( | PtrList< GeometricField< scalar, fvsPatchField, surfaceMesh > > & | modes, |
| PtrList< GeometricField< scalar, fvsPatchField, surfaceMesh > > & | modes2, | ||
| label | Nmodes, | ||
| bool | consider_volumes = false ) |
| template Eigen::MatrixXd ITHACAutilities::getMassMatrix | ( | PtrList< GeometricField< tensor, fvPatchField, volMesh > > & | modes, |
| label | Nmodes, | ||
| bool | consider_volumes ) |
| template Eigen::MatrixXd ITHACAutilities::getMassMatrix | ( | PtrList< GeometricField< tensor, fvPatchField, volMesh > > & | modes, |
| PtrList< GeometricField< tensor, fvPatchField, volMesh > > & | modes2, | ||
| Eigen::VectorXd | weights, | ||
| label | Nmodes = 0, | ||
| bool | consider_volumes ) |
| template Eigen::MatrixXd ITHACAutilities::getMassMatrix | ( | PtrList< GeometricField< tensor, fvPatchField, volMesh > > & | modes, |
| PtrList< GeometricField< tensor, fvPatchField, volMesh > > & | modes2, | ||
| label | Nmodes, | ||
| bool | consider_volumes ) |
| Eigen::MatrixXd ITHACAutilities::getMassMatrix | ( | PtrList< GeometricField< Type, PatchField, GeoMesh > > & | fields, |
| label | nModes = 0, | ||
| bool | consider_volumes = true ) |
Gets the mass matrix using the eigen routine.
| [in] | fields | The openFoam fields |
| [in] | consider_volumes | True if you want to consider the volumes |
| Type | vector or scalar. |
| PatchField | fvPatchField or fvsPatchField. |
| GeoMesh | volMesh or surfaceMesh. |
Definition at line 68 of file ITHACAcoeffsMass.C.
| Eigen::MatrixXd ITHACAutilities::getMassMatrix | ( | PtrList< GeometricField< Type, PatchField, GeoMesh > > & | fields, |
| PtrList< GeometricField< Type, PatchField, GeoMesh > > & | fields2, | ||
| Eigen::VectorXd | weights, | ||
| label | Nmodes = 0, | ||
| bool | consider_volumes = true ) |
Gets the cross mass matrix using the eigen routine.
| [in] | fields | The openFoam fields |
| [in] | fields2 | The second openFoam fields |
| [in] | weights | Weights |
| [in] | consider_volumes | True if you want to consider the volumes |
| Type | vector or scalar. |
| PatchField | fvPatchField or fvsPatchField. |
| GeoMesh | volMesh or surfaceMesh. |
Definition at line 215 of file ITHACAcoeffsMass.C.
| Eigen::MatrixXd ITHACAutilities::getMassMatrix | ( | PtrList< GeometricField< Type, PatchField, GeoMesh > > & | fields, |
| PtrList< GeometricField< Type, PatchField, GeoMesh > > & | fields2, | ||
| label | nModes = 0, | ||
| bool | consider_volumes = true ) |
Gets the cross mass matrix using the eigen routine.
| [in] | fields | The openFoam fields |
| [in] | consider_volumes | True if you want to consider the volumes |
| Type | vector or scalar. |
| PatchField | fvPatchField or fvsPatchField. |
| GeoMesh | volMesh or surfaceMesh. |
Definition at line 135 of file ITHACAcoeffsMass.C.
| template Eigen::MatrixXd ITHACAutilities::getMassMatrix | ( | PtrList< GeometricField< vector, fvPatchField, volMesh > > & | modes, |
| label | Nmodes, | ||
| bool | consider_volumes ) |
| template Eigen::MatrixXd ITHACAutilities::getMassMatrix | ( | PtrList< GeometricField< vector, fvPatchField, volMesh > > & | modes, |
| PtrList< GeometricField< vector, fvPatchField, volMesh > > & | modes2, | ||
| Eigen::VectorXd | weights, | ||
| label | Nmodes = 0, | ||
| bool | consider_volumes ) |
| template Eigen::MatrixXd ITHACAutilities::getMassMatrix | ( | PtrList< GeometricField< vector, fvPatchField, volMesh > > & | modes, |
| PtrList< GeometricField< vector, fvPatchField, volMesh > > & | modes2, | ||
| label | Nmodes, | ||
| bool | consider_volumes ) |
| template Eigen::VectorXd ITHACAutilities::getMassMatrixFV | ( | GeometricField< scalar, fvPatchField, volMesh > & | snapshot | ) |
| template Eigen::VectorXd ITHACAutilities::getMassMatrixFV | ( | GeometricField< tensor, fvPatchField, volMesh > & | snapshot | ) |
| Eigen::VectorXd ITHACAutilities::getMassMatrixFV | ( | GeometricField< Type, PatchField, GeoMesh > & | snapshot | ) |
Gets a vector containing the volumes of each cell of the mesh.
| [in] | snapshot | A snapshot, scalar or vector field. |
| Type | vector or scalar. |
| PatchField | fvPatchField or fvsPatchField. |
| GeoMesh | volMesh or surfaceMesh. |
Definition at line 307 of file ITHACAcoeffsMass.C.
| template Eigen::VectorXd ITHACAutilities::getMassMatrixFV | ( | GeometricField< vector, fvPatchField, volMesh > & | snapshot | ) |
| void ITHACAutilities::getPointsFromPatch | ( | fvMesh & | mesh, |
| label | ind, | ||
| List< vector > & | points, | ||
| labelList & | indices ) |
Get the polabel coordinates and indices from patch.
| [in] | mesh | The mesh |
| [in] | ind | The index of the patch from which you want to extract the points |
| [out] | points | The coordinates of the points on the patch |
| [out] | indices | The indices of the points on the patch |
Definition at line 118 of file ITHACAgeometry.C.
| template fvMeshSubset * ITHACAutilities::getSubMeshFromBox | ( | GeometricField< scalar, fvPatchField, volMesh > & | field, |
| Eigen::MatrixXd | Box ) |
| fvMeshSubset * ITHACAutilities::getSubMeshFromBox | ( | GeometricField< type_f, fvPatchField, volMesh > & | field, |
| Eigen::MatrixXd | Box ) |
Gets a subMesh from a box of coordinates and a given field (used only for the mesh).
| field | The field passed | |
| [in] | Box | The box of coordinates 3*2 matrix |
| type_f | type of the Field can be Scalar or Vector |
Definition at line 383 of file ITHACAgeometry.C.
| template fvMeshSubset * ITHACAutilities::getSubMeshFromBox | ( | GeometricField< vector, fvPatchField, volMesh > & | field, |
| Eigen::MatrixXd | Box ) |
| Eigen::MatrixXd ITHACAutilities::getValues | ( | GeometricField< scalar, fvPatchField, volMesh > & | field, |
| labelList & | indices, | ||
| labelList * | xyz ) |
Definition at line 843 of file ITHACAassign.C.
| Eigen::MatrixXd ITHACAutilities::getValues | ( | GeometricField< Type, fvPatchField, volMesh > & | field, |
| labelList & | indices ) |
Definition at line 791 of file ITHACAassign.C.
| Eigen::MatrixXd ITHACAutilities::getValues | ( | GeometricField< Type, fvPatchField, volMesh > & | field, |
| labelList & | indices, | ||
| labelList * | xyz = NULL ) |
///
Gets the values from a list of indices
| field | The field from which you want to extract the values |
| indices | The indices at the point |
| xyz | Definition of the x, y, z coordinate of the value you want to extract 0 for x, 1 for y, 2 for z |
| Type | type of the Field can be Scalar or Vector |
| Eigen::MatrixXd ITHACAutilities::getValues | ( | GeometricField< vector, fvPatchField, volMesh > & | field, |
| labelList & | indices, | ||
| labelList * | xyz ) |
Definition at line 807 of file ITHACAassign.C.
| template Eigen::MatrixXd ITHACAutilities::getValues | ( | PtrList< GeometricField< scalar, fvPatchField, volMesh > > & | fields, |
| labelList & | indices, | ||
| labelList * | xyz ) |
| Eigen::MatrixXd ITHACAutilities::getValues | ( | PtrList< GeometricField< T, fvPatchField, volMesh > > & | fields, |
| labelList & | indices, | ||
| labelList * | xyz ) |
Definition at line 860 of file ITHACAassign.C.
| Eigen::MatrixXd ITHACAutilities::getValues | ( | PtrList< GeometricField< Type, fvPatchField, volMesh > > & | field, |
| labelList & | indices, | ||
| labelList * | xyz = NULL ) |
Gets the values from a list of indices.
| field | The field |
| indices | The indices |
| xyz | The xyz |
| Type | { description } |
| template Eigen::MatrixXd ITHACAutilities::getValues | ( | PtrList< GeometricField< vector, fvPatchField, volMesh > > & | fields, |
| labelList & | indices, | ||
| labelList * | xyz ) |
| double ITHACAutilities::H1Seminorm | ( | GeometricField< scalar, fvPatchField, volMesh > & | field | ) |
Definition at line 458 of file ITHACAerror.C.
| double ITHACAutilities::H1Seminorm | ( | GeometricField< T, fvPatchField, volMesh > & | field | ) |
Evaluate the H1 seminorm of a geoemtri.
| [in] | field | The field. |
| T | Type of field, scalar or vector |
| double ITHACAutilities::H1Seminorm | ( | GeometricField< vector, fvPatchField, volMesh > & | field | ) |
Definition at line 467 of file ITHACAerror.C.
| double ITHACAutilities::integralOnPatch | ( | fvMesh & | mesh, |
| List< scalar > | field, | ||
| word | patch ) |
Evaluate the integral on a patch.
| [in] | mesh | The mesh. |
| [in] | field | A list of values of the field on the patch. |
| [in] | patch | Name of the patch. |
Definition at line 574 of file ITHACAerror.C.
| double ITHACAutilities::integralOnPatch | ( | fvMesh & | mesh, |
| volScalarField & | field, | ||
| word | patch ) |
Evaluate the integral on a patch.
| [in] | mesh | The mesh. |
| [in] | field | The field. |
| [in] | patch | Name of the patch. |
Definition at line 554 of file ITHACAerror.C.
| Eigen::MatrixXd ITHACAutilities::invertMatrix | ( | Eigen::MatrixXd & | matrixToInvert, |
| const word | inversionMethod ) |
Invert a matrix given the method name in the ITHACAdict.
| [in] | matrixToInvert | Matrix to invert |
| [in] | methodName | Method |
Definition at line 166 of file ITHACAutilities.C.
| bool ITHACAutilities::isInteger | ( | double | ratio | ) |
This function checks if ratio is an integer.
| [in] | ratio | The ratio |
Definition at line 74 of file ITHACAutilities.C.
| bool ITHACAutilities::isTurbulent | ( | ) |
This function checks if the case is turbulent.
Definition at line 90 of file ITHACAutilities.C.
| double ITHACAutilities::L2Norm | ( | GeometricField< scalar, fvPatchField, volMesh > & | field | ) |
Definition at line 41 of file ITHACAerror.C.
| double ITHACAutilities::L2Norm | ( | GeometricField< T, fvPatchField, volMesh > & | field | ) |
Evaluate the L2 norm of a geometric field.
| [in] | field | The field. |
| T | Type of field, scalar or vector |
| double ITHACAutilities::L2Norm | ( | GeometricField< vector, fvPatchField, volMesh > & | field | ) |
Definition at line 49 of file ITHACAerror.C.
| double ITHACAutilities::L2normOnPatch | ( | fvMesh & | mesh, |
| volScalarField & | field, | ||
| word | patch ) |
Evaluate the L2 norm of a field on a boundary patch.
| [in] | mesh | The mesh. |
| [in] | field | The field. |
| [in] | patch | Name of the patch. |
Definition at line 488 of file ITHACAerror.C.
| double ITHACAutilities::L2productOnPatch | ( | fvMesh & | mesh, |
| List< scalar > & | field1, | ||
| List< scalar > & | field2, | ||
| word | patch ) |
Evaluate the L2 inner product between two scalarLists.
| [in] | mesh | The mesh. |
| [in] | field1 | The first field. |
| [in] | field2 | The second field. |
| [in] | patch | Name of the patch. |
Definition at line 508 of file ITHACAerror.C.
| double ITHACAutilities::LinfNorm | ( | GeometricField< scalar, fvPatchField, volMesh > & | field | ) |
Definition at line 57 of file ITHACAerror.C.
| double ITHACAutilities::LinfNorm | ( | GeometricField< T, fvPatchField, volMesh > & | field | ) |
Evaluate the Linf norm of a geometric field.
| [in] | field | The field. |
| T | Type of field, scalar or vector |
| double ITHACAutilities::LinfNorm | ( | GeometricField< vector, fvPatchField, volMesh > & | field | ) |
Definition at line 66 of file ITHACAerror.C.
| double ITHACAutilities::LinfNormOnPatch | ( | fvMesh & | mesh, |
| volScalarField & | field, | ||
| word | patch ) |
Evaluate the Linf norm of a field on a boundary patch.
| [in] | mesh | The mesh. |
| [in] | field | The field. |
| [in] | patch | Name of the patch. |
Definition at line 528 of file ITHACAerror.C.
| volScalarField ITHACAutilities::meshNonOrtho | ( | fvMesh & | mesh, |
| volScalarField & | NonOrtho ) |
Returns a scalarField that containes the non-orthogonality value of a given mesh.
| mesh | The mesh for which you want to compute the non-orthogonality value |
| NonOrtho | The scalarField containing the non-orthogonality |
Definition at line 403 of file ITHACAgeometry.C.
| template void ITHACAutilities::normalizeFields | ( | PtrList< GeometricField< scalar, fvPatchField, volMesh > > & | fields | ) |
| void ITHACAutilities::normalizeFields | ( | PtrList< GeometricField< Type, fvPatchField, volMesh > > & | fields | ) |
Normalize list of Geometric fields.
| fields | The fields to be normalized |
| Type | type of the Field can be Scalar or Vector |
Definition at line 744 of file ITHACAassign.C.
| template void ITHACAutilities::normalizeFields | ( | PtrList< GeometricField< vector, fvPatchField, volMesh > > & | fields | ) |
| Eigen::MatrixXd ITHACAutilities::parTimeCombMat | ( | List< Eigen::VectorXd > | acquiredSnapshotsTimes, |
| Eigen::MatrixXd | parameters ) |
A method to compute the time-parameter combined matrix whose any single element corresponds to a unique snapshot in the snapshots acquired for the offline stage.
| [in] | acquiredSnapshotsTimes | The time instants at which snapshots are acquired |
| [in] | parameters | The parameters for which the simulations are run ordered with respect to vectors acquiredSnapshotsTimes which contain the corresponding time instants at which we acquired snapshots |
Definition at line 432 of file ITHACAcoeffsMass.C.
| Eigen::MatrixXd ITHACAutilities::pinv_eigen_based | ( | Eigen::MatrixXd & | origin, |
| const float | er = 0 ) |
Using the Eigen library, using the SVD decomposition method to solve the matrix pseudo-inverse, the default error er is 0.
| origin | Matrix to invert |
| er | Error |
Definition at line 137 of file ITHACAutilities.C.
| Eigen::MatrixXd ITHACAutilities::rand | ( | label | rows, |
| Eigen::MatrixXd | minMax ) |
Generates random matrix with random values in an interval.
| [in] | rows | Number of rows |
| [in] | minMax | The min and max Matrix, it has as many rows as columns of the output matrix. |
Definition at line 56 of file ITHACAutilities.C.
| Eigen::MatrixXd ITHACAutilities::rand | ( | label | rows, |
| label | cols, | ||
| double | min, | ||
| double | max ) |
Generates random matrix with random values in an interval.
| [in] | rows | Number of rows |
| [in] | cols | Number of cols |
| [in] | min | Minimum of the interval |
| [in] | max | Maximum of the interval |
Definition at line 44 of file ITHACAutilities.C.
| template PtrList< GeometricField< scalar, fvPatchField, volMesh > > ITHACAutilities::reconstructFromCoeff | ( | PtrList< GeometricField< scalar, fvPatchField, volMesh > > & | modes, |
| Eigen::MatrixXd & | coeff_matrix, | ||
| label | Nmodes ) |
| template PtrList< GeometricField< tensor, fvPatchField, volMesh > > ITHACAutilities::reconstructFromCoeff | ( | PtrList< GeometricField< tensor, fvPatchField, volMesh > > & | modes, |
| Eigen::MatrixXd & | coeff_matrix, | ||
| label | Nmodes ) |
| PtrList< GeometricField< Type, PatchField, GeoMesh > > ITHACAutilities::reconstructFromCoeff | ( | PtrList< GeometricField< Type, PatchField, GeoMesh > > & | modes, |
| Eigen::MatrixXd & | coeff_matrix, | ||
| label | Nmodes ) |
Exact reconstruction using a certain number of modes for a list of fields and the projection coefficients.
| [in] | modes | The modes used for reconstruction as PtrList. |
| [in] | Nmodes | The number of modes you want to use. |
| [in] | coeff_matrix | The matrix of coefficients. |
| Type | vector or scalar. |
| PatchField | fvPatchField or fvsPatchField. |
| GeoMesh | volMesh or surfaceMesh. |
Definition at line 31 of file ITHACAcoeffsMass.C.
| template PtrList< GeometricField< vector, fvPatchField, volMesh > > ITHACAutilities::reconstructFromCoeff | ( | PtrList< GeometricField< vector, fvPatchField, volMesh > > & | modes, |
| Eigen::MatrixXd & | coeff_matrix, | ||
| label | Nmodes ) |
| Field< vector > ITHACAutilities::rotateMesh | ( | fvMesh & | mesh, |
| double | r1, | ||
| double | r2, | ||
| vector | axis, | ||
| double | alpha, | ||
| labelList | movingPointsIDs, | ||
| List< double > | radii, | ||
| word | angleVariationMethod = "Linear", | ||
| double | v = 3 ) |
A function that rotates the mesh rigidly, by a fixed specified angle for the points lying within a disc of radius r1, and by a an angle which diminishes from the former angle to zero either linearly or following a Sinusoidal relation or Sigmoid function in a disc of radius r2 larger than r1.
| mesh | The mesh which you want to rotate rigidly | |
| [in] | r1 | The inner disc radius |
| [in] | r2 | The outer disc radius |
| [in] | axis | The axis of rotation |
| [in] | alpha | The angle of rotation in degrees |
| [in] | movingPointsIDs | The list of id's of the points to be rotated |
| [in] | radii | The distances of the points to be rotated to the origin of the rotation |
| [in] | angleVariationMethod | The angle variation method either Linear or Sinusoidal or Sigmoid functions |
| [in] | v | The tuning parameter in case of using the Sigmoid function |
Definition at line 226 of file ITHACAgeometry.C.
| List< vector > ITHACAutilities::rotatePoints | ( | const List< vector > & | originalPoints, |
| vector | AxisOfRotation, | ||
| double | AngleOfRotation ) |
Rotate a list of points in clockwise direction given an axis of rotation and an angle in degrees.
| [in] | originalPoints | The original points |
| [in] | CentreOfRotation | The Axis Of Rotation |
| [in] | AngleOfRotation | The angle of rotation in degrees |
Definition at line 440 of file ITHACAgeometry.C.
| Eigen::MatrixXd ITHACAutilities::rotationMatrix | ( | vector | AxisOfRotation, |
| double | AngleOfRotation ) |
Functions that return a Rotation Matrix given an axis of rotation and an angle in degrees.
| [in] | AxisOfRotation | The axis of rotation |
| [in] | AngleOfRotation | The angle of rotation in degrees |
Definition at line 276 of file ITHACAgeometry.C.
| template void ITHACAutilities::setBoxToValue | ( | GeometricField< scalar, fvPatchField, volMesh > & | field, |
| Eigen::MatrixXd | Box, | ||
| scalar | value ) |
| void ITHACAutilities::setBoxToValue | ( | GeometricField< Type, fvPatchField, volMesh > & | field, |
| Eigen::MatrixXd | Box, | ||
| Type | value ) |
Set value of a volScalarField to a constant inside a given box.
the Box must be defined with a 2*3 Eigen::MatrixXd in the following way
\[ Box=\begin{bmatrix} x_1 & y_1 & z_1 \ \ \ x_2 & y_2 & z_2 \ \ \end{bmatrix} \]
where \( x_1, y_1, z_1 \) and \( x_2, y_2, z_2 \) are the coordinates of the two corners defining the box.
| [in] | field | The field. |
| [in] | Box | The box. |
| [in] | value | The value you want to give to the volScalarField |
| Type | Type of field can be scalar or vector |
Definition at line 618 of file ITHACAassign.C.
| template void ITHACAutilities::setBoxToValue | ( | GeometricField< vector, fvPatchField, volMesh > & | field, |
| Eigen::MatrixXd | Box, | ||
| vector | value ) |
| template void ITHACAutilities::setIndices2Value | ( | labelList & | ind2set, |
| List< scalar > & | value2set, | ||
| labelList & | movingIDS, | ||
| List< scalar > & | originalList ) |
| void ITHACAutilities::setIndices2Value | ( | labelList & | ind2set, |
| List< Type > & | value2set, | ||
| labelList & | movingIDS, | ||
| List< Type > & | originalList ) |
Sets some given Indices of a list of objects to given values.
| ind2set | The indices of the list that you want to assign |
| value2set | The values you want to set |
| movingIDS | The index of the list in the original list that you want to assign |
| originalList | The original list |
| Type | Type of list (scalar or vector) |
Definition at line 665 of file ITHACAassign.C.
| template void ITHACAutilities::setIndices2Value | ( | labelList & | ind2set, |
| List< vector > & | value2set, | ||
| labelList & | movingIDS, | ||
| List< vector > & | originalList ) |
1.13.2