ug4
grid_function_util.h File Reference

Go to the source code of this file.

Classes

class  ug::GridFunctionDebugWriter< TDomain, TAlgebra >
 
class  ug::GridFunctionPositionProvider< TGridFunction >
 
class  ug::GridFunctionVectorWriter< TGridFunction, TVector >
 
class  ug::GridFunctionVectorWriterDirichlet0< TGridFunction >
 

Namespaces

 ug
 the ug namespace
 

Functions

template<typename TGridFunction >
void ug::AdjustMeanValue (SmartPtr< TGridFunction > spGF, const std::string &fcts)
 
template<typename TGridFunction >
void ug::AdjustMeanValue (SmartPtr< TGridFunction > spGF, const std::string &fcts, number mean)
 
template<typename TGridFunction >
void ug::AdjustMeanValue (SmartPtr< TGridFunction > spGF, const std::vector< std::string > &vCmp)
 
template<typename TGridFunction >
void ug::AdjustMeanValue (SmartPtr< TGridFunction > spGF, const std::vector< std::string > &vCmp, number mean)
 
template<typename TDomain , typename TAlgebra >
number ug::AverageFunctionDifference (SmartPtr< GridFunction< TDomain, TAlgebra > > spGridFct, std::string subset, std::string fct1, std::string fct2)
 Calculates the average of the pointwise difference of two functions on given subset. More...
 
template<typename TGridFunction , typename TBaseElem >
bool ug::CheckGFforNaN (const TGridFunction *u, const char *fct_names)
 
template<typename TGridFunction , typename TBaseElem >
bool ug::CheckGFforNaN (const TGridFunction *u, const FunctionGroup &fctGroup)
 
template<typename TGridFunction , typename TBaseElem >
bool ug::CheckGFforNaN (const TGridFunction *u, size_t fct)
 
template<typename TGridFunction >
bool ug::CheckGFValuesWithinBounds (ConstSmartPtr< TGridFunction > u, const char *fctNames, number lowerBnd, number upperBnd)
 
template<typename TGridFunction , typename TBaseElem >
bool ug::CheckGFValuesWithinBounds (ConstSmartPtr< TGridFunction > u, size_t cmp, number lowerBnd, number upperBnd)
 
template<typename TGridFunction >
bool ug::CheckGFValuesWithinBounds (ConstSmartPtr< TGridFunction > u, size_t cmp, number lowerBnd, number upperBnd)
 
template<typename TGridFunction >
void ug::LoadVector (TGridFunction &u, const char *filename)
 
template<typename vector_type >
bool ug::ReadVector (std::string filename, vector_type &vec, int dim)
 
template<typename TGridFunction >
void ug::SaveMatrixForConnectionViewer (TGridFunction &u, MatrixOperator< typename TGridFunction::algebra_type::matrix_type, typename TGridFunction::vector_type > &A, const char *filename)
 
void ug::SaveMatrixToMTX (const char *filename, MatrixOperator< CPUAlgebra::matrix_type, CPUAlgebra::vector_type > &A, std::string comment="%Generated with ug4.")
 Save the assembled matrix of a matrix operator to MatrixMarket format. More...
 
template<typename TGridFunction >
void ug::SaveVectorCSV (TGridFunction &b, const char *filename)
 
template<typename TGridFunction >
void ug::SaveVectorDiffForConnectionViewer (TGridFunction &b, TGridFunction &bCompare, const char *filename)
 
template<typename TGridFunction >
void ug::SaveVectorDiffForConnectionViewer (TGridFunction &u, TGridFunction &compareVec, MatrixOperator< typename TGridFunction::algebra_type::matrix_type, typename TGridFunction::vector_type > &A, const char *filename)
 
template<typename TGridFunction >
void ug::SaveVectorForConnectionViewer (TGridFunction &b, const char *filename)
 
template<typename TGridFunction >
void ug::SaveVectorForConnectionViewer (TGridFunction &u, MatrixOperator< typename TGridFunction::algebra_type::matrix_type, typename TGridFunction::vector_type > &A, const char *filename)
 
template<typename TGridFunction >
void ug::ScaleGF (SmartPtr< TGridFunction > scaledVecOut, ConstSmartPtr< TGridFunction > vecIn, const std::vector< number > &scalingFactors)
 Scales all functions contained in a grid function. More...
 
template<typename TBaseElem , typename TGridFunction >
static void ug::ScaleGFOnElems (ConstSmartPtr< DoFDistribution > dd, SmartPtr< TGridFunction > vecOut, ConstSmartPtr< TGridFunction > vecIn, const std::vector< number > &vScale)
 
template<typename TGridFunction , typename TBaseElem >
void ug::SubtractValueFromComponent (SmartPtr< TGridFunction > spGF, size_t fct, number sub)
 
template<typename TGridFunction , typename TBaseElem >
number ug::SumGFValuesAt (TGridFunction *u, const char *fct_names)
 
template<typename TGridFunction , typename TBaseElem >
number ug::SumGFValuesAt (TGridFunction *u, const char *fct_names, const char *subset_names)
 
template<typename TGridFunction , typename TBaseElem >
number ug::SumGFValuesAt (TGridFunction *u, size_t fct)
 
template<typename TGridFunction , typename TBaseElem >
number ug::SumGFValuesAt (TGridFunction *u, size_t fct, SubsetGroup &ssGroup)
 
template<typename TDomain >
void ug::WriteAlgebraIndices (std::string name, ConstSmartPtr< TDomain > domain, ConstSmartPtr< DoFDistribution > dd)
 
template<class TFunction >
void ug::WriteMatrixToConnectionViewer (const char *filename, const typename TFunction::algebra_type::matrix_type &A, const TFunction &u)
 
template<class TFunction >
void ug::WriteVectorCSV (const char *filename, const typename TFunction::algebra_type::vector_type &b, const TFunction &u)
 
template<class TFunction >
void ug::WriteVectorToConnectionViewer (const char *filename, const typename TFunction::algebra_type::matrix_type &A, const typename TFunction::algebra_type::vector_type &b, const TFunction &u, const typename TFunction::algebra_type::vector_type *pCompareVec=NULL)
 
template<class TFunction >
void ug::WriteVectorToConnectionViewer (const char *filename, const typename TFunction::algebra_type::vector_type &b, const TFunction &u, const typename TFunction::algebra_type::vector_type *pCompareVec=NULL)