mappedFvPatchBaseBase.H File Reference
Include dependency graph for mappedFvPatchBaseBase.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  mappedFvPatchBaseBase
 Base class for fv patches that provide mapping between two fv patches. More...
 

Namespaces

 Foam
 Namespace for OpenFOAM.
 

Macros

#define DEFINE_MAPPED_FV_PATCH_BASE__NEIGHBOUR(Type, FromTo, Modifier)
 
#define DEFINE_MAPPED_FV_PATCH_BASE_FROM_AND_TO_NEIGHBOUR(Type, Modifier)
 
#define IMPLEMENT_MAPPED_FV_PATCH_BASE__NEIGHBOUR(Type, PatchType, FromTo)
 
#define IMPLEMENT_MAPPED_FV_PATCH_BASE_FROM_AND_TO_NEIGHBOUR(Type, PatchType)
 

Detailed Description

Original source file mappedFvPatchBaseBase.H

Definition in file mappedFvPatchBaseBase.H.

Macro Definition Documentation

◆ DEFINE_MAPPED_FV_PATCH_BASE__NEIGHBOUR

#define DEFINE_MAPPED_FV_PATCH_BASE__NEIGHBOUR (   Type,
  FromTo,
  Modifier 
)
Value:
\
virtual tmp<Field<Type>> FromTo##Neighbour \
( \
const Field<Type>& \
) const Modifier; \
\
virtual tmp<Field<Type>> FromTo##Neighbour \
( \
const tmp<Field<Type>>& \
) const Modifier;

Definition at line 42 of file mappedFvPatchBaseBase.H.

◆ DEFINE_MAPPED_FV_PATCH_BASE_FROM_AND_TO_NEIGHBOUR

#define DEFINE_MAPPED_FV_PATCH_BASE_FROM_AND_TO_NEIGHBOUR (   Type,
  Modifier 
)
Value:
\
DEFINE_MAPPED_FV_PATCH_BASE__NEIGHBOUR(Type, from, Modifier) \
#define DEFINE_MAPPED_FV_PATCH_BASE__NEIGHBOUR(Type, FromTo, Modifier)

Definition at line 55 of file mappedFvPatchBaseBase.H.

◆ IMPLEMENT_MAPPED_FV_PATCH_BASE__NEIGHBOUR

#define IMPLEMENT_MAPPED_FV_PATCH_BASE__NEIGHBOUR (   Type,
  PatchType,
  FromTo 
)
Value:
\
Foam::tmp<Foam::Field<Foam::Type>> Foam::PatchType::FromTo##Neighbour \
( \
const Field<Type>& nbrFldFld \
) const \
{ \
return FromTo##Neighbour<Type>(nbrFldFld); \
} \
\
Foam::tmp<Foam::Field<Foam::Type>> Foam::PatchType::FromTo##Neighbour \
( \
const tmp<Field<Type>>& nbrFldFld \
) const \
{ \
tmp<Field<Type>> tResult = FromTo##Neighbour<Type>(nbrFldFld()); \
if (&tResult() == &nbrFldFld()) \
{ \
return nbrFldFld; \
} \
else \
{ \
nbrFldFld.clear(); \
return tResult; \
} \
}

Definition at line 62 of file mappedFvPatchBaseBase.H.

◆ IMPLEMENT_MAPPED_FV_PATCH_BASE_FROM_AND_TO_NEIGHBOUR

#define IMPLEMENT_MAPPED_FV_PATCH_BASE_FROM_AND_TO_NEIGHBOUR (   Type,
  PatchType 
)
Value:
\
IMPLEMENT_MAPPED_FV_PATCH_BASE__NEIGHBOUR(Type, PatchType, from) \
#define IMPLEMENT_MAPPED_FV_PATCH_BASE__NEIGHBOUR(Type, PatchType, FromTo)

Definition at line 90 of file mappedFvPatchBaseBase.H.