Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
genericPatchFieldBase Class Reference

Generic infrastructure for reading/writing unknown patch types. More...

Inheritance diagram for genericPatchFieldBase:
Inheritance graph
[legend]
Collaboration diagram for genericPatchFieldBase:
Collaboration graph
[legend]

Public Member Functions

 genericPatchFieldBase ()=default
 
 genericPatchFieldBase (const genericPatchFieldBase &)=default
 
 genericPatchFieldBase (genericPatchFieldBase &&)=default
 
 genericPatchFieldBase (const dictionary &dict)
 
const wordactualType () const noexcept
 

Protected Member Functions

void genericFatalSolveError (const word &patchName, const IOobject &io) const
 
void reportMissingEntry (const word &entryName, const word &patchName, const IOobject &io) const
 
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
 
void writeGeneric (Ostream &os, const bool separateValue) const
 
template<class MapperType >
void mapGeneric (const genericPatchFieldBase &rhs, const MapperType &mapper)
 
template<class MapperType >
void autoMapGeneric (const MapperType &mapper)
 
void rmapGeneric (const genericPatchFieldBase &rhs, const labelList &addr)
 
 genericPatchFieldBase (const Foam::zero, const genericPatchFieldBase &)
 

Protected Attributes

word actualTypeName_
 
dictionary dict_
 
HashPtrTable< scalarFieldscalarFields_
 
HashPtrTable< vectorFieldvectorFields_
 
HashPtrTable< sphericalTensorFieldsphTensorFields_
 
HashPtrTable< symmTensorFieldsymmTensorFields_
 
HashPtrTable< tensorFieldtensorFields_
 

Detailed Description

Generic infrastructure for reading/writing unknown patch types.

Source files

Definition at line 50 of file genericPatchFieldBase.H.

Constructor & Destructor Documentation

◆ genericPatchFieldBase() [1/5]

genericPatchFieldBase ( const Foam::zero  ,
const genericPatchFieldBase rhs 
)
protected

Definition at line 65 of file genericPatchFieldBase.C.

◆ genericPatchFieldBase() [2/5]

genericPatchFieldBase ( )
default

◆ genericPatchFieldBase() [3/5]

◆ genericPatchFieldBase() [4/5]

◆ genericPatchFieldBase() [5/5]

genericPatchFieldBase ( const dictionary dict)
explicit

Definition at line 55 of file genericPatchFieldBase.C.

Member Function Documentation

◆ genericFatalSolveError()

void genericFatalSolveError ( const word patchName,
const IOobject io 
) const
protected

Definition at line 78 of file genericPatchFieldBase.C.

References Foam::FatalError, IOobject::name(), Foam::nl, and IOobject::objectPath().

Here is the call graph for this function:

◆ reportMissingEntry()

void reportMissingEntry ( const word entryName,
const word patchName,
const IOobject io 
) const
protected

Definition at line 94 of file genericPatchFieldBase.C.

References Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, IOobject::name(), Foam::nl, and IOobject::objectPath().

Here is the call graph for this function:

◆ processGeneric()

void processGeneric ( const label  patchSize,
const word patchName,
const IOobject io,
const bool  separateValue 
)
protected

Definition at line 113 of file genericPatchFieldBase.C.

References Foam::glTF::key().

Here is the call graph for this function:

◆ processEntry()

bool processEntry ( const entry dEntry,
const label  patchSize,
const word patchName,
const IOobject io 
)
protected

◆ putEntry()

void putEntry ( const entry e,
Ostream os 
) const
protected

Definition at line 416 of file genericPatchFieldBase.C.

References Foam::constant::electromagnetic::e, Foam::glTF::key(), and os().

Here is the call graph for this function:

◆ writeGeneric()

void writeGeneric ( Ostream os,
const bool  separateValue 
) const
protected

Definition at line 459 of file genericPatchFieldBase.C.

References Foam::glTF::key(), entry::keyword(), os(), and Ostream::writeEntry().

Here is the call graph for this function:

◆ mapGeneric()

void mapGeneric ( const genericPatchFieldBase rhs,
const MapperType &  mapper 
)
protected

◆ autoMapGeneric()

void autoMapGeneric ( const MapperType &  mapper)
protected

Definition at line 81 of file genericPatchFieldBaseTemplates.C.

References forAllIters.

◆ rmapGeneric()

void rmapGeneric ( const genericPatchFieldBase rhs,
const labelList addr 
)
protected

◆ actualType()

const word& actualType ( ) const
inlinenoexcept

Definition at line 168 of file genericPatchFieldBase.H.

References genericPatchFieldBase::actualTypeName_.

Member Data Documentation

◆ actualTypeName_

word actualTypeName_
protected

Definition at line 69 of file genericPatchFieldBase.H.

Referenced by genericPatchFieldBase::actualType().

◆ dict_

dictionary dict_
protected

Definition at line 71 of file genericPatchFieldBase.H.

◆ scalarFields_

HashPtrTable<scalarField> scalarFields_
protected

◆ vectorFields_

HashPtrTable<vectorField> vectorFields_
protected

◆ sphTensorFields_

HashPtrTable<sphericalTensorField> sphTensorFields_
protected

◆ symmTensorFields_

HashPtrTable<symmTensorField> symmTensorFields_
protected

◆ tensorFields_

HashPtrTable<tensorField> tensorFields_
protected

The documentation for this class was generated from the following files: