processorLduInterface Class Referenceabstract

An abstract base class for processor coupled interfaces. More...

Inheritance diagram for processorLduInterface:
[legend]

Public Member Functions

 TypeName ("processorLduInterface")
 Runtime type information. More...
 
 processorLduInterface ()=default
 Default construct. More...
 
virtual ~processorLduInterface ()=default
 Destructor. More...
 
virtual label comm () const =0
 Return communicator used for parallel communication. More...
 
virtual int myProcNo () const =0
 Return processor number (rank in communicator) More...
 
virtual int neighbProcNo () const =0
 Return neighbour processor number (rank in communicator) More...
 
virtual const tensorFieldforwardT () const =0
 Return face transformation tensor. More...
 
virtual int tag () const =0
 Return message tag used for sending. More...
 
template<class Type >
void send (const Pstream::commsTypes commsType, const UList< Type > &f) const
 Raw send function. More...
 
template<class Type >
void receive (const Pstream::commsTypes commsType, UList< Type > &f) const
 Raw receive function. More...
 
template<class Type >
tmp< Field< Type > > receive (const Pstream::commsTypes commsType, const label size) const
 Raw receive function returning field. More...
 
template<class Type >
void compressedSend (const Pstream::commsTypes commsType, const UList< Type > &f) const
 Raw send function with data compression. More...
 
template<class Type >
void compressedReceive (const Pstream::commsTypes commsType, UList< Type > &f) const
 Raw receive function with data compression. More...
 
template<class Type >
tmp< Field< Type > > compressedReceive (const Pstream::commsTypes commsType, const label size) const
 Raw receive function with data compression returning field. More...
 
template<class Type >
Foam::tmp< Foam::Field< Type > > receive (const Pstream::commsTypes commsType, const label size) const
 
template<class Type >
Foam::tmp< Foam::Field< Type > > compressedReceive (const Pstream::commsTypes commsType, const label size) const
 

Detailed Description

An abstract base class for processor coupled interfaces.

Source files

Definition at line 53 of file processorLduInterface.H.

Constructor & Destructor Documentation

◆ processorLduInterface()

processorLduInterface ( )
default

Default construct.

◆ ~processorLduInterface()

virtual ~processorLduInterface ( )
virtualdefault

Destructor.

Member Function Documentation

◆ TypeName()

TypeName ( "processorLduInterface"  )

Runtime type information.

◆ comm()

virtual label comm ( ) const
pure virtual

Return communicator used for parallel communication.

Implemented in processorFaPatch, processorFvPatch, lduPrimitiveProcessorInterface, processorGAMGInterface, and calculatedProcessorGAMGInterface.

Referenced by procLduInterface::procLduInterface(), and processorLduInterface::send().

Here is the caller graph for this function:

◆ myProcNo()

virtual int myProcNo ( ) const
pure virtual

Return processor number (rank in communicator)

Implemented in processorFvPatch, lduPrimitiveProcessorInterface, processorGAMGInterface, calculatedProcessorGAMGInterface, and processorFaPatch.

Referenced by lduPrimitiveMesh::lduPrimitiveMesh(), procLduInterface::procLduInterface(), and dynamicOversetFvMesh::write().

Here is the caller graph for this function:

◆ neighbProcNo()

virtual int neighbProcNo ( ) const
pure virtual

Return neighbour processor number (rank in communicator)

Implemented in processorFvPatch, lduPrimitiveProcessorInterface, processorGAMGInterface, calculatedProcessorGAMGInterface, and processorFaPatch.

Referenced by lduPrimitiveMesh::lduPrimitiveMesh(), procLduInterface::procLduInterface(), processorLduInterface::send(), and dynamicOversetFvMesh::write().

Here is the caller graph for this function:

◆ forwardT()

virtual const tensorField & forwardT ( ) const
pure virtual

◆ tag()

virtual int tag ( ) const
pure virtual

Return message tag used for sending.

Implemented in processorFaPatch, processorFvPatch, processorCyclicFvPatch, lduPrimitiveProcessorInterface, processorGAMGInterface, and calculatedProcessorGAMGInterface.

Referenced by procLduInterface::procLduInterface(), and processorLduInterface::send().

Here is the caller graph for this function:

◆ send()

void send ( const Pstream::commsTypes  commsType,
const UList< Type > &  f 
) const

Raw send function.

Definition at line 36 of file processorLduInterfaceTemplates.C.

References UPstream::blocking, UList< T >::byteSize(), UList< T >::cdata(), UList< T >::cdata_bytes(), processorLduInterface::comm(), UList< T >::data(), Foam::exit(), f(), Foam::FatalError, FatalErrorInFunction, processorLduInterface::neighbProcNo(), UPstream::nonBlocking, kEpsilonLopesdaCosta< BasicTurbulenceModel >::read(), UPstream::scheduled, processorLduInterface::tag(), and ObukhovLength::write().

Referenced by lduPrimitiveProcessorInterface::initInternalFieldTransfer().

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

◆ receive() [1/3]

void receive ( const Pstream::commsTypes  commsType,
UList< Type > &  f 
) const

Raw receive function.

Definition at line 100 of file processorLduInterfaceTemplates.C.

References UPstream::blocking, UList< T >::byteSize(), UList< T >::data(), UList< T >::data_bytes(), Foam::exit(), f(), Foam::FatalError, FatalErrorInFunction, UPstream::nonBlocking, kEpsilonLopesdaCosta< BasicTurbulenceModel >::read(), and UPstream::scheduled.

Here is the call graph for this function:

◆ receive() [2/3]

tmp< Field< Type > > receive ( const Pstream::commsTypes  commsType,
const label  size 
) const

Raw receive function returning field.

◆ compressedSend()

void compressedSend ( const Pstream::commsTypes  commsType,
const UList< Type > &  f 
) const

Raw send function with data compression.

Definition at line 152 of file processorLduInterfaceTemplates.C.

References UPstream::blocking, UList< T >::cdata(), Foam::exit(), f(), Foam::FatalError, FatalErrorInFunction, UPstream::floatTransfer, UList< T >::last(), UPstream::nonBlocking, kEpsilonLopesdaCosta< BasicTurbulenceModel >::read(), UPstream::scheduled, UList< T >::size(), and ObukhovLength::write().

Here is the call graph for this function:

◆ compressedReceive() [1/3]

void compressedReceive ( const Pstream::commsTypes  commsType,
UList< Type > &  f 
) const

Raw receive function with data compression.

Definition at line 233 of file processorLduInterfaceTemplates.C.

References UPstream::blocking, UList< T >::data(), Foam::exit(), f(), Foam::FatalError, FatalErrorInFunction, UPstream::floatTransfer, UList< T >::last(), UPstream::nonBlocking, kEpsilonLopesdaCosta< BasicTurbulenceModel >::read(), UPstream::scheduled, and UList< T >::size().

Here is the call graph for this function:

◆ compressedReceive() [2/3]

tmp< Field< Type > > compressedReceive ( const Pstream::commsTypes  commsType,
const label  size 
) const

Raw receive function with data compression returning field.

◆ receive() [3/3]

Foam::tmp< Foam::Field< Type > > receive ( const Pstream::commsTypes  commsType,
const label  size 
) const

Definition at line 139 of file processorLduInterfaceTemplates.C.

References Foam::New().

Here is the call graph for this function:

◆ compressedReceive() [3/3]

Foam::tmp< Foam::Field< Type > > compressedReceive ( const Pstream::commsTypes  commsType,
const label  size 
) const

Definition at line 291 of file processorLduInterfaceTemplates.C.

References Foam::New().

Here is the call graph for this function:

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