Enumerations | Functions
setSet.C File Reference
Include dependency graph for setSet.C:

Go to the source code of this file.

Enumerations

enum  commandStatus {
  QUIT, INVALID, VALIDSETCMD, VALIDZONECMD,
  QUIT, INVALID, VALIDSETCMD, VALIDZONECMD
}
 

Functions

void writeVTK (const polyMesh &mesh, const topoSet &currentSet, const fileName &vtkName)
 
void printHelp (Ostream &os)
 
void printAllSets (const polyMesh &mesh, Ostream &os)
 
template<class ZoneType >
void removeZone (ZoneMesh< ZoneType, polyMesh > &zones, const word &setName)
 
void removeSet (const polyMesh &mesh, const word &setType, const word &setName)
 
bool doCommand (const polyMesh &mesh, const word &setType, const word &setName, const word &actionName, const bool writeVTKFile, const bool writeCurrentTime, const bool noSync, Istream &is)
 
void printMesh (const Time &runTime, const polyMesh &mesh)
 
polyMesh::readUpdateState meshReadUpdate (polyMesh &mesh)
 
commandStatus parseType (Time &runTime, polyMesh &mesh, const word &setType, IStringStream &is)
 
commandStatus parseAction (const word &actionName)
 
std::string replaceChar (std::string &SourceString, const std::string &strsrc, const std::string &strdst)
 
int main (int argc, char *argv[])
 

Enumeration Type Documentation

◆ commandStatus

Enumerator
QUIT 
INVALID 
VALIDSETCMD 
VALIDZONECMD 
QUIT 
INVALID 
VALIDSETCMD 
VALIDZONECMD 

Definition at line 636 of file setSet.C.

Function Documentation

◆ writeVTK()

void writeVTK ( const polyMesh mesh,
const topoSet currentSet,
const fileName vtkName 
)

◆ printHelp()

void printHelp ( Ostream os)

Definition at line 184 of file setSet.C.

References Foam::endl().

Referenced by parseType().

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

◆ printAllSets()

void printAllSets ( const polyMesh mesh,
Ostream os 
)

◆ removeZone()

void removeZone ( ZoneMesh< ZoneType, polyMesh > &  zones,
const word setName 
)

Definition at line 325 of file setSet.C.

References ZoneMesh::clearAddressing(), Foam::endl(), ZoneMesh::findZoneID(), forAll, and Foam::Info.

Referenced by removeSet().

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

◆ removeSet()

void removeSet ( const polyMesh mesh,
const word setType,
const word setName 
)

Definition at line 357 of file setSet.C.

References polyMesh::cellZones(), Foam::endl(), polyMesh::facesInstance(), polyMesh::faceZones(), Time::findInstance(), Foam::Info, mesh, polyMesh::meshSubDir, word::null, polyMesh::pointZones(), IOobject::READ_IF_PRESENT, removeZone(), Foam::rm(), and fvMesh::time().

Referenced by doCommand().

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

◆ doCommand()

bool doCommand ( const polyMesh mesh,
const word setType,
const word setName,
const word actionName,
const bool  writeVTKFile,
const bool  writeCurrentTime,
const bool  noSync,
Istream is 
)

◆ printMesh()

void printMesh ( const Time runTime,
const polyMesh mesh 
)

Definition at line 645 of file setSet.C.

References polyMesh::boundaryMesh(), polyMesh::bounds(), polyMesh::globalData(), Foam::Info, mesh, Foam::nl, globalMeshData::nTotalCells(), globalMeshData::nTotalFaces(), globalMeshData::nTotalPoints(), PtrList::size(), and Time::timeName().

Referenced by main(), and meshReadUpdate().

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

◆ meshReadUpdate()

polyMesh::readUpdateState meshReadUpdate ( polyMesh mesh)

Definition at line 656 of file setSet.C.

References Foam::abort(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, Foam::Info, mesh, Foam::nl, polyMesh::POINTS_MOVED, printMesh(), fvMesh::readUpdate(), fvMesh::time(), polyMesh::TOPO_CHANGE, polyMesh::TOPO_PATCH_CHANGE, and polyMesh::UNCHANGED.

Referenced by main(), and parseType().

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

◆ parseType()

commandStatus parseType ( Time runTime,
polyMesh mesh,
const word setType,
IStringStream is 
)

Definition at line 700 of file setSet.C.

References Foam::endl(), Time::findClosestTimeIndex(), Foam::Info, INVALID, mesh, meshReadUpdate(), printAllSets(), printHelp(), QUIT, Foam::readScalar(), SeriousErrorInFunction, Time::setTime(), Time::timeName(), Time::times(), VALIDSETCMD, and VALIDZONECMD.

Referenced by main().

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

◆ parseAction()

commandStatus parseAction ( const word actionName)

Definition at line 780 of file setSet.C.

References INVALID, topoSetSource::toAction(), and VALIDSETCMD.

Referenced by main().

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

◆ replaceChar()

std::string replaceChar ( std::string &  SourceString,
const std::string &  strsrc,
const std::string &  strdst 
)

Definition at line 806 of file setSet.C.

References Foam::pos().

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[] 
)