Namespaces | Functions
createPatch.C File Reference
Include dependency graph for createPatch.C:

Go to the source code of this file.

Namespaces

 Foam
 Namespace for OpenFOAM.
 

Functions

 defineTemplateTypeNameAndDebug (IOPtrList< dictionary >, 0)
 
void changePatchID (const polyMesh &mesh, const label faceID, const label patchID, polyTopoChange &meshMod)
 
void filterPatches (polyMesh &mesh, const HashSet< word > &addedPatchNames)
 
void dumpCyclicMatch (const fileName &prefix, const polyMesh &mesh)
 
void separateList (const vectorField &separation, UList< vector > &field)
 
template<class CombineOp >
void syncPoints (const polyMesh &mesh, pointField &points, const CombineOp &cop, const point &nullValue)
 
std::string trim (std::string s)
 
std::vector< std::string > splitstring (std::string SourceString, std::string strSplit=" ", int nSkip=0)
 
int main (int argc, char *argv[])
 

Function Documentation

◆ changePatchID()

void changePatchID ( const polyMesh mesh,
const label  faceID,
const label  patchID,
polyTopoChange meshMod 
)

Definition at line 63 of file createPatch.C.

References polyMesh::faceOwner(), polyMesh::faces(), polyMesh::faceZones(), faceZone::flipMap(), mesh, polyTopoChange::setAction(), faceZone::whichFace(), and ZoneMesh::whichZone().

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ filterPatches()

void filterPatches ( polyMesh mesh,
const HashSet< word > &  addedPatchNames 
)

◆ dumpCyclicMatch()

void dumpCyclicMatch ( const fileName prefix,
const polyMesh mesh 
)

◆ separateList()

void separateList ( const vectorField separation,
UList< vector > &  field 
)

Definition at line 264 of file createPatch.C.

References Foam::abort(), Foam::FatalError, FatalErrorInFunction, forAll, and UList::size().

Referenced by syncPoints().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ syncPoints()

void syncPoints ( const polyMesh mesh,
pointField points,
const CombineOp &  cop,
const point nullValue 
)

◆ trim()

std::string trim ( std::string  s)

Definition at line 508 of file createPatch.C.

References s().

Referenced by splitstring().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ splitstring()

std::vector<std::string> splitstring ( std::string  SourceString,
std::string  strSplit = " ",
int  nSkip = 0 
)

Definition at line 523 of file createPatch.C.

References trim().

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ main()

int main ( int  argc,
char *  argv[] 
)