37#ifndef ITHACAutilities_H
38#define ITHACAutilities_H
42#include "freestreamFvPatchField.H"
45#pragma GCC diagnostic push
46#pragma GCC diagnostic ignored "-Wold-style-cast"
48#pragma GCC diagnostic pop
51#include "polyMeshTools.H"
53#include "mixedFvPatchFields.H"
54#include "fvMeshSubset.H"
55using namespace std::placeholders;
87Eigen::MatrixXd
rand(label rows, label cols,
double min,
double max);
97Eigen::MatrixXd
rand(label rows, Eigen::MatrixXd minMax);
137Eigen::MatrixXd
pinv_eigen_based(Eigen::MatrixXd &origin,
const float er = 0);
147Eigen::MatrixXd
invertMatrix(Eigen::MatrixXd& matrixToInvert,
const word inversionMethod);
Header file of the Foam2Eigen class.
Header file of the ITHACAassign file.
Header file of the ITHACAcoeffsMass file.
Header file of the ITHACAerror file.
Header file of the geometry namespace.
Header file of the ITHACAstream class, it contains the implementation of several methods for input ou...
Header file of the ITHACAsystem file.
Simple header and source file of the Color::Modifier class to change color to the output stream.
Namespace to implement some useful assign operation of OF fields.
bool isInteger(double ratio)
This function checks if ratio is an integer.
Eigen::MatrixXd invertMatrix(Eigen::MatrixXd &matrixToInvert, const word inversionMethod)
Invert a matrix given the method name in the ITHACAdict.
Eigen::MatrixXd pinv_eigen_based(Eigen::MatrixXd &origin, const float er)
Using the Eigen library, using the SVD decomposition method to solve the matrix pseudo-inverse,...
Eigen::MatrixXd rand(label rows, label cols, double min, double max)
Generates random matrix with random values in an interval.
bool isTurbulent()
This function checks if the case is turbulent.
List< T > combineList(List< List< T > > &doubleList)
Combine a list of list into a single list with unique elements.