OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

syncTools Class Reference

Various tools to aid synchronizing lists across coupled patches. More...

List of all members.


Public Member Functions

template<>
void separateList (const vectorField &separation, UList< vector > &field)
template<>
void separateList (const vectorField &separation, Map< vector > &field)
template<>
void separateList (const vectorField &separation, EdgeMap< vector > &field)

Static Public Member Functions

template<class T , class CombineOp >
static void syncPointList (const polyMesh &, UList< T > &, const CombineOp &cop, const T &nullValue, const bool applySeparation)
 Synchronize values on all mesh points.
template<class T , class CombineOp >
static void syncPointList (const polyMesh &, const labelList &meshPoints, UList< T > &, const CombineOp &bop, const T &nullValue, const bool applySeparation)
 Synchronize values on selected mesh points.
template<class T , class CombineOp >
static void syncEdgeList (const polyMesh &, UList< T > &, const CombineOp &cop, const T &nullValue, const bool applySeparation)
 Synchronize values on all mesh edges.
template<class T , class CombineOp >
static void syncBoundaryFaceList (const polyMesh &, UList< T > &, const CombineOp &cop, const bool applySeparation)
 Synchronize values on boundary faces only.
template<class T , class CombineOp >
static void syncFaceList (const polyMesh &, UList< T > &, const CombineOp &cop, const bool applySeparation)
 Synchronize values on all mesh faces.
template<class T >
static void swapBoundaryFaceList (const polyMesh &, UList< T > &, const bool applySeparation)
 Swap coupled face values.
template<class T >
static void swapFaceList (const polyMesh &, UList< T > &, const bool applySeparation)
 Swap coupled face values.
template<class T , class CombineOp >
static void syncPointMap (const polyMesh &, Map< T > &pointValues, const CombineOp &cop, const bool applySeparation)
 Synchronize values on selected points.
template<class T , class CombineOp >
static void syncEdgeMap (const polyMesh &, EdgeMap< T > &edgeValues, const CombineOp &cop, const bool applySeparation)
 Synchronize values on selected edges. Edges are represented.
template<unsigned nBits, class CombineOp >
static void syncFaceList (const polyMesh &mesh, PackedList< nBits > &faceValues, const CombineOp &cop)
template<unsigned nBits>
static void swapFaceList (const polyMesh &mesh, PackedList< nBits > &faceValues)
template<unsigned nBits, class CombineOp >
static void syncPointList (const polyMesh &mesh, PackedList< nBits > &pointValues, const CombineOp &cop, const unsigned int nullValue)
template<unsigned nBits, class CombineOp >
static void syncEdgeList (const polyMesh &mesh, PackedList< nBits > &edgeValues, const CombineOp &cop, const unsigned int nullValue)
static PackedBoolList getMasterPoints (const polyMesh &)
 Get per point whether is it master (of a coupled set of points).
static PackedBoolList getMasterEdges (const polyMesh &)
 Get per edge whether is it master (of a coupled set of edges).
static PackedBoolList getMasterFaces (const polyMesh &)
 Get per face whether is it master (of a coupled set of faces).

Detailed Description

Various tools to aid synchronizing lists across coupled patches.

Require

  • combineOperator (e.g. sumEqOp - not sumOp!) that is defined for the type and combineReduce(UList<T>, combineOperator) should be defined.
  • null value which gets overridden by any valid value.
  • transform function

Can apply coordinate rotation/separation on cyclics but only for faces or if there is a single rotation/separation tensor.

Source files

Definition at line 63 of file syncTools.H.


Member Function Documentation

void syncPointList ( const polyMesh &  mesh,
UList< T > &  pointValues,
const CombineOp &  cop,
const T &  nullValue,
const bool  applySeparation 
) [inline, static]

Synchronize values on all mesh points.

Applies rotation and optionally separation for parallel cyclics

Note: hasTransformation is only used for warning messages so

reduction not strictly nessecary. reduce(hasTransformation, orOp<bool>());

Definition at line 844 of file syncToolsTemplates.C.

Referenced by hexRef8::consistentSlowRefinement().

Here is the caller graph for this function:

void syncPointList ( const polyMesh &  mesh,
const labelList &  meshPoints,
UList< T > &  pointValues,
const CombineOp &  bop,
const T &  nullValue,
const bool  applySeparation 
) [inline, static]

Synchronize values on selected mesh points.

Applies rotation and optionally separation for parallel cyclics

Definition at line 1066 of file syncToolsTemplates.C.

void syncEdgeList ( const polyMesh &  mesh,
UList< T > &  edgeValues,
const CombineOp &  cop,
const T &  nullValue,
const bool  applySeparation 
) [inline, static]

Synchronize values on all mesh edges.

Applies rotation and optionally separation for parallel cyclics

Note: hasTransformation is only used for warning messages so

reduction not strictly nessecary. reduce(hasTransformation, orOp<bool>());

Definition at line 1117 of file syncToolsTemplates.C.

void syncBoundaryFaceList ( const polyMesh &  mesh,
UList< T > &  faceValues,
const CombineOp &  cop,
const bool  applySeparation 
) [inline, static]

void syncFaceList ( const polyMesh &  mesh,
UList< T > &  faceValues,
const CombineOp &  cop,
const bool  applySeparation 
) [inline, static]

Synchronize values on all mesh faces.

Optionally applies rotation tensor for non-parallel cyclics (but not separation!)

Definition at line 1510 of file syncToolsTemplates.C.

References Foam::abort(), Foam::FatalError, FatalErrorIn, primitiveMesh::nFaces(), primitiveMesh::nInternalFaces(), UList< T >::size(), and syncTools::syncBoundaryFaceList().

Referenced by removeCells::getExposedFaces(), and syncTools::swapFaceList().

Here is the call graph for this function:

Here is the caller graph for this function:

void swapBoundaryFaceList ( const polyMesh &  mesh,
UList< T > &  faceValues,
const bool  applySeparation 
) [inline, static]

Swap coupled face values.

Applies rotation and optionally separation for parallel cyclics

Definition at line 1548 of file syncToolsTemplates.C.

References syncTools::syncBoundaryFaceList().

Referenced by hexRef8::consistentSlowRefinement(), and hexRef8::consistentUnrefinement().

Here is the call graph for this function:

Here is the caller graph for this function:

void swapFaceList ( const polyMesh &  mesh,
UList< T > &  faceValues,
const bool  applySeparation 
) [inline, static]

Swap coupled face values.

Applies rotation and optionally separation for parallel cyclics

Definition at line 1560 of file syncToolsTemplates.C.

References syncTools::syncFaceList().

Here is the call graph for this function:

void syncPointMap ( const polyMesh &  mesh,
Map< T > &  pointValues,
const CombineOp &  cop,
const bool  applySeparation 
) [inline, static]

Synchronize values on selected points.

Applies rotation and optionally separation for parallel cyclics.

Note: hasTransformation is only used for warning messages so

reduction not strictly nessecary. reduce(hasTransformation, orOp<bool>());

Definition at line 103 of file syncToolsTemplates.C.

void syncEdgeMap ( const polyMesh &  mesh,
EdgeMap< T > &  edgeValues,
const CombineOp &  cop,
const bool  applySeparation 
) [inline, static]

Synchronize values on selected edges. Edges are represented.

by the two vertices that make it up so global edges never get constructed. Applies rotation and optionally separation for parallel cyclics.

Definition at line 451 of file syncToolsTemplates.C.

void syncFaceList ( const polyMesh &  mesh,
PackedList< nBits > &  faceValues,
const CombineOp &  cop 
) [inline, static]

void swapFaceList ( const polyMesh &  mesh,
PackedList< nBits > &  faceValues 
) [inline, static]

Definition at line 1693 of file syncToolsTemplates.C.

References syncTools::syncFaceList().

Here is the call graph for this function:

Foam::PackedBoolList getMasterPoints ( const polyMesh &  mesh  )  [static]

Get per point whether is it master (of a coupled set of points).

Definition at line 67 of file syncTools.C.

Foam::PackedBoolList getMasterEdges ( const polyMesh &  mesh  )  [static]

Get per edge whether is it master (of a coupled set of edges).

Definition at line 186 of file syncTools.C.

Foam::PackedBoolList getMasterFaces ( const polyMesh &  mesh  )  [static]

Get per face whether is it master (of a coupled set of faces).

Definition at line 305 of file syncTools.C.

void separateList ( const vectorField &  separation,
UList< vector > &  field 
) [inline]

Definition at line 354 of file syncTools.C.

void separateList ( const vectorField &  separation,
Map< vector > &  field 
) [inline]

Definition at line 389 of file syncTools.C.

void separateList ( const vectorField &  separation,
EdgeMap< vector > &  field 
) [inline]

Definition at line 423 of file syncTools.C.


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd