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

Header file of the ITHACAerror file. More...

#include "fvCFD.H"
#include "IOmanip.H"
#include "freestreamFvPatchField.H"
#include <sys/stat.h>
#include <unistd.h>
#include <Eigen/Eigen>
#include <functional>
#include "./colormod.H"
#include "polyMeshTools.H"
#include <chrono>
#include "mixedFvPatchFields.H"
#include "fvMeshSubset.H"
#include "Foam2Eigen.H"

Go to the source code of this file.

Namespaces

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

Functions

template<class Type , template< class > class PatchField, class GeoMesh >
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.
 
template<typename T >
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.
 
template<typename T >
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.
 
template<typename T >
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.
 
template<typename T >
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.
 
template<typename T >
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.
 
template<class T , template< class > class PatchField, class GeoMesh >
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.
 
template<typename T >
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.
 
template<typename T >
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.
 
template<class T >
double ITHACAutilities::L2Norm (GeometricField< T, fvPatchField, volMesh > &field)
 Evaluate the L2 norm of a geometric field.
 
template<class T >
double ITHACAutilities::LinfNorm (GeometricField< T, fvPatchField, volMesh > &field)
 Evaluate the Linf norm of a geometric field.
 
template<class T >
double ITHACAutilities::H1Seminorm (GeometricField< T, fvPatchField, volMesh > &field)
 Evaluate the H1 seminorm of a geoemtri.
 
template<class Type , template< class > class PatchField, class GeoMesh >
double ITHACAutilities::frobNorm (GeometricField< Type, PatchField, GeoMesh > &field)
 Evaluate the Frobenius norm of a field.
 
double ITHACAutilities::L2normOnPatch (fvMesh &mesh, volScalarField &field, word patch)
 Evaluate the L2 norm of a field on a boundary patch.
 
double ITHACAutilities::L2productOnPatch (fvMesh &mesh, List< scalar > &field1, List< scalar > &field2, word patch)
 Evaluate the L2 inner product between two scalarLists.
 
double ITHACAutilities::LinfNormOnPatch (fvMesh &mesh, volScalarField &field, word patch)
 Evaluate the Linf norm of a field on a boundary patch.
 
double ITHACAutilities::integralOnPatch (fvMesh &mesh, volScalarField &field, word patch)
 Evaluate the integral on a patch.
 
double ITHACAutilities::integralOnPatch (fvMesh &mesh, List< scalar > field, word patch)
 Evaluate the integral on a patch.
 

Detailed Description

Header file of the ITHACAerror file.

Definition in file ITHACAerror.H.