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 ¤tSet, 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[]) |
enum commandStatus |
Definition at line 72 of file setSet.C.
References primitiveMesh::cells(), Foam::endl(), polyMesh::faceNeighbour(), polyMesh::faceOwner(), polyMesh::faces(), forAll, forAllConstIter(), HashTable::found(), primitiveMesh::isInternalFace(), mesh, IOobject::name(), Time::path(), polyMesh::points(), HashTable::size(), fvMesh::time(), WarningInFunction, Foam::writePatch(), and Foam::writePointSet().
void printHelp | ( | Ostream & | os | ) |
Definition at line 184 of file setSet.C.
References Foam::endl().
Referenced by parseType().
Definition at line 243 of file setSet.C.
References polyMesh::cellZones(), Foam::endl(), polyMesh::facesInstance(), polyMesh::faceZones(), Time::findInstance(), forAll, forAllConstIter(), IOobjectList::lookupClass(), mesh, polyMesh::meshSubDir, zone::name(), IOobject::name(), word::null, polyMesh::pointZones(), IOobject::READ_IF_PRESENT, List::size(), HashTable::size(), and fvMesh::time().
Referenced by main(), and parseType().
Definition at line 325 of file setSet.C.
References ZoneMesh::clearAddressing(), Foam::endl(), ZoneMesh::findZoneID(), forAll, and Foam::Info.
Referenced by removeSet().
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().
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 | ||
) |
Definition at line 415 of file setSet.C.
References topoSetSource::CLEAR, HashTable::clear(), Foam::endl(), polyMesh::globalData(), Foam::Info, IOobject::instance(), topoSetSource::INVERT, topoSet::invert(), topoSetSource::LIST, IOobject::local(), Foam::max(), topoSet::maxSize(), mesh, error::message(), Foam::mkDir(), IOobject::MUST_READ, Foam::name(), IOobject::name(), topoSetSource::NEW, topoSet::New(), topoSetSource::New(), IOobject::NO_READ, UPstream::nProcs(), globalMeshData::nTotalCells(), globalMeshData::nTotalFaces(), globalMeshData::nTotalPoints(), Time::path(), Foam::Pout, topoSetSource::REMOVE, removeSet(), HashTable::resize(), Foam::returnReduce(), HashTable::size(), topoSetSource::SUBSET, topoSet::subset(), topoSet::sync(), fvMesh::time(), TimeState::timeIndex(), Time::timeName(), topoSetSource::toAction(), topoSetSource::usage(), autoPtr::valid(), regIOobject::write(), topoSet::writeDebug(), and Foam::writeVTK().
Referenced by main().
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().
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().
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().
commandStatus parseAction | ( | const word & | actionName | ) |
Definition at line 780 of file setSet.C.
References INVALID, topoSetSource::toAction(), and VALIDSETCMD.
Referenced by main().
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().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 824 of file setSet.C.
References argList::addBoolOption(), argList::addOption(), timeSelector::addOptions(), args, doCommand(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::FatalIOError, Foam::flush(), forAll, Foam::Info, INVALID, mesh, meshReadUpdate(), argList::optionFound(), parseAction(), parseType(), Time::path(), printAllSets(), printMesh(), QUIT, replaceChar(), timeSelector::select0(), Time::setTime(), error::throwExceptions(), timeDirs, Time::timeName(), VALIDSETCMD, VALIDZONECMD, and Foam::writeVTK().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.