Loading...
Searching...
No Matches
lduPrimitiveProcessorInterface Class Reference

Concrete implementation of processor interface. Used to temporarily store settings. More...

#include <lduPrimitiveProcessorInterface.H>

Inheritance diagram for lduPrimitiveProcessorInterface:
Collaboration diagram for lduPrimitiveProcessorInterface:

Public Member Functions

 TypeNameNoDebug ("processorInterface")
 Runtime type information.
void operator= (const lduPrimitiveProcessorInterface &)=delete
 No copy assignment.
 lduPrimitiveProcessorInterface (const labelUList &faceCells, const label myProcNo, const label neighbProcNo, const tensorField &forwardT, const int tag, const label comm=UPstream::worldComm)
 Construct from components.
 lduPrimitiveProcessorInterface (const lduPrimitiveProcessorInterface &)
 Copy constructor.
virtual ~lduPrimitiveProcessorInterface ()=default
 Destructor.
virtual const labelUListfaceCells () const
 Return faceCell addressing.
virtual tmp< labelFieldinterfaceInternalField (const labelUList &internalData) const
 Return the values of the given internal data adjacent to the interface as a field.
virtual tmp< labelFieldinterfaceInternalField (const labelUList &internalData, const labelUList &faceCells) const
 Return the values of the given internal data adjacent to the interface as a field using faceCells mapping.
virtual void initInternalFieldTransfer (const Pstream::commsTypes commsType, const labelUList &iF) const
 Initialise neighbour field transfer.
virtual void initInternalFieldTransfer (const Pstream::commsTypes commsType, const labelUList &iF, const labelUList &faceCells) const
 Initialise neighbour field transfer using faceCells.
virtual tmp< labelFieldinternalFieldTransfer (const Pstream::commsTypes commsType, const labelUList &iF) const
 Transfer and return internal field adjacent to the interface.
virtual label comm () const
 Return communicator used for sending.
virtual int myProcNo () const
 Return processor number (rank in communicator).
virtual int neighbProcNo () const
 Return neighbour processor number (rank in communicator).
virtual const tensorFieldforwardT () const
 Return face transformation tensor.
virtual int tag () const
 Return message tag used for sending.
int & tag ()
 Message tag used for sending (modifiable).
Public Member Functions inherited from lduInterface
 TypeNameNoDebug ("lduInterface")
 Runtime type information.
 lduInterface () noexcept=default
 Default construct.
virtual ~lduInterface ()=default
 Destructor.
Public Member Functions inherited from processorLduInterface
 TypeNameNoDebug ("processorLduInterface")
 Runtime type information.
 processorLduInterface () noexcept=default
 Default construct.
virtual ~processorLduInterface ()=default
 Destructor.
template<class Type>
void send (const UPstream::commsTypes commsType, const UList< Type > &f) const
 Raw send function.
template<class Type>
void receive (const UPstream::commsTypes commsType, UList< Type > &f) const
 Raw receive function.
template<class Type>
tmp< Field< Type > > receive (const UPstream::commsTypes commsType, const label size) const
 Raw receive function returning field.
template<class Type>
void compressedSend (const UPstream::commsTypes commsType, const UList< Type > &f) const
 Raw send function with data compression.
template<class Type>
void compressedReceive (const UPstream::commsTypes commsType, UList< Type > &f) const
 Raw receive function with data compression.
template<class Type>
tmp< Field< Type > > compressedReceive (const UPstream::commsTypes commsType, const label size) const
 Raw receive function with data compression returning field.
template<class Type>
Foam::tmp< Foam::Field< Type > > receive (const UPstream::commsTypes commsType, const label size) const
template<class Type>
Foam::tmp< Foam::Field< Type > > compressedReceive (const UPstream::commsTypes commsType, const label size) const

Detailed Description

Concrete implementation of processor interface. Used to temporarily store settings.

Source files

Definition at line 49 of file lduPrimitiveProcessorInterface.H.

Constructor & Destructor Documentation

◆ lduPrimitiveProcessorInterface() [1/2]

lduPrimitiveProcessorInterface ( const labelUList & faceCells,
const label myProcNo,
const label neighbProcNo,
const tensorField & forwardT,
const int tag,
const label comm = UPstream::worldComm )

Construct from components.

Definition at line 48 of file lduPrimitiveProcessorInterface.C.

References comm(), faceCells(), forwardT(), myProcNo(), neighbProcNo(), and tag().

Referenced by lduPrimitiveProcessorInterface(), and operator=().

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

◆ lduPrimitiveProcessorInterface() [2/2]

lduPrimitiveProcessorInterface ( const lduPrimitiveProcessorInterface & p)

Copy constructor.

Definition at line 34 of file lduPrimitiveProcessorInterface.C.

References comm(), faceCells(), forwardT(), lduPrimitiveProcessorInterface(), myProcNo(), neighbProcNo(), p, and tag().

Here is the call graph for this function:

◆ ~lduPrimitiveProcessorInterface()

virtual ~lduPrimitiveProcessorInterface ( )
virtualdefault

Destructor.

Member Function Documentation

◆ TypeNameNoDebug()

TypeNameNoDebug ( "processorInterface" )

Runtime type information.

◆ operator=()

void operator= ( const lduPrimitiveProcessorInterface & )
delete

No copy assignment.

References comm(), faceCells(), forwardT(), lduPrimitiveProcessorInterface(), myProcNo(), neighbProcNo(), tag(), and UPstream::worldComm.

Here is the call graph for this function:

◆ faceCells()

virtual const labelUList & faceCells ( ) const
inlinevirtual

Return faceCell addressing.

Implements lduInterface.

Definition at line 140 of file lduPrimitiveProcessorInterface.H.

Referenced by initInternalFieldTransfer(), interfaceInternalField(), lduPrimitiveProcessorInterface(), lduPrimitiveProcessorInterface(), and operator=().

Here is the caller graph for this function:

◆ interfaceInternalField() [1/2]

Foam::tmp< Foam::labelField > interfaceInternalField ( const labelUList & internalData) const
virtual

Return the values of the given internal data adjacent to the interface as a field.

Implements lduInterface.

Definition at line 70 of file lduPrimitiveProcessorInterface.C.

References interfaceInternalField().

Referenced by initInternalFieldTransfer(), initInternalFieldTransfer(), and interfaceInternalField().

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

◆ interfaceInternalField() [2/2]

Foam::tmp< Foam::labelField > interfaceInternalField ( const labelUList & internalData,
const labelUList & faceCells ) const
virtual

Return the values of the given internal data adjacent to the interface as a field using faceCells mapping.

Implements lduInterface.

Definition at line 80 of file lduPrimitiveProcessorInterface.C.

References faceCells(), fld(), forAll, and tmp< T >::New().

Here is the call graph for this function:

◆ initInternalFieldTransfer() [1/2]

void initInternalFieldTransfer ( const Pstream::commsTypes commsType,
const labelUList & iF ) const
virtual

Initialise neighbour field transfer.

Reimplemented from lduInterface.

Definition at line 97 of file lduPrimitiveProcessorInterface.C.

References interfaceInternalField(), and processorLduInterface::send().

Here is the call graph for this function:

◆ initInternalFieldTransfer() [2/2]

void initInternalFieldTransfer ( const Pstream::commsTypes commsType,
const labelUList & iF,
const labelUList & faceCells ) const
virtual

Initialise neighbour field transfer using faceCells.

Reimplemented from lduInterface.

Definition at line 107 of file lduPrimitiveProcessorInterface.C.

References faceCells(), interfaceInternalField(), and processorLduInterface::send().

Here is the call graph for this function:

◆ internalFieldTransfer()

Foam::tmp< Foam::labelField > internalFieldTransfer ( const Pstream::commsTypes commsType,
const labelUList & iF ) const
virtual

Transfer and return internal field adjacent to the interface.

Implements lduInterface.

Definition at line 123 of file lduPrimitiveProcessorInterface.C.

References processorLduInterface::receive().

Here is the call graph for this function:

◆ comm()

virtual label comm ( ) const
inlinevirtual

Return communicator used for sending.

Implements processorLduInterface.

Definition at line 201 of file lduPrimitiveProcessorInterface.H.

Referenced by lduPrimitiveProcessorInterface(), lduPrimitiveProcessorInterface(), and operator=().

Here is the caller graph for this function:

◆ myProcNo()

virtual int myProcNo ( ) const
inlinevirtual

Return processor number (rank in communicator).

Implements processorLduInterface.

Definition at line 209 of file lduPrimitiveProcessorInterface.H.

Referenced by lduPrimitiveProcessorInterface(), lduPrimitiveProcessorInterface(), and operator=().

Here is the caller graph for this function:

◆ neighbProcNo()

virtual int neighbProcNo ( ) const
inlinevirtual

Return neighbour processor number (rank in communicator).

Implements processorLduInterface.

Definition at line 217 of file lduPrimitiveProcessorInterface.H.

Referenced by lduPrimitiveProcessorInterface(), lduPrimitiveProcessorInterface(), and operator=().

Here is the caller graph for this function:

◆ forwardT()

virtual const tensorField & forwardT ( ) const
inlinevirtual

Return face transformation tensor.

Implements processorLduInterface.

Definition at line 225 of file lduPrimitiveProcessorInterface.H.

Referenced by lduPrimitiveProcessorInterface(), lduPrimitiveProcessorInterface(), and operator=().

Here is the caller graph for this function:

◆ tag() [1/2]

virtual int tag ( ) const
inlinevirtual

Return message tag used for sending.

Implements processorLduInterface.

Definition at line 233 of file lduPrimitiveProcessorInterface.H.

Referenced by lduPrimitiveProcessorInterface(), lduPrimitiveProcessorInterface(), and operator=().

Here is the caller graph for this function:

◆ tag() [2/2]

int & tag ( )
inline

Message tag used for sending (modifiable).

Definition at line 244 of file lduPrimitiveProcessorInterface.H.


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