pointFieldReconstructor Class Reference

Point field reconstructor. More...

Classes

class  pointPatchFieldReconstructor
 

Public Member Functions

 pointFieldReconstructor (const pointMesh &mesh, const PtrList< pointMesh > &procMeshes, const PtrList< labelIOList > &pointProcAddressing, const PtrList< labelIOList > &boundaryProcAddressing)
 Construct from components. More...
 
label nReconstructed () const noexcept
 Return number of fields reconstructed. More...
 
template<class Type >
tmp< GeometricField< Type, pointPatchField, pointMesh > > reconstructField (const IOobject &fieldObject, const PtrList< GeometricField< Type, pointPatchField, pointMesh > > &) const
 Reconstruct field. More...
 
template<class Type >
tmp< GeometricField< Type, pointPatchField, pointMesh > > reconstructPointField (const IOobject &fieldObject)
 Read and reconstruct point field. More...
 
template<class Type >
label reconstructPointFields (const UPtrList< const IOobject > &fieldObjects)
 Reconstruct and write specified point fields. More...
 
template<class Type >
label reconstructPointFields (const IOobjectList &objects, const wordRes &selectedFields=wordRes())
 Reconstruct and write all or selected point fields. More...
 
label reconstructAllFields (const IOobjectList &objects, const wordRes &selectedFields=wordRes())
 Reconstruct and write all known field types. More...
 
template<class Type >
Foam::tmp< Foam::GeometricField< Type, Foam::pointPatchField, Foam::pointMesh > > reconstructField (const IOobject &fieldObject, const PtrList< GeometricField< Type, pointPatchField, pointMesh > > &procFields) const
 
template<class Type >
Foam::tmp< Foam::GeometricField< Type, Foam::pointPatchField, Foam::pointMesh > > reconstructPointField (const IOobject &fieldObject)
 
template<class Type >
Foam::label reconstructPointFields (const UPtrList< const IOobject > &fieldObjects)
 
template<class Type >
Foam::label reconstructPointFields (const IOobjectList &objects, const wordRes &selectedFields)
 

Static Public Attributes

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

Detailed Description

Constructor & Destructor Documentation

◆ pointFieldReconstructor()

pointFieldReconstructor ( const pointMesh mesh,
const PtrList< pointMesh > &  procMeshes,
const PtrList< labelIOList > &  pointProcAddressing,
const PtrList< labelIOList > &  boundaryProcAddressing 
)

Construct from components.

Definition at line 39 of file pointFieldReconstructor.C.

References Foam::abort(), pointMesh::boundary(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::min(), List< T >::setSize(), UPtrList< T >::size(), UList< T >::size(), and pointMesh::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 153 of file pointFieldReconstructor.H.

◆ reconstructField() [1/2]

tmp< GeometricField< Type, pointPatchField, pointMesh > > reconstructField ( const IOobject fieldObject,
const PtrList< GeometricField< Type, pointPatchField, pointMesh > > &   
) const

Reconstruct field.

◆ reconstructPointField() [1/2]

tmp< GeometricField< Type, pointPatchField, pointMesh > > reconstructPointField ( const IOobject fieldObject)

Read and reconstruct point field.

◆ reconstructPointFields() [1/4]

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

Reconstruct and write specified point fields.

◆ reconstructPointFields() [2/4]

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

Reconstruct and write all or selected point fields.

An empty wordRes corresponds to select ALL.

◆ reconstructAllFields()

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

Reconstruct and write all known field types.

Definition at line 107 of file pointFieldReconstructor.C.

◆ reconstructField() [2/2]

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

Definition at line 35 of file pointFieldReconstructorTemplates.C.

References pointMesh::boundary(), forAll, IOobject::name(), Time::New(), IOobject::NO_READ, IOobject::NO_WRITE, Field< Type >::rmap(), PtrList< T >::set(), UPtrList< T >::size(), pointMesh::size(), pointMesh::thisDb(), objectRegistry::time(), and Time::timeName().

Here is the call graph for this function:

◆ reconstructPointField() [2/2]

Foam::tmp< Foam::GeometricField< Type, Foam::pointPatchField, Foam::pointMesh > > reconstructPointField ( const IOobject fieldObject)

Definition at line 121 of file pointFieldReconstructorTemplates.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:

◆ reconstructPointFields() [3/4]

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

Definition at line 167 of file pointFieldReconstructorTemplates.C.

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

Here is the call graph for this function:

◆ reconstructPointFields() [4/4]

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

Definition at line 202 of file pointFieldReconstructorTemplates.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 135 of file pointFieldReconstructor.H.


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