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... | |
Finite volume reconstructor for volume and surface fields.
Definition at line 56 of file fvFieldReconstructor.H.
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().
|
inlinenoexcept |
Return number of fields reconstructed.
Definition at line 156 of file fvFieldReconstructor.H.
tmp< DimensionedField< Type, volMesh > > reconstructField | ( | const IOobject & | fieldObject, |
const PtrList< DimensionedField< Type, volMesh > > & | procFields | ||
) | const |
Reconstruct volume internal field.
tmp< DimensionedField< Type, volMesh > > reconstructInternalField | ( | const IOobject & | fieldObject | ) | const |
Read and reconstruct volume internal field.
tmp< GeometricField< Type, fvPatchField, volMesh > > reconstructField | ( | const IOobject & | fieldObject, |
const PtrList< GeometricField< Type, fvPatchField, volMesh > > & | |||
) | const |
Reconstruct volume field.
tmp< GeometricField< Type, fvPatchField, volMesh > > reconstructVolumeField | ( | const IOobject & | fieldObject | ) | const |
Read and reconstruct volume field.
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > reconstructField | ( | const IOobject & | fieldObject, |
const PtrList< GeometricField< Type, fvsPatchField, surfaceMesh > > & | |||
) | const |
Reconstruct surface field.
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > reconstructSurfaceField | ( | const IOobject & | fieldObject | ) | const |
Read and reconstruct surface field.
Read, reconstruct and write specified volume internal fields.
Read, reconstruct and write specified volume fields.
Read, reconstruct and write specified surface fields.
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.
label reconstructVolumeFields | ( | const IOobjectList & | objects, |
const wordRes & | selectedFields = wordRes() |
||
) |
Read, reconstruct and write all/selected volume fields.
An empty wordRes corresponds to select ALL.
label reconstructSurfaceFields | ( | const IOobjectList & | objects, |
const wordRes & | selectedFields = wordRes() |
||
) |
Read, reconstruct and write all/selected surface fields.
An empty wordRes corresponds to select ALL.
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.
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().
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().
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().
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().
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().
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().
Definition at line 592 of file fvFieldReconstructorTemplates.C.
References Foam::endl(), Foam::Info, io(), IOobject::isHeaderClass(), IOobject::name(), Foam::nl, and write().
Definition at line 627 of file fvFieldReconstructorTemplates.C.
References Foam::endl(), Foam::Info, io(), IOobject::isHeaderClass(), IOobject::name(), Foam::nl, and write().
Definition at line 662 of file fvFieldReconstructorTemplates.C.
References Foam::endl(), Foam::Info, io(), IOobject::isHeaderClass(), IOobject::name(), Foam::nl, and write().
Foam::label reconstructInternalFields | ( | const IOobjectList & | objects, |
const wordRes & | selectedFields | ||
) |
Definition at line 698 of file fvFieldReconstructorTemplates.C.
References UList< T >::empty(), and IOobjectList::sorted().
Foam::label reconstructVolumeFields | ( | const IOobjectList & | objects, |
const wordRes & | selectedFields | ||
) |
Definition at line 718 of file fvFieldReconstructorTemplates.C.
References UList< T >::empty(), and IOobjectList::sorted().
Foam::label reconstructSurfaceFields | ( | const IOobjectList & | objects, |
const wordRes & | selectedFields | ||
) |
Definition at line 738 of file fvFieldReconstructorTemplates.C.
References UList< T >::empty(), and IOobjectList::sorted().
|
static |
Output verbosity when writing.
Definition at line 137 of file fvFieldReconstructor.H.