Generic infrastructure for reading/writing unknown patch types. More...
Public Member Functions | |
genericPatchFieldBase ()=default | |
Default construct, generally not useful. More... | |
genericPatchFieldBase (const genericPatchFieldBase &)=default | |
Copy construct. More... | |
genericPatchFieldBase (genericPatchFieldBase &&)=default | |
Move construct. More... | |
genericPatchFieldBase (const dictionary &dict) | |
Initialize from dictionary. More... | |
const word & | actualType () const noexcept |
The actual patch type. More... | |
Protected Member Functions | |
void | genericFatalSolveError (const word &patchName, const IOobject &io) const |
void | reportMissingEntry (const word &entryName, const word &patchName, const IOobject &io) const |
FatalError for missing entry. More... | |
void | processGeneric (const label patchSize, const word &patchName, const IOobject &io, const bool separateValue) |
bool | processEntry (const entry &dEntry, const label patchSize, const word &patchName, const IOobject &io) |
void | putEntry (const entry &e, Ostream &os) const |
Write a single entry, with lookup of hashed values. More... | |
void | writeGeneric (Ostream &os, const bool separateValue) const |
template<class MapperType > | |
void | mapGeneric (const genericPatchFieldBase &rhs, const MapperType &mapper) |
Implementation for construct with mapper. More... | |
template<class MapperType > | |
void | autoMapGeneric (const MapperType &mapper) |
Implementation for autoMap of self given a mapping object. More... | |
void | rmapGeneric (const genericPatchFieldBase &rhs, const labelList &addr) |
genericPatchFieldBase (const Foam::zero, const genericPatchFieldBase &) | |
Partial copy construct. Only copy type and dictionary. More... | |
Protected Attributes | |
word | actualTypeName_ |
The non-generic patch name. More... | |
dictionary | dict_ |
HashPtrTable< scalarField > | scalarFields_ |
HashPtrTable< vectorField > | vectorFields_ |
HashPtrTable< sphericalTensorField > | sphTensorFields_ |
HashPtrTable< symmTensorField > | symmTensorFields_ |
HashPtrTable< tensorField > | tensorFields_ |
Generic infrastructure for reading/writing unknown patch types.
Definition at line 54 of file genericPatchFieldBase.H.
|
protected |
Partial copy construct. Only copy type and dictionary.
Definition at line 72 of file genericPatchFieldBase.C.
|
default |
Default construct, generally not useful.
|
default |
Copy construct.
|
default |
Move construct.
|
explicit |
Initialize from dictionary.
Definition at line 62 of file genericPatchFieldBase.C.
Add error message to FatalError about solving with generic condition
Definition at line 85 of file genericPatchFieldBase.C.
References Foam::FatalError, IOobject::name(), Foam::nl, and IOobject::objectPath().
|
protected |
FatalError for missing entry.
Definition at line 101 of file genericPatchFieldBase.C.
References Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, IOobject::name(), Foam::nl, and IOobject::objectPath().
|
protected |
Definition at line 120 of file genericPatchFieldBase.C.
References Foam::glTF::key().
|
protected |
Definition at line 144 of file genericPatchFieldBase.C.
References Foam::dynamicCast(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, FIELDSIZE_CHECK, Foam::flatOutput(), entry::isStream(), token::isWord(), Foam::glTF::key(), entry::keyword(), IOobject::name(), VectorSpace< SphericalTensor< scalar >, scalar, 1 >::nComponents, VectorSpace< Vector< scalar >, scalar, 3 >::nComponents, VectorSpace< SymmTensor< scalar >, scalar, 6 >::nComponents, autoPtr< T >::New(), Foam::nl, IOobject::objectPath(), Istream::putBack(), and entry::stream().
Write a single entry, with lookup of hashed values.
Definition at line 423 of file genericPatchFieldBase.C.
References Foam::constant::electromagnetic::e, Foam::glTF::key(), and os().
Write all generic entries from dictionary, optionally treating the "value" entry separately
Definition at line 466 of file genericPatchFieldBase.C.
References Foam::glTF::key(), entry::keyword(), os(), and Ostream::writeEntry().
|
protected |
Implementation for construct with mapper.
Definition at line 34 of file genericPatchFieldBaseTemplates.C.
References forAllConstIters(), Foam::New(), genericPatchFieldBase::scalarFields_, genericPatchFieldBase::sphTensorFields_, genericPatchFieldBase::symmTensorFields_, genericPatchFieldBase::tensorFields_, and genericPatchFieldBase::vectorFields_.
|
protected |
Implementation for autoMap of self given a mapping object.
Definition at line 88 of file genericPatchFieldBaseTemplates.C.
References forAllIters.
|
protected |
Implementation for reverse map given patch field onto this patch field
Definition at line 490 of file genericPatchFieldBase.C.
References forAllIters, genericPatchFieldBase::scalarFields_, genericPatchFieldBase::sphTensorFields_, genericPatchFieldBase::symmTensorFields_, genericPatchFieldBase::tensorFields_, and genericPatchFieldBase::vectorFields_.
|
inlinenoexcept |
The actual patch type.
Definition at line 172 of file genericPatchFieldBase.H.
References genericPatchFieldBase::actualTypeName_.
|
protected |
The non-generic patch name.
Definition at line 73 of file genericPatchFieldBase.H.
Referenced by genericPatchFieldBase::actualType().
|
protected |
Definition at line 75 of file genericPatchFieldBase.H.
|
protected |
Definition at line 77 of file genericPatchFieldBase.H.
Referenced by genericPatchFieldBase::mapGeneric(), and genericPatchFieldBase::rmapGeneric().
|
protected |
Definition at line 78 of file genericPatchFieldBase.H.
Referenced by genericPatchFieldBase::mapGeneric(), and genericPatchFieldBase::rmapGeneric().
|
protected |
Definition at line 79 of file genericPatchFieldBase.H.
Referenced by genericPatchFieldBase::mapGeneric(), and genericPatchFieldBase::rmapGeneric().
|
protected |
Definition at line 80 of file genericPatchFieldBase.H.
Referenced by genericPatchFieldBase::mapGeneric(), and genericPatchFieldBase::rmapGeneric().
|
protected |
Definition at line 81 of file genericPatchFieldBase.H.
Referenced by genericPatchFieldBase::mapGeneric(), and genericPatchFieldBase::rmapGeneric().