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
 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 >
label reconstructFvVolumeInternalFields (const IOobjectList &objects, const UList< word > &fieldNames)
 Read, reconstruct and write specified volume internal fields. More...
 
template<class Type >
label reconstructFvVolumeFields (const IOobjectList &objects, const UList< word > &fieldNames)
 Read, reconstruct and write specified volume fields. More...
 
template<class Type >
label reconstructFvSurfaceFields (const IOobjectList &objects, const UList< word > &fieldNames)
 Read, reconstruct and write specified surface fields. More...
 
template<class Type >
label reconstructFvVolumeInternalFields (const IOobjectList &objects, const wordRes &selectedFields=wordRes())
 Read, reconstruct and write all/selected volume internal fields. More...
 
template<class Type >
label reconstructFvVolumeFields (const IOobjectList &objects, const wordRes &selectedFields=wordRes())
 Read, reconstruct and write all/selected volume fields. More...
 
template<class Type >
label reconstructFvSurfaceFields (const IOobjectList &objects, const wordRes &selectedFields=wordRes())
 Read, reconstruct and write all/selected surface fields. More...
 
template<class Type >
label reconstructFvVolumeInternalFields (const IOobjectList &objects, const wordHashSet &selectedFields)
 Read, reconstruct and write all/selected volume internal fields. More...
 
template<class Type >
label reconstructFvVolumeFields (const IOobjectList &objects, const wordHashSet &selectedFields)
 Read, reconstruct and write all/selected volume fields. More...
 
template<class Type >
label reconstructFvSurfaceFields (const IOobjectList &objects, const wordHashSet &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
 
template<class Type >
Foam::label reconstructFvVolumeInternalFields (const IOobjectList &objects, const UList< word > &fieldNames)
 
template<class Type >
Foam::label reconstructFvVolumeFields (const IOobjectList &objects, const UList< word > &fieldNames)
 
template<class Type >
Foam::label reconstructFvSurfaceFields (const IOobjectList &objects, const UList< word > &fieldNames)
 
template<class Type >
Foam::label reconstructFvVolumeInternalFields (const IOobjectList &objects, const wordRes &selectedFields)
 
template<class Type >
Foam::label reconstructFvVolumeFields (const IOobjectList &objects, const wordRes &selectedFields)
 
template<class Type >
Foam::label reconstructFvSurfaceFields (const IOobjectList &objects, const wordRes &selectedFields)
 
template<class Type >
Foam::label reconstructFvVolumeInternalFields (const IOobjectList &objects, const wordHashSet &selectedFields)
 
template<class Type >
Foam::label reconstructFvVolumeFields (const IOobjectList &objects, const wordHashSet &selectedFields)
 
template<class Type >
Foam::label reconstructFvSurfaceFields (const IOobjectList &objects, const wordHashSet &selectedFields)
 

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

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

Here is the call graph for this function:

Member Function Documentation

◆ nReconstructed()

label nReconstructed ( ) const
inline

Return number of fields reconstructed.

Definition at line 148 of file fvFieldReconstructor.H.

◆ 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() [1/6]

label reconstructFvVolumeInternalFields ( const IOobjectList objects,
const UList< word > &  fieldNames 
)

Read, reconstruct and write specified volume internal fields.

◆ reconstructFvVolumeFields() [1/6]

label reconstructFvVolumeFields ( const IOobjectList objects,
const UList< word > &  fieldNames 
)

Read, reconstruct and write specified volume fields.

◆ reconstructFvSurfaceFields() [1/6]

label reconstructFvSurfaceFields ( const IOobjectList objects,
const UList< word > &  fieldNames 
)

Read, reconstruct and write specified surface fields.

◆ reconstructFvVolumeInternalFields() [2/6]

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

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

An empty wordRes corresponds to select ALL.

◆ reconstructFvVolumeFields() [2/6]

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

Read, reconstruct and write all/selected volume fields.

An empty wordRes corresponds to select ALL.

◆ reconstructFvSurfaceFields() [2/6]

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

Read, reconstruct and write all/selected surface fields.

An empty wordRes corresponds to select ALL.

◆ reconstructFvVolumeInternalFields() [3/6]

label reconstructFvVolumeInternalFields ( const IOobjectList objects,
const wordHashSet selectedFields 
)

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

An empty wordHashSet corresponds to select ALL.

Note
this may be removed in the future (2018-11)

◆ reconstructFvVolumeFields() [3/6]

label reconstructFvVolumeFields ( const IOobjectList objects,
const wordHashSet selectedFields 
)

Read, reconstruct and write all/selected volume fields.

An empty wordHashSet corresponds to select ALL.

Note
this may be removed in the future (2018-11)

◆ reconstructFvSurfaceFields() [3/6]

label reconstructFvSurfaceFields ( const IOobjectList objects,
const wordHashSet selectedFields 
)

Read, reconstruct and write all/selected surface fields.

An empty wordHashSet corresponds to select ALL.

Note
this may be removed in the future (2018-11)

◆ reconstructFvVolumeInternalField() [3/4]

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

Definition at line 42 of file fvFieldReconstructorFields.C.

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

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 79 of file fvFieldReconstructorFields.C.

References forAll, and IOobject::name().

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

Definition at line 127 of file fvFieldReconstructorFields.C.

References GeometricField< Type, PatchField, GeoMesh >::boundaryField(), cp, Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::New(), and GeometricField< Type, PatchField, GeoMesh >::primitiveField().

Here is the call graph for this function:

◆ reconstructFvVolumeField() [4/4]

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

Definition at line 306 of file fvFieldReconstructorFields.C.

References forAll, and IOobject::name().

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

Definition at line 354 of file fvFieldReconstructorFields.C.

References GeometricField< Type, PatchField, GeoMesh >::boundaryField(), cp, Foam::faceMap(), forAll, Foam::mag(), Foam::New(), and GeometricField< Type, PatchField, GeoMesh >::primitiveField().

Here is the call graph for this function:

◆ reconstructFvSurfaceField() [4/4]

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

Definition at line 548 of file fvFieldReconstructorFields.C.

References forAll, and IOobject::name().

Here is the call graph for this function:

◆ reconstructFvVolumeInternalFields() [4/6]

Foam::label reconstructFvVolumeInternalFields ( const IOobjectList objects,
const UList< word > &  fieldNames 
)

Definition at line 595 of file fvFieldReconstructorFields.C.

References IOobjectList::cfindObject(), Foam::endl(), fieldNames(), Foam::Info, Foam::nl, and Foam::vtk::write().

Here is the call graph for this function:

◆ reconstructFvVolumeFields() [4/6]

Foam::label reconstructFvVolumeFields ( const IOobjectList objects,
const UList< word > &  fieldNames 
)

Definition at line 627 of file fvFieldReconstructorFields.C.

References IOobjectList::cfindObject(), Foam::endl(), fieldNames(), Foam::Info, Foam::nl, and Foam::vtk::write().

Here is the call graph for this function:

◆ reconstructFvSurfaceFields() [4/6]

Foam::label reconstructFvSurfaceFields ( const IOobjectList objects,
const UList< word > &  fieldNames 
)

Definition at line 659 of file fvFieldReconstructorFields.C.

References IOobjectList::cfindObject(), Foam::endl(), fieldNames(), Foam::Info, Foam::nl, and Foam::vtk::write().

Here is the call graph for this function:

◆ reconstructFvVolumeInternalFields() [5/6]

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

Definition at line 691 of file fvFieldReconstructorFields.C.

References fieldNames(), and IOobjectList::sortedNames().

Here is the call graph for this function:

◆ reconstructFvVolumeFields() [5/6]

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

Definition at line 711 of file fvFieldReconstructorFields.C.

References fieldNames(), and IOobjectList::sortedNames().

Here is the call graph for this function:

◆ reconstructFvSurfaceFields() [5/6]

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

Definition at line 731 of file fvFieldReconstructorFields.C.

References fieldNames(), and IOobjectList::sortedNames().

Here is the call graph for this function:

◆ reconstructFvVolumeInternalFields() [6/6]

Foam::label reconstructFvVolumeInternalFields ( const IOobjectList objects,
const wordHashSet selectedFields 
)

Definition at line 751 of file fvFieldReconstructorFields.C.

References fieldNames(), and IOobjectList::sortedNames().

Here is the call graph for this function:

◆ reconstructFvVolumeFields() [6/6]

Foam::label reconstructFvVolumeFields ( const IOobjectList objects,
const wordHashSet selectedFields 
)

Definition at line 771 of file fvFieldReconstructorFields.C.

References fieldNames(), and IOobjectList::sortedNames().

Here is the call graph for this function:

◆ reconstructFvSurfaceFields() [6/6]

Foam::label reconstructFvSurfaceFields ( const IOobjectList objects,
const wordHashSet selectedFields 
)

Definition at line 791 of file fvFieldReconstructorFields.C.

References fieldNames(), and IOobjectList::sortedNames().

Here is the call graph for this function:

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