fvFieldReconstructor Class Reference

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

Classes

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 noexcept
 Return number of fields reconstructed. More...
 
template<class Type >
tmp< DimensionedField< Type, volMesh > > reconstructField (const IOobject &fieldObject, const PtrList< DimensionedField< Type, volMesh > > &procFields) const
 Reconstruct volume internal field. More...
 
template<class Type >
tmp< DimensionedField< Type, volMesh > > reconstructInternalField (const IOobject &fieldObject) const
 Read and reconstruct volume internal field. More...
 
template<class Type >
tmp< GeometricField< Type, fvPatchField, volMesh > > reconstructField (const IOobject &fieldObject, const PtrList< GeometricField< Type, fvPatchField, volMesh > > &) const
 Reconstruct volume field. More...
 
template<class Type >
tmp< GeometricField< Type, fvPatchField, volMesh > > reconstructVolumeField (const IOobject &fieldObject) const
 Read and reconstruct volume field. More...
 
template<class Type >
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > reconstructField (const IOobject &fieldObject, const PtrList< GeometricField< Type, fvsPatchField, surfaceMesh > > &) const
 Reconstruct surface field. More...
 
template<class Type >
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > reconstructSurfaceField (const IOobject &fieldObject) const
 Read and reconstruct surface field. More...
 
template<class Type >
label reconstructInternalFields (const UPtrList< const IOobject > &fieldObjects)
 Read, reconstruct and write specified volume internal fields. More...
 
template<class Type >
label reconstructVolumeFields (const UPtrList< const IOobject > &fieldObjects)
 Read, reconstruct and write specified volume fields. More...
 
template<class Type >
label reconstructSurfaceFields (const UPtrList< const IOobject > &fieldObjects)
 Read, reconstruct and write specified surface fields. More...
 
template<class Type >
label reconstructInternalFields (const IOobjectList &objects, const wordRes &selectedFields=wordRes())
 Read, reconstruct and write all/selected volume internal fields. More...
 
template<class Type >
label reconstructVolumeFields (const IOobjectList &objects, const wordRes &selectedFields=wordRes())
 Read, reconstruct and write all/selected volume fields. More...
 
template<class Type >
label reconstructSurfaceFields (const IOobjectList &objects, const wordRes &selectedFields=wordRes())
 Read, reconstruct and write all/selected surface fields. More...
 
label reconstructAllFields (const IOobjectList &objects, const wordRes &selectedFields=wordRes())
 Reconstruct all known field types. More...
 
template<class Type >
Foam::tmp< Foam::DimensionedField< Type, Foam::volMesh > > reconstructField (const IOobject &fieldObject, const PtrList< DimensionedField< Type, volMesh > > &procFields) const
 
template<class Type >
Foam::tmp< Foam::GeometricField< Type, Foam::fvPatchField, Foam::volMesh > > reconstructField (const IOobject &fieldObject, const PtrList< GeometricField< Type, fvPatchField, volMesh > > &procFields) const
 
template<class Type >
Foam::tmp< Foam::GeometricField< Type, Foam::fvsPatchField, Foam::surfaceMesh > > reconstructField (const IOobject &fieldObject, const PtrList< GeometricField< Type, fvsPatchField, surfaceMesh > > &procFields) const
 
template<class Type >
Foam::tmp< Foam::DimensionedField< Type, Foam::volMesh > > reconstructInternalField (const IOobject &fieldObject) const
 
template<class Type >
Foam::tmp< Foam::GeometricField< Type, Foam::fvPatchField, Foam::volMesh > > reconstructVolumeField (const IOobject &fieldObject) const
 
template<class Type >
Foam::tmp< Foam::GeometricField< Type, Foam::fvsPatchField, Foam::surfaceMesh > > reconstructSurfaceField (const IOobject &fieldObject) const
 
template<class Type >
Foam::label reconstructInternalFields (const UPtrList< const IOobject > &fieldObjects)
 
template<class Type >
Foam::label reconstructVolumeFields (const UPtrList< const IOobject > &fieldObjects)
 
template<class Type >
Foam::label reconstructSurfaceFields (const UPtrList< const IOobject > &fieldObjects)
 
template<class Type >
Foam::label reconstructInternalFields (const IOobjectList &objects, const wordRes &selectedFields)
 
template<class Type >
Foam::label reconstructVolumeFields (const IOobjectList &objects, const wordRes &selectedFields)
 
template<class Type >
Foam::label reconstructSurfaceFields (const IOobjectList &objects, const wordRes &selectedFields)
 

Static Public Attributes

static int verbose_ = 1
 Output verbosity when writing. More...
 

Detailed Description

Finite volume reconstructor for volume and surface fields.

Source files

Definition at line 56 of file fvFieldReconstructor.H.

Constructor & Destructor Documentation

◆ fvFieldReconstructor()

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 40 of file fvFieldReconstructor.C.

References fvMesh::boundary(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, primitiveMesh::nCells(), primitiveMesh::nFaces(), and UPtrList< T >::size().

Here is the call graph for this function:

Member Function Documentation

◆ nReconstructed()

label nReconstructed ( ) const
inlinenoexcept

Return number of fields reconstructed.

Definition at line 156 of file fvFieldReconstructor.H.

◆ reconstructField() [1/6]

tmp< DimensionedField< Type, volMesh > > reconstructField ( const IOobject fieldObject,
const PtrList< DimensionedField< Type, volMesh > > &  procFields 
) const

Reconstruct volume internal field.

◆ reconstructInternalField() [1/2]

tmp< DimensionedField< Type, volMesh > > reconstructInternalField ( const IOobject fieldObject) const

Read and reconstruct volume internal field.

◆ reconstructField() [2/6]

tmp< GeometricField< Type, fvPatchField, volMesh > > reconstructField ( const IOobject fieldObject,
const PtrList< GeometricField< Type, fvPatchField, volMesh > > &   
) const

Reconstruct volume field.

◆ reconstructVolumeField() [1/2]

tmp< GeometricField< Type, fvPatchField, volMesh > > reconstructVolumeField ( const IOobject fieldObject) const

Read and reconstruct volume field.

◆ reconstructField() [3/6]

tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > reconstructField ( const IOobject fieldObject,
const PtrList< GeometricField< Type, fvsPatchField, surfaceMesh > > &   
) const

Reconstruct surface field.

◆ reconstructSurfaceField() [1/2]

tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > reconstructSurfaceField ( const IOobject fieldObject) const

Read and reconstruct surface field.

◆ reconstructInternalFields() [1/4]

label reconstructInternalFields ( const UPtrList< const IOobject > &  fieldObjects)

Read, reconstruct and write specified volume internal fields.

◆ reconstructVolumeFields() [1/4]

label reconstructVolumeFields ( const UPtrList< const IOobject > &  fieldObjects)

Read, reconstruct and write specified volume fields.

◆ reconstructSurfaceFields() [1/4]

label reconstructSurfaceFields ( const UPtrList< const IOobject > &  fieldObjects)

Read, reconstruct and write specified surface fields.

◆ reconstructInternalFields() [2/4]

label reconstructInternalFields ( const IOobjectList objects,
const wordRes selectedFields = wordRes() 
)

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

An empty wordRes corresponds to select ALL.

◆ reconstructVolumeFields() [2/4]

label reconstructVolumeFields ( const IOobjectList objects,
const wordRes selectedFields = wordRes() 
)

Read, reconstruct and write all/selected volume fields.

An empty wordRes corresponds to select ALL.

◆ reconstructSurfaceFields() [2/4]

label reconstructSurfaceFields ( const IOobjectList objects,
const wordRes selectedFields = wordRes() 
)

Read, reconstruct and write all/selected surface fields.

An empty wordRes corresponds to select ALL.

◆ reconstructAllFields()

Foam::label reconstructAllFields ( const IOobjectList objects,
const wordRes selectedFields = wordRes() 
)

Reconstruct all known field types.

Definition at line 84 of file fvFieldReconstructor.C.

References doLocalCode.

◆ reconstructField() [4/6]

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

Definition at line 41 of file fvFieldReconstructorTemplates.C.

References DimensionedField< Type, GeoMesh >::field(), forAll, primitiveMesh::nCells(), Foam::New(), and Field< Type >::rmap().

Here is the call graph for this function:

◆ reconstructField() [5/6]

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

Definition at line 78 of file fvFieldReconstructorTemplates.C.

References cp, Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, DimensionedField< Type, GeoMesh >::mesh(), Foam::New(), Field< Type >::rmap(), PtrList< T >::set(), and UList< T >::size().

Here is the call graph for this function:

◆ reconstructField() [6/6]

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

Definition at line 256 of file fvFieldReconstructorTemplates.C.

References cp, Foam::faceMap(), forAll, Foam::mag(), Foam::New(), Field< Type >::rmap(), PtrList< T >::set(), and UList< T >::size().

Here is the call graph for this function:

◆ reconstructInternalField() [2/2]

Foam::tmp< Foam::DimensionedField< Type, Foam::volMesh > > reconstructInternalField ( const IOobject fieldObject) const

Definition at line 449 of file fvFieldReconstructorTemplates.C.

References forAll, IOobject::MUST_READ, IOobject::name(), IOobject::NO_READ, IOobject::NO_WRITE, and PtrList< T >::set().

Here is the call graph for this function:

◆ reconstructVolumeField() [2/2]

Foam::tmp< Foam::GeometricField< Type, Foam::fvPatchField, Foam::volMesh > > reconstructVolumeField ( const IOobject fieldObject) const

Definition at line 497 of file fvFieldReconstructorTemplates.C.

References forAll, IOobject::MUST_READ, IOobject::name(), IOobject::NO_READ, IOobject::NO_WRITE, and PtrList< T >::set().

Here is the call graph for this function:

◆ reconstructSurfaceField() [2/2]

Foam::tmp< Foam::GeometricField< Type, Foam::fvsPatchField, Foam::surfaceMesh > > reconstructSurfaceField ( const IOobject fieldObject) const

Definition at line 545 of file fvFieldReconstructorTemplates.C.

References forAll, IOobject::MUST_READ, IOobject::name(), IOobject::NO_READ, IOobject::NO_WRITE, and PtrList< T >::set().

Here is the call graph for this function:

◆ reconstructInternalFields() [3/4]

Foam::label reconstructInternalFields ( const UPtrList< const IOobject > &  fieldObjects)

Definition at line 592 of file fvFieldReconstructorTemplates.C.

References Foam::endl(), Foam::Info, io(), IOobject::isHeaderClass(), IOobject::name(), Foam::nl, and write().

Here is the call graph for this function:

◆ reconstructVolumeFields() [3/4]

Foam::label reconstructVolumeFields ( const UPtrList< const IOobject > &  fieldObjects)

Definition at line 627 of file fvFieldReconstructorTemplates.C.

References Foam::endl(), Foam::Info, io(), IOobject::isHeaderClass(), IOobject::name(), Foam::nl, and write().

Here is the call graph for this function:

◆ reconstructSurfaceFields() [3/4]

Foam::label reconstructSurfaceFields ( const UPtrList< const IOobject > &  fieldObjects)

Definition at line 662 of file fvFieldReconstructorTemplates.C.

References Foam::endl(), Foam::Info, io(), IOobject::isHeaderClass(), IOobject::name(), Foam::nl, and write().

Here is the call graph for this function:

◆ reconstructInternalFields() [4/4]

Foam::label reconstructInternalFields ( const IOobjectList objects,
const wordRes selectedFields 
)

Definition at line 698 of file fvFieldReconstructorTemplates.C.

References UList< T >::empty(), and IOobjectList::sorted().

Here is the call graph for this function:

◆ reconstructVolumeFields() [4/4]

Foam::label reconstructVolumeFields ( const IOobjectList objects,
const wordRes selectedFields 
)

Definition at line 718 of file fvFieldReconstructorTemplates.C.

References UList< T >::empty(), and IOobjectList::sorted().

Here is the call graph for this function:

◆ reconstructSurfaceFields() [4/4]

Foam::label reconstructSurfaceFields ( const IOobjectList objects,
const wordRes selectedFields 
)

Definition at line 738 of file fvFieldReconstructorTemplates.C.

References UList< T >::empty(), and IOobjectList::sorted().

Here is the call graph for this function:

Member Data Documentation

◆ verbose_

int verbose_ = 1
static

Output verbosity when writing.

Definition at line 137 of file fvFieldReconstructor.H.


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