The boundaryRegion persistent data saved as a Map<dictionary>. More...
Public Member Functions | |
boundaryRegion () | |
Construct null. More... | |
boundaryRegion (const objectRegistry &, const word &name="boundaryRegion", const fileName &instance="constant") | |
Construct read from registry, name. instance. More... | |
~boundaryRegion () | |
Destructor. More... | |
label | append (const dictionary &) |
Append to the end, return index. More... | |
label | findIndex (const word &name) const |
Return index corresponding to patch 'name'. More... | |
Map< word > | names () const |
Return a Map of (id => name) More... | |
Map< word > | names (const UList< wordRe > &patterns) const |
Return a Map of (id => names) selected by patterns. More... | |
Map< word > | boundaryTypes () const |
Return a Map of (id => type) More... | |
word | boundaryType (const word &name) const |
Return BoundaryType corresponding to patch 'name'. More... | |
void | readDict (const objectRegistry &, const word &name="boundaryRegion", const fileName &instance="constant") |
Read constant/boundaryRegion. More... | |
void | writeDict (const objectRegistry &, const word &name="boundaryRegion", const fileName &instance="constant") const |
Write constant/boundaryRegion for later reuse. More... | |
void | operator= (const boundaryRegion &) |
Assignment. More... | |
void | operator= (const Map< dictionary > &) |
Assign from Map<dictionary> More... | |
void | rename (const dictionary &) |
Rename regions. More... | |
![]() | |
Map (const label size=128) | |
Construct given initial size. More... | |
Map (Istream &is) | |
Construct from Istream. More... | |
Map (const Map< T > &map) | |
Construct as copy. More... | |
Map (const Xfer< Map< T > > &map) | |
Construct by transferring the parameter contents. More... | |
Map (const Xfer< HashTable< T, label, Hash< label > > > &map) | |
Construct by transferring the parameter contents. More... | |
Private Member Functions | |
boundaryRegion (const boundaryRegion &) | |
Disallow default bitwise copy construct. More... | |
Additional Inherited Members | |
![]() | |
typedef HashTable< T, label, Hash< label > >::iterator | iterator |
typedef HashTable< T, label, Hash< label > >::const_iterator | const_iterator |
The boundaryRegion persistent data saved as a Map<dictionary>.
The meshReader supports boundaryRegion information.
The constant/boundaryRegion
file is an IOMap<dictionary>
that is used to save the information persistently. It contains the boundaryRegion information of the following form:
( INT { BoundaryType WORD; Label WORD; } ... )
Definition at line 70 of file boundaryRegion.H.
|
private |
Disallow default bitwise copy construct.
boundaryRegion | ( | ) |
Construct null.
Definition at line 33 of file boundaryRegion.C.
boundaryRegion | ( | const objectRegistry & | registry, |
const word & | name = "boundaryRegion" , |
||
const fileName & | instance = "constant" |
||
) |
Construct read from registry, name. instance.
Definition at line 40 of file boundaryRegion.C.
References Foam::name().
~boundaryRegion | ( | ) |
Destructor.
Definition at line 54 of file boundaryRegion.C.
Foam::label append | ( | const dictionary & | dict | ) |
Append to the end, return index.
Definition at line 60 of file boundaryRegion.C.
References dict, forAllConstIter(), and insert().
Foam::label findIndex | ( | const word & | name | ) | const |
Return index corresponding to patch 'name'.
returns -1 if not found
Definition at line 139 of file boundaryRegion.C.
References forAllConstIter(), Foam::name(), and word::null.
Foam::Map< Foam::word > names | ( | ) | const |
Return a Map of (id => name)
Definition at line 76 of file boundaryRegion.C.
References forAllConstIter(), lookup(), and Foam::name().
Foam::Map< Foam::word > names | ( | const UList< wordRe > & | patterns | ) | const |
Return a Map of (id => names) selected by patterns.
Definition at line 98 of file boundaryRegion.C.
References Foam::findStrings(), forAllConstIter(), lookup(), and Foam::name().
Foam::Map< Foam::word > boundaryTypes | ( | ) | const |
Return a Map of (id => type)
Definition at line 122 of file boundaryRegion.C.
References forAllConstIter(), and lookup().
Foam::word boundaryType | ( | const word & | name | ) | const |
Return BoundaryType corresponding to patch 'name'.
Definition at line 158 of file boundaryRegion.C.
References Foam::findIndex().
void readDict | ( | const objectRegistry & | registry, |
const word & | name = "boundaryRegion" , |
||
const fileName & | instance = "constant" |
||
) |
Read constant/boundaryRegion.
Definition at line 173 of file boundaryRegion.C.
References clear(), Foam::endl(), IOobject::headerOk(), Foam::Info, Foam::name(), IOobject::NO_WRITE, and IOobject::READ_IF_PRESENT.
void writeDict | ( | const objectRegistry & | registry, |
const word & | name = "boundaryRegion" , |
||
const fileName & | instance = "constant" |
||
) | const |
Write constant/boundaryRegion for later reuse.
Definition at line 207 of file boundaryRegion.C.
References Foam::endl(), Foam::Info, Foam::name(), IOobject::name(), IOobject::NO_READ, IOobject::NO_WRITE, IOobject::note(), IOobject::objectPath(), and IOobject::writeHeader().
void operator= | ( | const boundaryRegion & | rhs | ) |
Assignment.
Definition at line 240 of file boundaryRegion.C.
void operator= | ( | const Map< dictionary > & | rhs | ) |
Assign from Map<dictionary>
Definition at line 246 of file boundaryRegion.C.
void rename | ( | const dictionary & | mapDict | ) |
Rename regions.
each dictionary entry is a single word:
newPatchName originalName;
Definition at line 254 of file boundaryRegion.C.
References dict, Foam::findIndex(), forAllConstIter(), Foam::Info, dictionary::lookup(), Foam::nl, and dictionary::set().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.