Data Structures | Public Member Functions | Private Member Functions | Private Attributes
fvFieldReconstructor Class Reference

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

Collaboration diagram for fvFieldReconstructor:
Collaboration graph
[legend]

Data Structures

class  fvPatchFieldReconstructor
 Mapper for sizing only - does not do any actual mapping. More...
 

Public Member Functions

 fvFieldReconstructor (fvMesh &mesh, const PtrList< fvMesh > &procMeshes, const PtrList< labelIOList > &faceProcAddressing, const PtrList< labelIOList > &cellProcAddressing, const PtrList< labelIOList > &boundaryProcAddressing)
 Construct from components. More...
 
label nReconstructed () const
 Return number of fields reconstructed. More...
 
template<class Type >
tmp< DimensionedField< Type, volMesh > > reconstructFvVolumeInternalField (const IOobject &fieldIoObject, const PtrList< DimensionedField< Type, volMesh > > &procFields) 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 IOobject &fieldIoObject, const PtrList< GeometricField< Type, fvPatchField, volMesh > > &) 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 IOobject &fieldIoObject, const PtrList< 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)
 Read, reconstruct and write all/selected volume internal fields. More...
 
template<class Type >
void reconstructFvVolumeFields (const IOobjectList &objects, const HashSet< word > &selectedFields)
 Read, reconstruct and write all/selected volume fields. More...
 
template<class Type >
void reconstructFvSurfaceFields (const IOobjectList &objects, const HashSet< word > &selectedFields)
 Read, reconstruct and write all/selected surface fields. More...
 
template<class Type >
Foam::tmp< Foam::DimensionedField< Type, Foam::volMesh > > reconstructFvVolumeInternalField (const IOobject &fieldIoObject, const PtrList< DimensionedField< Type, volMesh > > &procFields) 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 IOobject &fieldIoObject, const PtrList< GeometricField< Type, fvPatchField, volMesh > > &procFields) 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 IOobject &fieldIoObject, const PtrList< GeometricField< Type, fvsPatchField, surfaceMesh > > &procFields) const
 
template<class Type >
Foam::tmp< Foam::GeometricField< Type, Foam::fvsPatchField, Foam::surfaceMesh > > reconstructFvSurfaceField (const IOobject &fieldIoObject) const
 

Private Member Functions

 fvFieldReconstructor (const fvFieldReconstructor &)
 Disallow default bitwise copy construct. More...
 
void operator= (const fvFieldReconstructor &)
 Disallow default bitwise assignment. More...
 

Private Attributes

fvMeshmesh_
 Reconstructed mesh reference. More...
 
const PtrList< fvMesh > & procMeshes_
 List of processor meshes. More...
 
const PtrList< labelIOList > & faceProcAddressing_
 List of processor face addressing lists. More...
 
const PtrList< labelIOList > & cellProcAddressing_
 List of processor cell addressing lists. More...
 
const PtrList< labelIOList > & boundaryProcAddressing_
 List of processor boundary addressing lists. More...
 
label nReconstructed_
 Number of fields reconstructed. More...
 

Detailed Description

Finite volume reconstructor for volume and surface fields.

Source files

Definition at line 54 of file fvFieldReconstructor.H.

Constructor & Destructor Documentation

◆ fvFieldReconstructor() [1/2]

Disallow default bitwise copy construct.

◆ fvFieldReconstructor() [2/2]

fvFieldReconstructor ( fvMesh mesh,
const PtrList< fvMesh > &  procMeshes,
const PtrList< labelIOList > &  faceProcAddressing,
const PtrList< labelIOList > &  cellProcAddressing,
const PtrList< labelIOList > &  boundaryProcAddressing 
)

Construct from components.

Definition at line 31 of file fvFieldReconstructor.C.

References fvMesh::boundary(), Foam::endl(), Foam::exit(), faceProcAddressing, Foam::FatalError, FatalErrorInFunction, forAll, primitiveMesh::nCells(), primitiveMesh::nFaces(), and PtrList::size().

Here is the call graph for this function:

Member Function Documentation

◆ operator=()

void operator= ( const fvFieldReconstructor )
private

Disallow default bitwise assignment.

◆ nReconstructed()

label nReconstructed ( ) const
inline

Return number of fields reconstructed.

Definition at line 146 of file fvFieldReconstructor.H.

References fvFieldReconstructor::nReconstructed_.

Referenced by main().

Here is the caller graph for this function:

◆ reconstructFvVolumeInternalField() [1/4]

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

Reconstruct volume internal field.

◆ reconstructFvVolumeInternalField() [2/4]

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

Read and reconstruct volume internal field.

◆ reconstructFvVolumeField() [1/4]

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

Reconstruct volume field.

◆ reconstructFvVolumeField() [2/4]

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

Read and reconstruct volume field.

◆ reconstructFvSurfaceField() [1/4]

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

Reconstruct surface field.

◆ reconstructFvSurfaceField() [2/4]

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

Read and reconstruct surface field.

◆ reconstructFvVolumeInternalFields()

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

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

Definition at line 590 of file fvFieldReconstructorReconstructFields.C.

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

Referenced by main().

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

◆ reconstructFvVolumeFields()

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

Read, reconstruct and write all/selected volume fields.

Definition at line 625 of file fvFieldReconstructorReconstructFields.C.

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

Referenced by main().

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

◆ reconstructFvSurfaceFields()

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

Read, reconstruct and write all/selected surface fields.

Definition at line 661 of file fvFieldReconstructorReconstructFields.C.

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

Referenced by main().

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

◆ reconstructFvVolumeInternalField() [3/4]

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

Definition at line 39 of file fvFieldReconstructorReconstructFields.C.

References DimensionedField::field(), forAll, and internalField().

Here is the call graph for this function:

◆ reconstructFvVolumeInternalField() [4/4]

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

Definition at line 75 of file fvFieldReconstructorReconstructFields.C.

References forAll, IOobject::name(), and PtrList::set().

Here is the call graph for this function:

◆ reconstructFvVolumeField() [3/4]

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

◆ reconstructFvVolumeField() [4/4]

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

Definition at line 302 of file fvFieldReconstructorReconstructFields.C.

References forAll, IOobject::name(), and PtrList::set().

Here is the call graph for this function:

◆ reconstructFvSurfaceField() [3/4]

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

◆ reconstructFvSurfaceField() [4/4]

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

Definition at line 543 of file fvFieldReconstructorReconstructFields.C.

References forAll, IOobject::name(), and PtrList::set().

Here is the call graph for this function:

Field Documentation

◆ mesh_

fvMesh& mesh_
private

Reconstructed mesh reference.

Definition at line 59 of file fvFieldReconstructor.H.

◆ procMeshes_

const PtrList<fvMesh>& procMeshes_
private

List of processor meshes.

Definition at line 62 of file fvFieldReconstructor.H.

◆ faceProcAddressing_

const PtrList<labelIOList>& faceProcAddressing_
private

List of processor face addressing lists.

Definition at line 65 of file fvFieldReconstructor.H.

◆ cellProcAddressing_

const PtrList<labelIOList>& cellProcAddressing_
private

List of processor cell addressing lists.

Definition at line 68 of file fvFieldReconstructor.H.

◆ boundaryProcAddressing_

const PtrList<labelIOList>& boundaryProcAddressing_
private

List of processor boundary addressing lists.

Definition at line 71 of file fvFieldReconstructor.H.

◆ nReconstructed_

label nReconstructed_
private

Number of fields reconstructed.

Definition at line 74 of file fvFieldReconstructor.H.

Referenced by fvFieldReconstructor::nReconstructed().


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