Loading...
Searching...
No Matches
genericPatchFieldBase Class Reference

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

#include <genericPatchFieldBase.H>

Inheritance diagram for genericPatchFieldBase:

Public Member Functions

 genericPatchFieldBase ()=default
 Default construct, generally not useful.
 genericPatchFieldBase (const genericPatchFieldBase &)=default
 Copy construct.
 genericPatchFieldBase (genericPatchFieldBase &&)=default
 Move construct.
 genericPatchFieldBase (const dictionary &dict)
 Initialize from dictionary.
const wordactualType () const noexcept
 The actual patch type.

Protected Member Functions

void genericFatalSolveError (const word &patchName, const IOobject &io) const
 Add error message to FatalError about solving with generic condition.
void reportMissingEntry (const word &entryName, const word &patchName, const IOobject &io) const
 FatalError for missing entry.
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.
void writeGeneric (Ostream &os, const bool separateValue) const
 Write all generic entries from dictionary, optionally treating the "value" entry separately.
template<class MapperType>
void mapGeneric (const genericPatchFieldBase &rhs, const MapperType &mapper)
 Implementation for construct with mapper.
template<class MapperType>
void autoMapGeneric (const MapperType &mapper)
 Implementation for autoMap of self given a mapping object.
void rmapGeneric (const genericPatchFieldBase &rhs, const labelList &addr)
 Implementation for reverse map given patch field onto this patch field.
 genericPatchFieldBase (const Foam::zero, const genericPatchFieldBase &)
 Partial copy construct. Only copy type and dictionary.

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() [2/5]

genericPatchFieldBase ( )
default

Default construct, generally not useful.

◆ genericPatchFieldBase() [3/5]

genericPatchFieldBase ( const genericPatchFieldBase & )
default

Copy construct.

References genericPatchFieldBase().

Here is the call graph for this function:

◆ genericPatchFieldBase() [4/5]

genericPatchFieldBase ( genericPatchFieldBase && )
default

Move construct.

References dict, and genericPatchFieldBase().

Here is the call graph for this function:

◆ genericPatchFieldBase() [5/5]

genericPatchFieldBase ( const dictionary & dict)
explicit

Initialize from dictionary.

Definition at line 54 of file genericPatchFieldBase.C.

References dict.

Member Function Documentation

◆ genericFatalSolveError()

◆ reportMissingEntry()

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

FatalError for missing entry.

Definition at line 93 of file genericPatchFieldBase.C.

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

Referenced by genericFaePatchField< Type >::genericFaePatchField(), 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

◆ 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

Write a single entry, with lookup of hashed values.

Definition at line 326 of file genericPatchFieldBase.C.

References doLocalCode, e, and os().

Referenced by writeGeneric().

Here is the call graph for this function:
Here is the caller 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 366 of file genericPatchFieldBase.C.

References os(), and putEntry().

Referenced by genericFaePatchField< Type >::write(), 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()

template<class MapperType>
void mapGeneric ( const genericPatchFieldBase & rhs,
const MapperType & mapper )
protected

◆ autoMapGeneric()

template<class MapperType>
void autoMapGeneric ( const MapperType & mapper)
protected

Implementation for autoMap of self given a mapping object.

Definition at line 54 of file genericPatchFieldBaseTemplates.C.

References doLocalCode.

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

Here is the caller graph for this function:

◆ rmapGeneric()

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

Implementation for reverse map given patch field onto this patch field.

Definition at line 390 of file genericPatchFieldBase.C.

References doLocalCode, genericPatchFieldBase(), and Foam::rhs().

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

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

◆ actualType()

const word & actualType ( ) const
inlinenoexcept

The actual patch type.

Definition at line 204 of file genericPatchFieldBase.H.

References Foam::noexcept.


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