hexRef8Data Class Reference

Various for reading/decomposing/reconstructing/distributing refinement data. More...

Public Member Functions

 hexRef8Data (const IOobject &io)
 
 hexRef8Data (const IOobject &io, const hexRef8Data &, const labelList &cellMap, const labelList &pointMap)
 Construct as subset. More...
 
 hexRef8Data (const IOobject &io, const UPtrList< const labelList > &cellMaps, const UPtrList< const labelList > &pointMaps, const UPtrList< const hexRef8Data > &)
 Construct from multiple hexRef8Data. More...
 
 ~hexRef8Data ()
 Destructor. More...
 
void sync (const IOobject &io)
 Parallel synchronise. This enforces valid objects on all processors. More...
 
void updateMesh (const mapPolyMesh &)
 Update local numbering for changed mesh. More...
 
void distribute (const mapDistributePolyMesh &)
 In-place distribute. More...
 
bool write () const
 Write. More...
 

Detailed Description

Various for reading/decomposing/reconstructing/distributing refinement data.

Source files

Definition at line 60 of file hexRef8Data.H.

Constructor & Destructor Documentation

◆ hexRef8Data() [1/3]

hexRef8Data ( const IOobject &  io)
explicit

Construct read. Has special provision for only some processors having the files so can be used in redistribution.

Definition at line 41 of file hexRef8Data.C.

References Foam::endl(), Foam::Info, IOobject::name(), Foam::returnReduce(), and IOobject::typeHeaderOk().

Here is the call graph for this function:

◆ hexRef8Data() [2/3]

hexRef8Data ( const IOobject &  io,
const hexRef8Data &  data,
const labelList &  cellMap,
const labelList &  pointMap 
)

Construct as subset.

Definition at line 91 of file hexRef8Data.C.

References dictionary::clone(), and baseIOdictionary::name().

Here is the call graph for this function:

◆ hexRef8Data() [3/3]

hexRef8Data ( const IOobject &  io,
const UPtrList< const labelList > &  cellMaps,
const UPtrList< const labelList > &  pointMaps,
const UPtrList< const hexRef8Data > &  procDatas 
)

Construct from multiple hexRef8Data.

Definition at line 143 of file hexRef8Data.C.

References IOobject::db(), forAll, mesh, Foam::name(), primitiveMesh::nCells(), primitiveMesh::nPoints(), and UPtrList< T >::size().

Here is the call graph for this function:

◆ ~hexRef8Data()

Destructor.

Definition at line 230 of file hexRef8Data.C.

Member Function Documentation

◆ sync()

void sync ( const IOobject &  io)

Parallel synchronise. This enforces valid objects on all processors.

(even if they don't have a mesh). Used by redistributePar.

Definition at line 236 of file hexRef8Data.C.

References IOobject::db(), Foam::dimLength, UPstream::master(), mesh, IOobject::name(), primitiveMesh::nCells(), IOobject::NO_READ, primitiveMesh::nPoints(), IOobject::readOpt(), Foam::returnReduce(), Pstream::scatter(), and Foam::Zero.

Here is the call graph for this function:

◆ updateMesh()

void updateMesh ( const mapPolyMesh &  map)

Update local numbering for changed mesh.

Definition at line 293 of file hexRef8Data.C.

References mapPolyMesh::cellMap(), polyMesh::facesInstance(), forAll, mapPolyMesh::mesh(), newPointi, mapPolyMesh::nOldCells(), mapPolyMesh::nOldPoints(), mapPolyMesh::pointMap(), and List< T >::transfer().

Here is the call graph for this function:

◆ distribute()

void distribute ( const mapDistributePolyMesh &  map)

In-place distribute.

Definition at line 364 of file hexRef8Data.C.

References mapDistributePolyMesh::cellMap(), mapDistribute::distribute(), and mapDistributePolyMesh::pointMap().

Here is the call graph for this function:

◆ write()

bool write ( ) const

Write.

Definition at line 384 of file hexRef8Data.C.


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