All refinement history. Used in unrefinement. More...
Classes | |
class | splitCell8 |
Public Member Functions | |
TypeName ("refinementHistory") | |
refinementHistory (const IOobject &) | |
refinementHistory (const IOobject &, const List< splitCell8 > &splitCells, const labelList &visibleCells, const bool active) | |
refinementHistory (const IOobject &, const label nCells) | |
refinementHistory (const IOobject &, const label nCells, const bool active) | |
refinementHistory (const IOobject &, const refinementHistory &) | |
refinementHistory (const IOobject &, const UPtrList< const labelList > &cellMaps, const UPtrList< const refinementHistory > &) | |
refinementHistory (const IOobject &, Istream &) | |
const labelList & | visibleCells () const |
const DynamicList< splitCell8 > & | splitCells () const |
const DynamicList< label > & | freeSplitCells () const |
bool | active () const |
bool & | active () |
label | parentIndex (const label celli) const |
void | storeSplit (const label celli, const labelList &addedCells) |
void | combineCells (const label masterCelli, const labelList &combinedCells) |
autoPtr< refinementHistory > | clone (const IOobject &io, const labelList &decomposition, const labelList &splitCellProc, const labelList &splitCellNum, const label procI, labelList &oldToNewSplit) const |
autoPtr< refinementHistory > | clone (const IOobject &io, const labelList &cellMap) const |
void | updateMesh (const mapPolyMesh &) |
void | subset (const labelList &pointMap, const labelList &faceMap, const labelList &cellMap) |
void | distribute (const mapDistributePolyMesh &) |
void | compact () |
void | resize (const label nCells) |
void | writeDebug () const |
virtual bool | read () |
virtual bool | readData (Istream &) |
virtual bool | writeData (Ostream &) const |
void | add (boolList &blockedFace, PtrList< labelList > &specifiedProcessorFaces, labelList &specifiedProcessor, List< labelPair > &explicitConnections) const |
void | apply (const boolList &blockedFace, const PtrList< labelList > &specifiedProcessorFaces, const labelList &specifiedProcessor, const List< labelPair > &explicitConnections, labelList &decomposition) const |
![]() | |
TypeName ("regIOobject") | |
regIOobject (const IOobject &io, const bool isTimeObject=false) | |
regIOobject (const regIOobject &rio) | |
regIOobject (const regIOobject &rio, bool registerCopy) | |
regIOobject (const word &newName, const regIOobject &, bool registerCopy) | |
regIOobject (const IOobject &io, const regIOobject &rio) | |
virtual | ~regIOobject () |
bool | checkIn () |
bool | checkOut () |
virtual void | addWatch () |
bool | ownedByRegistry () const |
bool | store () |
void | release (const bool unregister=false) |
label | eventNo () const |
label & | eventNo () |
bool | upToDate (const regIOobject &) const |
bool | upToDate (const regIOobject &, const regIOobject &) const |
bool | upToDate (const regIOobject &, const regIOobject &, const regIOobject &) const |
bool | upToDate (const regIOobject &, const regIOobject &, const regIOobject &, const regIOobject &) const |
void | setUpToDate () |
virtual void | rename (const word &newName) |
const dictionary * | findMetaData () const noexcept |
dictionary & | getMetaData () noexcept |
void | removeMetaData () |
virtual void | updateMetaData () |
virtual fileName | filePath () const |
bool | headerOk () |
Istream & | readStream (const word &, const bool valid=true) |
void | close () |
virtual label | addWatch (const fileName &) |
const labelList & | watchIndices () const |
labelList & | watchIndices () |
virtual bool | modified () const |
virtual bool | readIfModified () |
virtual bool | writeObject (IOstreamOption streamOpt, const bool valid) const |
virtual bool | write (const bool valid=true) const |
virtual bool | global () const |
void | operator= (const IOobject &io) |
virtual bool | writeObject (IOstreamOption::streamFormat fmt, IOstreamOption::versionNumber ver, IOstreamOption::compressionType comp, const bool valid) const |
![]() | |
TypeName ("IOobject") | |
IOobject (const IOobject &)=default | |
virtual | ~IOobject ()=default |
IOobject (const word &name, const fileName &instance, const objectRegistry ®istry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true, bool globalObject=false) | |
IOobject (const word &name, const fileName &instance, const fileName &local, const objectRegistry ®istry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true, bool globalObject=false) | |
IOobject (const fileName &path, const objectRegistry ®istry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true, bool globalObject=false) | |
IOobject (const IOobject &io, const objectRegistry ®istry) | |
IOobject (const IOobject &io, const word &name) | |
IOobject (const IOobject &io, readOption, writeOption) | |
autoPtr< IOobject > | clone () const |
autoPtr< IOobject > | clone (const objectRegistry ®istry) const |
const objectRegistry & | db () const noexcept |
const Time & | time () const |
const word & | name () const noexcept |
const word & | headerClassName () const noexcept |
word & | headerClassName () noexcept |
const string & | note () const noexcept |
string & | note () noexcept |
bool | registerObject () const noexcept |
bool | registerObject (bool on) noexcept |
bool | globalObject () const noexcept |
bool | globalObject (bool on) noexcept |
unsigned | labelByteSize () const noexcept |
unsigned | scalarByteSize () const noexcept |
bool | isHeaderClassName (const word &clsName) const |
template<class Type > | |
bool | isHeaderClassName () const |
readOption | readOpt () const noexcept |
readOption | readOpt (readOption opt) noexcept |
writeOption | writeOpt () const noexcept |
writeOption | writeOpt (writeOption opt) noexcept |
word | group () const |
word | member () const |
const fileName & | rootPath () const |
const fileName & | caseName () const |
const fileName & | instance () const noexcept |
fileName & | instance () noexcept |
const fileName & | local () const noexcept |
fileName | path () const |
fileName | path (const word &instance, const fileName &local=fileName::null) const |
fileName | objectPath () const |
fileName | objectRelPath () const |
fileName | localFilePath (const word &typeName, const bool search=true) const |
fileName | globalFilePath (const word &typeName, const bool search=true) const |
IOstreamOption | parseHeader (const dictionary &headerDict) |
bool | readHeader (Istream &is) |
bool | readHeader (dictionary &headerDict, Istream &is) |
template<class Type > | |
bool | typeHeaderOk (const bool checkType=true, const bool search=true, const bool verbose=true) |
template<class Type > | |
void | warnNoRereading () const |
bool | writeHeader (Ostream &os) const |
bool | writeHeader (Ostream &os, const word &objectType) const |
void | writeHeader (dictionary &dict, IOstreamOption streamOpt) const |
void | writeHeader (dictionary &dict, const word &objectType, IOstreamOption streamOpt) const |
bool | good () const noexcept |
bool | bad () const noexcept |
InfoProxy< IOobject > | info () const |
void | operator= (const IOobject &io) |
readOption & | readOpt () noexcept |
writeOption & | writeOpt () noexcept |
bool & | registerObject () noexcept |
bool & | globalObject () noexcept |
template<> | |
bool | isHeaderClassName () const |
template<class StringType > | |
Foam::word | groupName (StringType base, const word &group) |
Static Public Member Functions | |
static void | removeFiles (const polyMesh &) |
![]() | |
template<class Type > | |
static Type & | store (Type *p) |
template<class Type > | |
static Type & | store (autoPtr< Type > &ptr) |
template<class Type > | |
static Type & | store (autoPtr< Type > &&ptr) |
template<class Type > | |
static Type & | store (refPtr< Type > &ptr) |
template<class Type > | |
static Type & | store (refPtr< Type > &&ptr) |
template<class Type > | |
static Type & | store (tmp< Type > &ptr) |
template<class Type > | |
static Type & | store (tmp< Type > &&ptr) |
![]() | |
static bool | bannerEnabled () noexcept |
static bool | bannerEnabled (bool on) noexcept |
static bool | fileNameComponents (const fileName &path, fileName &instance, fileName &local, word &name) |
template<class StringType > | |
static word | groupName (StringType base, const word &group) |
static word | group (const word &name) |
static word | member (const word &name) |
static word | scopedName (const std::string &scope, const word &name) |
static IOobject | selectIO (const IOobject &io, const fileName &altFile, const word &ioName="") |
static Ostream & | writeBanner (Ostream &os, const bool noSyntaxHint=false) |
static Ostream & | writeDivider (Ostream &os) |
static Ostream & | writeEndDivider (Ostream &os) |
Friends | |
Istream & | operator>> (Istream &, refinementHistory &) |
Ostream & | operator<< (Ostream &, const refinementHistory &) |
Additional Inherited Members | |
![]() | |
enum | objectState : char { GOOD, BAD } |
enum | readOption : char { MUST_READ, MUST_READ_IF_MODIFIED, READ_IF_PRESENT, NO_READ } |
enum | writeOption : char { AUTO_WRITE = 0, NO_WRITE = 1 } |
enum | fileCheckTypes : char { timeStamp, timeStampMaster, inotify, inotifyMaster } |
![]() | |
static const Enum< fileCheckTypes > | fileCheckTypesNames |
static char | scopeSeparator |
static fileCheckTypes | fileModificationChecking |
static float | fileModificationSkew |
static int | maxFileModificationPolls |
![]() | |
bool | readHeaderOk (const IOstreamOption::streamFormat fmt, const word &typeName) |
![]() | |
void | setBad (const string &s) |
![]() | |
static void | writeHeaderContent (Ostream &os, const IOobject &io, const word &objectType, const dictionary *metaDataDict=nullptr) |
static void | writeHeaderContent (dictionary &dict, const IOobject &io, const word &objectType, IOstreamOption streamOpt, const dictionary *metaDataDict=nullptr) |
![]() | |
static bool | masterOnlyReading = false |
All refinement history. Used in unrefinement.
E.g. 2 cells, cell 1 gets refined so end up with 9 cells:
// splitCells 9 ( -1 (1 2 3 4 5 6 7 8) 0 0() 0 0() 0 0() 0 0() 0 0() 0 0() 0 0() 0 0() ) // visibleCells 9(-1 1 2 3 4 5 6 7 8)
So cell0 (visibleCells=-1) is unrefined. Cells 1-8 have all valid splitCells entries which are:
The parent 0 refers back to the splitcell entries.
Definition at line 98 of file refinementHistory.H.
|
explicit |
Definition at line 542 of file refinementHistory.C.
References regIOobject::close(), Foam::expressions::patchExpr::debug, Foam::endl(), regIOobject::headerOk(), IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED, Foam::Pout, IOobject::READ_IF_PRESENT, IOobject::readOpt(), regIOobject::readStream(), and Foam::returnReduce().
refinementHistory | ( | const IOobject & | io, |
const List< splitCell8 > & | splitCells, | ||
const labelList & | visibleCells, | ||
const bool | active | ||
) |
Definition at line 579 of file refinementHistory.C.
References Foam::expressions::patchExpr::debug, Foam::endl(), IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED, Foam::Pout, IOobject::READ_IF_PRESENT, and IOobject::readOpt().
refinementHistory | ( | const IOobject & | io, |
const label | nCells | ||
) |
Definition at line 622 of file refinementHistory.C.
References Foam::expressions::patchExpr::debug, Foam::endl(), IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED, Foam::Pout, IOobject::READ_IF_PRESENT, IOobject::readOpt(), and Foam::returnReduce().
refinementHistory | ( | const IOobject & | io, |
const label | nCells, | ||
const bool | active | ||
) |
Definition at line 676 of file refinementHistory.C.
References Foam::expressions::patchExpr::debug, Foam::endl(), IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED, Foam::Pout, IOobject::READ_IF_PRESENT, and IOobject::readOpt().
refinementHistory | ( | const IOobject & | io, |
const refinementHistory & | rh | ||
) |
Definition at line 727 of file refinementHistory.C.
References Foam::expressions::patchExpr::debug, Foam::endl(), and Foam::Pout.
refinementHistory | ( | const IOobject & | io, |
const UPtrList< const labelList > & | cellMaps, | ||
const UPtrList< const refinementHistory > & | refs | ||
) |
Definition at line 747 of file refinementHistory.C.
References refinementHistory::splitCell8::addedCellsPtr_, Foam::expressions::patchExpr::debug, Foam::endl(), forAll, mesh, IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED, primitiveMesh::nCells(), refinementHistory::splitCell8::parent_, Foam::Pout, IOobject::READ_IF_PRESENT, IOobject::readOpt(), DynamicList::setSize(), FixedList::setSize(), UPtrList::size(), and WarningInFunction.
|
explicit |
Definition at line 862 of file refinementHistory.C.
References Foam::expressions::patchExpr::debug, Foam::endl(), Foam::Pout, and Foam::returnReduce().
TypeName | ( | "refinementHistory" | ) |
|
inline |
Definition at line 264 of file refinementHistory.H.
Referenced by hexRef8::hexRef8().
|
inline |
Definition at line 270 of file refinementHistory.H.
|
inline |
Definition at line 276 of file refinementHistory.H.
|
inline |
Definition at line 282 of file refinementHistory.H.
Referenced by hexRef8::hexRef8().
|
inline |
Definition at line 288 of file refinementHistory.H.
|
inline |
Definition at line 294 of file refinementHistory.H.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.
void storeSplit | ( | const label | celli, |
const labelList & | addedCells | ||
) |
Definition at line 1633 of file refinementHistory.C.
References forAll.
void combineCells | ( | const label | masterCelli, |
const labelList & | combinedCells | ||
) |
Definition at line 1671 of file refinementHistory.C.
References refinementHistory::splitCell8::addedCellsPtr_, and forAll.
Foam::autoPtr< Foam::refinementHistory > clone | ( | const IOobject & | io, |
const labelList & | decomposition, | ||
const labelList & | splitCellProc, | ||
const labelList & | splitCellNum, | ||
const label | procI, | ||
labelList & | oldToNewSplit | ||
) | const |
Definition at line 888 of file refinementHistory.C.
References DynamicList::append(), forAll, List::setSize(), DynamicList::shrink(), and split().
Foam::autoPtr< Foam::refinementHistory > clone | ( | const IOobject & | io, |
const labelList & | cellMap | ||
) | const |
Definition at line 1009 of file refinementHistory.C.
References forAll, and Foam::Zero.
void updateMesh | ( | const mapPolyMesh & | map | ) |
Definition at line 1093 of file refinementHistory.C.
References Foam::abort(), mapPolyMesh::cellMap(), Foam::expressions::patchExpr::debug, Foam::endl(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::Pout, and mapPolyMesh::reverseCellMap().
Definition at line 1139 of file refinementHistory.C.
References Foam::abort(), Foam::expressions::patchExpr::debug, Foam::endl(), Foam::FatalError, FatalErrorInFunction, forAll, and Foam::Pout.
void distribute | ( | const mapDistributePolyMesh & | map | ) |
Definition at line 1220 of file refinementHistory.C.
References Foam::abort(), UPstream::allProcs(), DynamicList::append(), UPstream::blocking, mapDistributePolyMesh::cellMap(), List::clear(), mapDistributeBase::constructMap(), Foam::FatalError, FatalErrorInFunction, forAll, mesh, primitiveMesh::nCells(), UPstream::parRun(), DynamicList::shrink(), split(), mapDistributeBase::subMap(), and Foam::Zero.
void compact | ( | ) |
Definition at line 1470 of file refinementHistory.C.
References Foam::abort(), Foam::expressions::patchExpr::debug, Foam::endl(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::Pout, and split().
void resize | ( | const label | nCells | ) |
Definition at line 1073 of file refinementHistory.C.
References Foam::expressions::patchExpr::debug, Foam::endl(), and Foam::Pout.
void writeDebug | ( | ) | const |
Definition at line 1626 of file refinementHistory.C.
|
virtual |
Reimplemented from regIOobject.
Definition at line 1694 of file refinementHistory.C.
References Foam::returnReduce().
Referenced by hexRef8::hexRef8().
Reimplemented from regIOobject.
Definition at line 1705 of file refinementHistory.C.
References IOstream::bad().
Implements regIOobject.
Definition at line 1712 of file refinementHistory.C.
References IOstream::good(), and os().
void add | ( | boolList & | blockedFace, |
PtrList< labelList > & | specifiedProcessorFaces, | ||
labelList & | specifiedProcessor, | ||
List< labelPair > & | explicitConnections | ||
) | const |
Definition at line 436 of file refinementHistory.C.
References IOobject::db(), Foam::expressions::patchExpr::debug, Foam::endl(), forAll, Foam::Info, mesh, Foam::reduce(), List::setSize(), syncTools::syncFaceList(), and Foam::type().
void apply | ( | const boolList & | blockedFace, |
const PtrList< labelList > & | specifiedProcessorFaces, | ||
const labelList & | specifiedProcessor, | ||
const List< labelPair > & | explicitConnections, | ||
labelList & | decomposition | ||
) | const |
Definition at line 482 of file refinementHistory.C.
References IOobject::db(), Foam::expressions::patchExpr::debug, Foam::endl(), forAll, Foam::Info, mesh, Foam::reduce(), and Foam::type().
|
static |
Definition at line 1720 of file refinementHistory.C.
References Foam::expressions::patchExpr::debug, DebugVar, Foam::exists(), polyMesh::facesInstance(), mesh, polyMesh::meshSubDir, IOobject::path(), and Foam::rm().
Referenced by hexRef8::removeFiles(), and hexRef8::write().
|
friend |
|
friend |
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.