genericPatchFieldBase Class Reference

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

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

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 wordactualType () 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< scalarFieldscalarFields_
 
HashPtrTable< vectorFieldvectorFields_
 
HashPtrTable< sphericalTensorFieldsphTensorFields_
 
HashPtrTable< symmTensorFieldsymmTensorFields_
 
HashPtrTable< tensorFieldtensorFields_
 

Detailed Description

Generic infrastructure for reading/writing unknown patch types.

Source files

Definition at line 54 of file genericPatchFieldBase.H.

Constructor & Destructor Documentation

◆ genericPatchFieldBase() [1/5]

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

Partial copy construct. Only copy type and dictionary.

Definition at line 71 of file genericPatchFieldBase.C.

◆ genericPatchFieldBase() [2/5]

genericPatchFieldBase ( )
default

Default construct, generally not useful.

◆ genericPatchFieldBase() [3/5]

Copy construct.

◆ genericPatchFieldBase() [4/5]

Move construct.

◆ genericPatchFieldBase() [5/5]

genericPatchFieldBase ( const dictionary dict)
explicit

Initialize from dictionary.

Definition at line 61 of file genericPatchFieldBase.C.

Member Function Documentation

◆ genericFatalSolveError()

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

Add error message to FatalError about solving with generic condition

Definition at line 84 of file genericPatchFieldBase.C.

References Foam::FatalError, io(), 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

FatalError for missing entry.

Definition at line 100 of file genericPatchFieldBase.C.

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

Referenced by genericFaPatchField< Type >::genericFaPatchField(), genericFvPatchField< Type >::genericFvPatchField(), and genericFvsPatchField< Type >::genericFvsPatchField().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ processGeneric()

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

Definition at line 119 of file genericPatchFieldBase.C.

References io().

Referenced by genericFaPatchField< Type >::genericFaPatchField(), genericFvPatchField< Type >::genericFvPatchField(), genericFvsPatchField< Type >::genericFvsPatchField(), and genericPointPatchField< Type >::genericPointPatchField().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ processEntry()

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

Definition at line 143 of file genericPatchFieldBase.C.

References Foam::dynamicCast(), UList< T >::empty(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, FIELDSIZE_CHECK, Foam::flatOutput(), io(), entry::isStream(), token::isWord(), entry::keyword(), IOobject::name(), pTraits< bool >::nComponents, Time::New(), Foam::nl, IOobject::objectPath(), Istream::putBack(), UList< T >::size(), and entry::stream().

Here is the call graph for this function:

◆ putEntry()

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

Write a single entry, with lookup of hashed values.

Definition at line 422 of file genericPatchFieldBase.C.

References e, os(), UList< T >::size(), and regIOobject::write().

Here is the call graph for this function:

◆ writeGeneric()

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

Write all generic entries from dictionary, optionally treating the "value" entry separately

Definition at line 465 of file genericPatchFieldBase.C.

References os(), and Ostream::writeEntry().

Referenced by genericFaPatchField< Type >::write(), genericFvPatchField< Type >::write(), genericFvsPatchField< Type >::write(), and genericPointPatchField< Type >::write().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mapGeneric()

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

◆ autoMapGeneric()

void autoMapGeneric ( const MapperType &  mapper)
protected

Implementation for autoMap of self given a mapping object.

Definition at line 87 of file genericPatchFieldBaseTemplates.C.

References forAllIters.

◆ rmapGeneric()

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

◆ actualType()

const word & actualType ( ) const
inlinenoexcept

The actual patch type.

Definition at line 172 of file genericPatchFieldBase.H.

References genericPatchFieldBase::actualTypeName_.

Member Data Documentation

◆ actualTypeName_

word actualTypeName_
protected

The non-generic patch name.

Definition at line 73 of file genericPatchFieldBase.H.

Referenced by genericPatchFieldBase::actualType().

◆ dict_

dictionary dict_
protected

Definition at line 75 of file genericPatchFieldBase.H.

◆ scalarFields_

HashPtrTable<scalarField> scalarFields_
protected

◆ vectorFields_

HashPtrTable<vectorField> vectorFields_
protected

◆ sphTensorFields_

◆ symmTensorFields_

HashPtrTable<symmTensorField> symmTensorFields_
protected

◆ tensorFields_

HashPtrTable<tensorField> tensorFields_
protected

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