Manipulate a cell/face/point/ set or zone interactively. More...
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) |
int | main (int argc, char *argv[]) |
Manipulate a cell/face/point/ set or zone interactively.
Original source file setSet.C
Definition in file setSet.C.
enum commandStatus |
Definition at line 69 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 181 of file setSet.C.
References Foam::endl().
Definition at line 240 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().
Definition at line 322 of file setSet.C.
References ZoneMesh::clearAddressing(), Foam::endl(), ZoneMesh::findZoneID(), forAll, and Foam::Info.
Definition at line 354 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().
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 412 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().
Definition at line 642 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().
polyMesh::readUpdateState meshReadUpdate | ( | polyMesh & | mesh | ) |
Definition at line 653 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.
commandStatus parseType | ( | Time & | runTime, |
polyMesh & | mesh, | ||
const word & | setType, | ||
IStringStream & | is | ||
) |
Definition at line 697 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.
commandStatus parseAction | ( | const word & | actionName | ) |
Definition at line 777 of file setSet.C.
References INVALID, topoSetSource::toAction(), and VALIDSETCMD.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 803 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, Foam::isFile(), mesh, meshReadUpdate(), argList::optionFound(), parseAction(), parseType(), Time::path(), printAllSets(), printMesh(), QUIT, autoPtr::reset(), timeSelector::select0(), Time::setTime(), error::throwExceptions(), timeDirs, Time::timeName(), autoPtr::valid(), VALIDSETCMD, VALIDZONECMD, and Foam::writeVTK().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.