Classes | |
class | Timer |
Functions | |
template<typename T > | |
std::vector< T > | flatten (const std::vector< std::vector< T >> &v) |
template<typename T > | |
std::vector< std::vector< T > > | fold (const std::vector< T > &v, int dim) |
template<typename T > | |
std::vector< T > | operator+ (const std::vector< T > &x, const std::vector< T > &y) |
template<typename T > | |
std::vector< T > | operator- (const std::vector< T > &x, const std::vector< T > &y) |
template<typename T > | |
std::vector< T > | operator* (T a, const std::vector< T > &x) |
template<typename T > | |
std::vector< T > | hadamard (const std::vector< T > &x, const std::vector< T > &y) |
template<typename T > | |
T | l2_Norm (const std::vector< T > &x) |
template<typename T > | |
T | reciprocal (T x) |
template<typename T > | |
void | reciprocal_vec (std::vector< T > &x) |
template<typename T > | |
bool | hasZero (const std::vector< T > &x) |
template<typename T > | |
std::vector< T > | getMinMax (const std::vector< T > &x) |
template<typename T > | |
T | scale_to_range (T x, const std::vector< T > &xminmax, const std::vector< T > &yminmax) |
template<typename T > | |
void | scale_vec_to_range (std::vector< T > &x, const std::vector< T > &xminmax, const std::vector< T > &yminmax) |
template<typename T > | |
std::vector< T > | getMeanStdev (const std::vector< T > &x) |
template<typename T > | |
std::vector< bool > | cellsToRefine (const std::vector< T > &values, T tol) |
template<typename T > | |
std::vector< bool > | cellsToRefineStdev (const std::vector< T > &values, T mean, T dev) |
template<typename T > | |
std::vector< bool > | cellsToRefineMaxdev (const std::vector< T > &values, T dev) |
std::string | trim_fname (const std::string &name, const std::string &ext) |
std::string | find_ext (const std::string &fname) |
void | toLower (std::string &str) |
void | toUpper (std::string &str) |
std::string | findToStr (const std::string &str, const std::string &ptrn) |
std::string | findFromStr (const std::string &str, const std::string &ptrn) |
std::string | getTimeStr () |
std::string | find_name (const std::string &fname) |
template<typename T > | |
void | printVec (const std::vector< T > &v) |
template<typename T > | |
bool | valInVec (const std::vector< T > &v, T val) |
template<typename A , typename B > | |
std::pair< B, A > | flip_pair (const std::pair< A, B > &p) |
template<typename A , typename B > | |
std::multimap< B, A > | flip_map (const std::map< A, B > &src) |
template<typename T > | |
bool | isInBBox (const std::vector< T > &crd, const std::vector< T > &bb) |
template<typename A , typename B > | |
std::vector< A > | getSortedKeys (const std::map< A, B > &mapObj) |
std::string | getRandomString (int length) |
std::shared_ptr< char > | strToChar (const std::string &strng) |
std::vector< std::string > | Tokenize (const std::string &lineIn, const char &delim) |
std::vector< std::string > | Tokenize (const std::string &lineIn, const std::string &delim) |
template<typename A , typename B > | |
A | leastUnusedKey (const std::map< A, B > &map, A min=1) |
std::vector< bool > nemAux::cellsToRefine | ( | const std::vector< T > & | values, |
T | tol | ||
) |
Definition at line 402 of file AuxiliaryFunctions.H.
Referenced by Foam::AMRFoam::update(), Foam::AMRFoam::updateAMR(), and Foam::AMRFoam::updateAMRML().
std::vector< bool > nemAux::cellsToRefineMaxdev | ( | const std::vector< T > & | values, |
T | dev | ||
) |
Definition at line 426 of file AuxiliaryFunctions.H.
Referenced by NEM::ADP::SizeFieldBase::mutateValues().
std::vector< bool > nemAux::cellsToRefineStdev | ( | const std::vector< T > & | values, |
T | mean, | ||
T | dev | ||
) |
Definition at line 411 of file AuxiliaryFunctions.H.
|
inline |
Definition at line 451 of file AuxiliaryFunctions.H.
Referenced by NEM::GEN::gmshGen::createMeshFromSTEP(), NEM::DRV::GmshMeshGenDriver::execute(), NEM::DRV::GmshToExoConversionDriver::execute(), NEM::DRV::MeshGenDriver::MeshGenDriver(), NEM::MSH::MeshTypeFromFilename(), NEM::MSH::vtkStandardNewMacro(), NEM::MSH::vtkGeoMesh::write(), NEM::MSH::exoGeoMesh::write(), NEM::MSH::oshGeoMesh::write(), and vtkMesh::write().
|
inline |
Definition at line 497 of file AuxiliaryFunctions.H.
|
inline |
Definition at line 477 of file AuxiliaryFunctions.H.
Referenced by NEM::MSH::gmshGeoMesh::getVTKTypeFromGmshType().
|
inline |
Definition at line 472 of file AuxiliaryFunctions.H.
Referenced by NEM::MSH::gmshGeoMesh::getVTKTypeFromGmshType().
std::vector< T > nemAux::flatten | ( | const std::vector< std::vector< T >> & | v | ) |
Definition at line 211 of file AuxiliaryFunctions.H.
Referenced by OrderOfAccuracy::computeMeshWithResolution().
std::multimap< B, A > nemAux::flip_map | ( | const std::map< A, B > & | src | ) |
Definition at line 529 of file AuxiliaryFunctions.H.
Referenced by ReadDegenerateVTKFile().
std::pair< B, A > nemAux::flip_pair | ( | const std::pair< A, B > & | p | ) |
Definition at line 524 of file AuxiliaryFunctions.H.
std::vector< std::vector< T > > nemAux::fold | ( | const std::vector< T > & | v, |
int | dim | ||
) |
Definition at line 223 of file AuxiliaryFunctions.H.
std::vector< T > nemAux::getMeanStdev | ( | const std::vector< T > & | x | ) |
Definition at line 388 of file AuxiliaryFunctions.H.
Referenced by NEM::ADP::SizeFieldBase::mutateValues().
std::vector< T > nemAux::getMinMax | ( | const std::vector< T > & | x | ) |
Definition at line 358 of file AuxiliaryFunctions.H.
Referenced by NEM::ADP::SizeFieldBase::mutateValues().
|
inline |
Definition at line 556 of file AuxiliaryFunctions.H.
Referenced by NEM::MSH::foamGeoMesh::foam2GM(), NEM::MSH::inpGeoMesh::inp2GM(), NEM::MSH::geoMeshBase::reconstructGeo(), NEM::MSH::gmshGeoMesh::resetNative(), and NEM::MSH::vtkGeoMesh::vtk2GM().
std::vector< A > nemAux::getSortedKeys | ( | const std::map< A, B > & | mapObj | ) |
Definition at line 544 of file AuxiliaryFunctions.H.
|
inline |
Definition at line 482 of file AuxiliaryFunctions.H.
std::vector< T > nemAux::hadamard | ( | const std::vector< T > & | x, |
const std::vector< T > & | y | ||
) |
Definition at line 281 of file AuxiliaryFunctions.H.
bool nemAux::hasZero | ( | const std::vector< T > & | x | ) |
Definition at line 350 of file AuxiliaryFunctions.H.
Referenced by NEM::ADP::SizeFieldBase::mutateValues().
bool nemAux::isInBBox | ( | const std::vector< T > & | crd, |
const std::vector< T > & | bb | ||
) |
Definition at line 537 of file AuxiliaryFunctions.H.
Referenced by meshSrch::FindCellsWithinBounds().
T nemAux::l2_Norm | ( | const std::vector< T > & | x | ) |
Definition at line 239 of file AuxiliaryFunctions.H.
Referenced by NEM::ADP::GradSizeField::computeL2GradAtAllCells(), NEM::ADP::ValSizeField::computeL2ValAtAllCells(), FETransfer::transferCellData(), COBALT::cobalt::write(), and PATRAN::patran::write6().
A nemAux::leastUnusedKey | ( | const std::map< A, B > & | map, |
A | min = 1 |
||
) |
Definition at line 569 of file AuxiliaryFunctions.H.
Referenced by NEM::MSH::exoGeoMesh::addElemBlock(), NEM::MSH::exoGeoMesh::addNodeSet(), NEM::MSH::exoGeoMesh::addSideSet(), NEM::MSH::exoGeoMesh::reassignCells(), NEM::MSH::exoGeoMesh::resetElemBlocks(), and NEM::MSH::exoGeoMesh::stitch().
std::vector< T > nemAux::operator* | ( | T | a, |
const std::vector< T > & | x | ||
) |
Definition at line 274 of file AuxiliaryFunctions.H.
std::vector< T > nemAux::operator+ | ( | const std::vector< T > & | x, |
const std::vector< T > & | y | ||
) |
Definition at line 248 of file AuxiliaryFunctions.H.
std::vector< T > nemAux::operator- | ( | const std::vector< T > & | x, |
const std::vector< T > & | y | ||
) |
Definition at line 261 of file AuxiliaryFunctions.H.
void nemAux::printVec | ( | const std::vector< T > & | v | ) |
Definition at line 510 of file AuxiliaryFunctions.H.
Referenced by orthoPoly3D::computeA(), and orthoPoly3D::orthoPoly3D().
T nemAux::reciprocal | ( | T | x | ) |
Definition at line 295 of file AuxiliaryFunctions.H.
void nemAux::reciprocal_vec | ( | std::vector< T > & | x | ) |
Definition at line 345 of file AuxiliaryFunctions.H.
Referenced by NEM::ADP::SizeFieldBase::mutateValues().
T nemAux::scale_to_range | ( | T | x, |
const std::vector< T > & | xminmax, | ||
const std::vector< T > & | yminmax | ||
) |
Definition at line 372 of file AuxiliaryFunctions.H.
Referenced by scale_vec_to_range().
void nemAux::scale_vec_to_range | ( | std::vector< T > & | x, |
const std::vector< T > & | xminmax, | ||
const std::vector< T > & | yminmax | ||
) |
Definition at line 381 of file AuxiliaryFunctions.H.
References scale_to_range().
Referenced by NEM::ADP::SizeFieldBase::mutateValues().
|
inline |
Definition at line 300 of file AuxiliaryFunctions.H.
Referenced by Foam::AMRFoam::readIncomingCellField(), Foam::AMRFoam::readIncomingPtField(), and NEM::GEO::rocPack::rocParser().
|
inline |
Definition at line 308 of file AuxiliaryFunctions.H.
Referenced by NEM::GEO::rocPack::getShapeData(), and NEM::GEO::rocPack::rocParser().
|
inline |
Definition at line 323 of file AuxiliaryFunctions.H.
|
inline |
Definition at line 462 of file AuxiliaryFunctions.H.
Referenced by NEM::MSH::EXOMesh::bcTagNum(), PNTMesh::bcTagNum(), PNTMesh::elmTypeNum(), NEM::MSH::EXOMesh::elmTypeNum(), NEM::DRV::InputGenDriver::execute(), inputGen::pushOrder(), NEM::GEO::rocPack::rocParser(), and inputGen::setOrder().
|
inline |
Definition at line 467 of file AuxiliaryFunctions.H.
|
inline |
Definition at line 440 of file AuxiliaryFunctions.H.
Referenced by MeshQuality::checkMesh(), NEM::GEN::gmshGen::createMeshFromSTEP(), netgenGen::createMeshFromSTL(), NEM::DRV::CFMeshMeshGenDriver::execute(), NEM::DRV::GmshMeshGenDriver::execute(), NEM::DRV::SnappyMeshMeshGenDriver::execute(), NEM::DRV::NetgenMeshGenDriver::execute(), meshBase::exportPntToVtk(), meshBase::exportVolToVtk(), meshStitcher::initSurfCgObj(), meshStitcher::initVolCgObj(), NEM::DRV::MeshGenDriver::MeshGenDriver(), meshBase::partition(), and vtkMesh::write().
bool nemAux::valInVec | ( | const std::vector< T > & | v, |
T | val | ||
) |
Definition at line 517 of file AuxiliaryFunctions.H.