Public Member Functions | Private Member Functions | Private Attributes
parFvFieldReconstructor Class Reference

Finite volume reconstructor for volume and surface fields. More...

Collaboration diagram for parFvFieldReconstructor:
Collaboration graph
[legend]

Public Member Functions

 parFvFieldReconstructor (fvMesh &baseMesh, const fvMesh &procMesh, const mapDistributePolyMesh &distMap, const bool isWriteProc)
 Construct from components. More...
 
template<class Type >
tmp< DimensionedField< Type, volMesh > > reconstructFvVolumeInternalField (const DimensionedField< Type, volMesh > &) const
 Reconstruct volume internal field. More...
 
template<class Type >
tmp< DimensionedField< Type, volMesh > > reconstructFvVolumeInternalField (const IOobject &fieldIoObject) const
 Read and reconstruct volume internal field. More...
 
template<class Type >
tmp< GeometricField< Type, fvPatchField, volMesh > > reconstructFvVolumeField (const GeometricField< Type, fvPatchField, volMesh > &fld) const
 Reconstruct volume field. More...
 
template<class Type >
tmp< GeometricField< Type, fvPatchField, volMesh > > reconstructFvVolumeField (const IOobject &fieldIoObject) const
 Read and reconstruct volume field. More...
 
template<class Type >
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > reconstructFvSurfaceField (const GeometricField< Type, fvsPatchField, surfaceMesh > &) const
 Reconstruct surface field. More...
 
template<class Type >
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > reconstructFvSurfaceField (const IOobject &fieldIoObject) const
 Read and reconstruct surface field. More...
 
template<class Type >
void reconstructFvVolumeInternalFields (const IOobjectList &objects, const HashSet< word > &selectedFields) const
 Read, reconstruct and write all/selected volume internal fields. More...
 
template<class Type >
void reconstructFvVolumeFields (const IOobjectList &objects, const HashSet< word > &selectedFields) const
 Read, reconstruct and write all/selected volume fields. More...
 
template<class Type >
void reconstructFvSurfaceFields (const IOobjectList &objects, const HashSet< word > &selectedFields) const
 Read, reconstruct and write all/selected surface fields. More...
 
void reconstructPoints ()
 Helper: reconstruct and write mesh points. More...
 
 parFvFieldReconstructor (fvMesh &baseMesh, const fvMesh &procMesh, const mapDistributePolyMesh &distMap, const bool isWriteProc)
 Construct from components. More...
 
template<class Type >
tmp< DimensionedField< Type, volMesh > > reconstructFvVolumeInternalField (const DimensionedField< Type, volMesh > &) const
 Reconstruct volume internal field. More...
 
template<class Type >
tmp< DimensionedField< Type, volMesh > > reconstructFvVolumeInternalField (const IOobject &fieldIoObject) const
 Read and reconstruct volume internal field. More...
 
template<class Type >
tmp< GeometricField< Type, fvPatchField, volMesh > > reconstructFvVolumeField (const GeometricField< Type, fvPatchField, volMesh > &fld) const
 Reconstruct volume field. More...
 
template<class Type >
tmp< GeometricField< Type, fvPatchField, volMesh > > reconstructFvVolumeField (const IOobject &fieldIoObject) const
 Read and reconstruct volume field. More...
 
template<class Type >
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > reconstructFvSurfaceField (const GeometricField< Type, fvsPatchField, surfaceMesh > &) const
 Reconstruct surface field. More...
 
template<class Type >
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > reconstructFvSurfaceField (const IOobject &fieldIoObject) const
 Read and reconstruct surface field. More...
 
template<class Type >
void reconstructFvVolumeInternalFields (const IOobjectList &objects, const HashSet< word > &selectedFields) const
 Read, reconstruct and write all/selected volume internal fields. More...
 
template<class Type >
void reconstructFvVolumeFields (const IOobjectList &objects, const HashSet< word > &selectedFields) const
 Read, reconstruct and write all/selected volume fields. More...
 
template<class Type >
void reconstructFvSurfaceFields (const IOobjectList &objects, const HashSet< word > &selectedFields) const
 Read, reconstruct and write all/selected surface fields. More...
 
void reconstructPoints ()
 Helper: reconstruct and write mesh points. More...
 
template<class Type >
Foam::tmp< Foam::DimensionedField< Type, Foam::volMesh > > reconstructFvVolumeInternalField (const DimensionedField< Type, volMesh > &fld) const
 
template<class Type >
Foam::tmp< Foam::DimensionedField< Type, Foam::volMesh > > reconstructFvVolumeInternalField (const IOobject &fieldIoObject) const
 
template<class Type >
Foam::tmp< Foam::GeometricField< Type, Foam::fvPatchField, Foam::volMesh > > reconstructFvVolumeField (const GeometricField< Type, fvPatchField, volMesh > &fld) const
 
template<class Type >
Foam::tmp< Foam::GeometricField< Type, Foam::fvPatchField, Foam::volMesh > > reconstructFvVolumeField (const IOobject &fieldIoObject) const
 
template<class Type >
Foam::tmp< Foam::GeometricField< Type, Foam::fvsPatchField, Foam::surfaceMesh > > reconstructFvSurfaceField (const GeometricField< Type, fvsPatchField, surfaceMesh > &fld) const
 
template<class Type >
Foam::tmp< Foam::GeometricField< Type, Foam::fvsPatchField, Foam::surfaceMesh > > reconstructFvSurfaceField (const IOobject &fieldIoObject) const
 

Private Member Functions

void createPatchFaceMaps ()
 Construct per-patch addressing. More...
 
 parFvFieldReconstructor (const parFvFieldReconstructor &)
 Disallow default bitwise copy construct. More...
 
void operator= (const parFvFieldReconstructor &)
 Disallow default bitwise assignment. More...
 
void createPatchFaceMaps ()
 Construct per-patch addressing. More...
 
 parFvFieldReconstructor (const parFvFieldReconstructor &)
 Disallow default bitwise copy construct. More...
 
void operator= (const parFvFieldReconstructor &)
 Disallow default bitwise assignment. More...
 

Private Attributes

fvMeshbaseMesh_
 Reconstructed mesh reference. More...
 
const fvMeshprocMesh_
 Processor mesh reference. More...
 
const mapDistributePolyMeshdistMap_
 Distribution map reference. More...
 
const bool isWriteProc_
 Do I need to to write (usually master only) More...
 
PtrList< mapDistributeBasepatchFaceMaps_
 Patch mappers. More...
 

Detailed Description

Finite volume reconstructor for volume and surface fields.

Runs in parallel. Reconstructs from procMesh to baseMesh. baseMesh is non-zero cells on processor0 only.

Source files

Runs in parallel. Reconstructs from procMesh to baseMesh. baseMesh is non-zero cells on processor0 only.

Source files

Definition at line 57 of file parFvFieldReconstructor.H.

Constructor & Destructor Documentation

◆ parFvFieldReconstructor() [1/4]

Disallow default bitwise copy construct.

◆ parFvFieldReconstructor() [2/4]

parFvFieldReconstructor ( fvMesh baseMesh,
const fvMesh procMesh,
const mapDistributePolyMesh distMap,
const bool  isWriteProc 
)

Construct from components.

Definition at line 77 of file parFvFieldReconstructor.C.

◆ parFvFieldReconstructor() [3/4]

Disallow default bitwise copy construct.

◆ parFvFieldReconstructor() [4/4]

parFvFieldReconstructor ( fvMesh baseMesh,
const fvMesh procMesh,
const mapDistributePolyMesh distMap,
const bool  isWriteProc 
)

Construct from components.

Member Function Documentation

◆ createPatchFaceMaps() [1/2]

void createPatchFaceMaps ( )
private

◆ operator=() [1/2]

void operator= ( const parFvFieldReconstructor )
private

Disallow default bitwise assignment.

◆ reconstructFvVolumeInternalField() [1/6]

tmp<DimensionedField<Type, volMesh> > reconstructFvVolumeInternalField ( const DimensionedField< Type, volMesh > &  ) const

Reconstruct volume internal field.

◆ reconstructFvVolumeInternalField() [2/6]

tmp<DimensionedField<Type, volMesh> > reconstructFvVolumeInternalField ( const IOobject fieldIoObject) const

Read and reconstruct volume internal field.

◆ reconstructFvVolumeField() [1/6]

tmp<GeometricField<Type, fvPatchField, volMesh> > reconstructFvVolumeField ( const GeometricField< Type, fvPatchField, volMesh > &  fld) const

Reconstruct volume field.

◆ reconstructFvVolumeField() [2/6]

tmp<GeometricField<Type, fvPatchField, volMesh> > reconstructFvVolumeField ( const IOobject fieldIoObject) const

Read and reconstruct volume field.

◆ reconstructFvSurfaceField() [1/6]

tmp<GeometricField<Type, fvsPatchField, surfaceMesh> > reconstructFvSurfaceField ( const GeometricField< Type, fvsPatchField, surfaceMesh > &  ) const

Reconstruct surface field.

◆ reconstructFvSurfaceField() [2/6]

tmp<GeometricField<Type, fvsPatchField, surfaceMesh> > reconstructFvSurfaceField ( const IOobject fieldIoObject) const

Read and reconstruct surface field.

◆ reconstructFvVolumeInternalFields() [1/2]

void reconstructFvVolumeInternalFields ( const IOobjectList objects,
const HashSet< word > &  selectedFields 
) const

Read, reconstruct and write all/selected volume internal fields.

Definition at line 420 of file parFvFieldReconstructorReconstructFields.C.

References HashTable< nil, word, string::hash >::empty(), Foam::endl(), fields, forAllConstIter(), HashTable< nil, word, string::hash >::found(), Foam::Info, IOobjectList::lookupClass(), and Foam::name().

Referenced by reconstructMeshFields().

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

◆ reconstructFvVolumeFields() [1/2]

void reconstructFvVolumeFields ( const IOobjectList objects,
const HashSet< word > &  selectedFields 
) const

Read, reconstruct and write all/selected volume fields.

Definition at line 461 of file parFvFieldReconstructorReconstructFields.C.

References HashTable< nil, word, string::hash >::empty(), Foam::endl(), fields, forAllConstIter(), HashTable< nil, word, string::hash >::found(), Foam::Info, IOobjectList::lookupClass(), and Foam::name().

Referenced by reconstructMeshFields().

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

◆ reconstructFvSurfaceFields() [1/2]

void reconstructFvSurfaceFields ( const IOobjectList objects,
const HashSet< word > &  selectedFields 
) const

Read, reconstruct and write all/selected surface fields.

Definition at line 504 of file parFvFieldReconstructorReconstructFields.C.

References HashTable< nil, word, string::hash >::empty(), Foam::endl(), fields, forAllConstIter(), HashTable< nil, word, string::hash >::found(), Foam::Info, IOobjectList::lookupClass(), and Foam::name().

Referenced by reconstructMeshFields().

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

◆ reconstructPoints() [1/2]

void reconstructPoints ( )

Helper: reconstruct and write mesh points.

(note: should be moved to something like processorMeshes class)

Definition at line 95 of file parFvFieldReconstructor.C.

References UPstream::master(), and UList::null().

Here is the call graph for this function:

◆ createPatchFaceMaps() [2/2]

void createPatchFaceMaps ( )
private

Construct per-patch addressing.

◆ operator=() [2/2]

void operator= ( const parFvFieldReconstructor )
private

Disallow default bitwise assignment.

◆ reconstructFvVolumeInternalField() [3/6]

tmp<DimensionedField<Type, volMesh> > reconstructFvVolumeInternalField ( const DimensionedField< Type, volMesh > &  ) const

Reconstruct volume internal field.

◆ reconstructFvVolumeInternalField() [4/6]

tmp<DimensionedField<Type, volMesh> > reconstructFvVolumeInternalField ( const IOobject fieldIoObject) const

Read and reconstruct volume internal field.

◆ reconstructFvVolumeField() [3/6]

tmp<GeometricField<Type, fvPatchField, volMesh> > reconstructFvVolumeField ( const GeometricField< Type, fvPatchField, volMesh > &  fld) const

Reconstruct volume field.

◆ reconstructFvVolumeField() [4/6]

tmp<GeometricField<Type, fvPatchField, volMesh> > reconstructFvVolumeField ( const IOobject fieldIoObject) const

Read and reconstruct volume field.

◆ reconstructFvSurfaceField() [3/6]

tmp<GeometricField<Type, fvsPatchField, surfaceMesh> > reconstructFvSurfaceField ( const GeometricField< Type, fvsPatchField, surfaceMesh > &  ) const

Reconstruct surface field.

◆ reconstructFvSurfaceField() [4/6]

tmp<GeometricField<Type, fvsPatchField, surfaceMesh> > reconstructFvSurfaceField ( const IOobject fieldIoObject) const

Read and reconstruct surface field.

◆ reconstructFvVolumeInternalFields() [2/2]

void reconstructFvVolumeInternalFields ( const IOobjectList objects,
const HashSet< word > &  selectedFields 
) const

Read, reconstruct and write all/selected volume internal fields.

◆ reconstructFvVolumeFields() [2/2]

void reconstructFvVolumeFields ( const IOobjectList objects,
const HashSet< word > &  selectedFields 
) const

Read, reconstruct and write all/selected volume fields.

◆ reconstructFvSurfaceFields() [2/2]

void reconstructFvSurfaceFields ( const IOobjectList objects,
const HashSet< word > &  selectedFields 
) const

Read, reconstruct and write all/selected surface fields.

◆ reconstructPoints() [2/2]

void reconstructPoints ( )

Helper: reconstruct and write mesh points.

(note: should be moved to something like processorMeshes class)

◆ reconstructFvVolumeInternalField() [5/6]

Foam::tmp<Foam::DimensionedField<Type, Foam::volMesh> > reconstructFvVolumeInternalField ( const DimensionedField< Type, volMesh > &  fld) const

Definition at line 46 of file parFvFieldReconstructorReconstructFields.C.

References fld(), and internalField().

Here is the call graph for this function:

◆ reconstructFvVolumeInternalField() [6/6]

Foam::tmp<Foam::DimensionedField<Type, Foam::volMesh> > reconstructFvVolumeInternalField ( const IOobject fieldIoObject) const

Definition at line 85 of file parFvFieldReconstructorReconstructFields.C.

References fld().

Here is the call graph for this function:

◆ reconstructFvVolumeField() [5/6]

Foam::tmp<Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh> > reconstructFvVolumeField ( const GeometricField< Type, fvPatchField, volMesh > &  fld) const

Definition at line 105 of file parFvFieldReconstructorReconstructFields.C.

References fld(), forAll, Foam::identity(), internalField(), PtrList::set(), and PtrList::size().

Here is the call graph for this function:

◆ reconstructFvVolumeField() [6/6]

Foam::tmp<Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh> > reconstructFvVolumeField ( const IOobject fieldIoObject) const

Definition at line 233 of file parFvFieldReconstructorReconstructFields.C.

References fld().

Here is the call graph for this function:

◆ reconstructFvSurfaceField() [5/6]

Foam::tmp<Foam::GeometricField<Type, Foam::fvsPatchField, Foam::surfaceMesh> > reconstructFvSurfaceField ( const GeometricField< Type, fvsPatchField, surfaceMesh > &  fld) const

◆ reconstructFvSurfaceField() [6/6]

Foam::tmp<Foam::GeometricField<Type, Foam::fvsPatchField, Foam::surfaceMesh> > reconstructFvSurfaceField ( const IOobject fieldIoObject) const

Definition at line 403 of file parFvFieldReconstructorReconstructFields.C.

References fld().

Here is the call graph for this function:

Field Documentation

◆ baseMesh_

fvMesh & baseMesh_
private

Reconstructed mesh reference.

Definition at line 62 of file parFvFieldReconstructor.H.

Referenced by parFvFieldReconstructor::createPatchFaceMaps().

◆ procMesh_

const fvMesh & procMesh_
private

Processor mesh reference.

Definition at line 65 of file parFvFieldReconstructor.H.

Referenced by parFvFieldReconstructor::createPatchFaceMaps().

◆ distMap_

const mapDistributePolyMesh & distMap_
private

Distribution map reference.

Definition at line 68 of file parFvFieldReconstructor.H.

Referenced by parFvFieldReconstructor::createPatchFaceMaps().

◆ isWriteProc_

const bool isWriteProc_
private

Do I need to to write (usually master only)

Definition at line 71 of file parFvFieldReconstructor.H.

◆ patchFaceMaps_

PtrList< mapDistributeBase > patchFaceMaps_
private

Patch mappers.

Definition at line 74 of file parFvFieldReconstructor.H.

Referenced by parFvFieldReconstructor::createPatchFaceMaps().


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