faFieldReconstructor Class Reference

Finite Area area and edge fields reconstruction. More...

Classes

class  faPatchFieldReconstructor
 

Public Member Functions

 faFieldReconstructor (faMesh &mesh, const PtrList< faMesh > &procMeshes, const PtrList< labelIOList > &edgeProcAddressing, const PtrList< labelIOList > &faceProcAddressing, const PtrList< labelIOList > &boundaryProcAddressing)
 Construct from components. More...
 
label nReconstructed () const noexcept
 Return number of fields reconstructed. More...
 
template<class Type >
tmp< GeometricField< Type, faPatchField, areaMesh > > reconstructField (const IOobject &fieldObject, const PtrList< GeometricField< Type, faPatchField, areaMesh > > &) const
 Reconstruct area field. More...
 
template<class Type >
tmp< GeometricField< Type, faPatchField, areaMesh > > reconstructAreaField (const IOobject &fieldObject)
 Read and reconstruct area field. More...
 
template<class Type >
tmp< GeometricField< Type, faePatchField, edgeMesh > > reconstructField (const IOobject &fieldObject, const PtrList< GeometricField< Type, faePatchField, edgeMesh > > &) const
 Reconstruct edge field. More...
 
template<class Type >
tmp< GeometricField< Type, faePatchField, edgeMesh > > reconstructEdgeField (const IOobject &fieldObject)
 Read and reconstruct edge field. More...
 
template<class Type >
label reconstructAreaFields (const UPtrList< const IOobject > &fieldObjects)
 Read, reconstruct and write specified area fields. More...
 
template<class Type >
label reconstructEdgeFields (const UPtrList< const IOobject > &fieldObjects)
 Read, reconstruct and write specified edge fields. More...
 
template<class Type >
label reconstructAreaFields (const IOobjectList &objects, const wordRes &selectedFields=wordRes())
 Read, reconstruct and write all/selected area fields. More...
 
template<class Type >
label reconstructEdgeFields (const IOobjectList &objects, const wordRes &selectedFields=wordRes())
 Read, reconstruct and write all/selected edge fields. More...
 
label reconstructAllFields (const IOobjectList &objects, const wordRes &selectedFields=wordRes())
 Reconstruct all supported area/edge field types. More...
 
template<class Type >
Foam::tmp< Foam::GeometricField< Type, Foam::faPatchField, Foam::areaMesh > > reconstructField (const IOobject &fieldObject, const PtrList< GeometricField< Type, faPatchField, areaMesh > > &procFields) const
 
template<class Type >
Foam::tmp< Foam::GeometricField< Type, Foam::faePatchField, Foam::edgeMesh > > reconstructField (const IOobject &fieldObject, const PtrList< GeometricField< Type, faePatchField, edgeMesh > > &procFields) const
 
template<class Type >
Foam::tmp< Foam::GeometricField< Type, Foam::faPatchField, Foam::areaMesh > > reconstructAreaField (const IOobject &fieldObject)
 
template<class Type >
Foam::tmp< Foam::GeometricField< Type, Foam::faePatchField, Foam::edgeMesh > > reconstructEdgeField (const IOobject &fieldObject)
 
template<class Type >
Foam::label reconstructAreaFields (const UPtrList< const IOobject > &fieldObjects)
 
template<class Type >
Foam::label reconstructEdgeFields (const UPtrList< const IOobject > &fieldObjects)
 
template<class Type >
Foam::label reconstructAreaFields (const IOobjectList &objects, const wordRes &selectedFields)
 
template<class Type >
Foam::label reconstructEdgeFields (const IOobjectList &objects, const wordRes &selectedFields)
 

Static Public Attributes

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

Detailed Description

Finite Area area and edge fields reconstruction.

Author Zeljko Tukovic, FSB Zagreb Hrvoje Jasak, Wikki Ltd.

Source files

Definition at line 60 of file faFieldReconstructor.H.

Constructor & Destructor Documentation

◆ faFieldReconstructor()

faFieldReconstructor ( faMesh mesh,
const PtrList< faMesh > &  procMeshes,
const PtrList< labelIOList > &  edgeProcAddressing,
const PtrList< labelIOList > &  faceProcAddressing,
const PtrList< labelIOList > &  boundaryProcAddressing 
)

Construct from components.

Definition at line 40 of file faFieldReconstructor.C.

Member Function Documentation

◆ nReconstructed()

label nReconstructed ( ) const
inlinenoexcept

Return number of fields reconstructed.

Definition at line 170 of file faFieldReconstructor.H.

◆ reconstructField() [1/4]

tmp< GeometricField< Type, faPatchField, areaMesh > > reconstructField ( const IOobject fieldObject,
const PtrList< GeometricField< Type, faPatchField, areaMesh > > &   
) const

Reconstruct area field.

◆ reconstructAreaField() [1/2]

tmp< GeometricField< Type, faPatchField, areaMesh > > reconstructAreaField ( const IOobject fieldObject)

Read and reconstruct area field.

◆ reconstructField() [2/4]

tmp< GeometricField< Type, faePatchField, edgeMesh > > reconstructField ( const IOobject fieldObject,
const PtrList< GeometricField< Type, faePatchField, edgeMesh > > &   
) const

Reconstruct edge field.

◆ reconstructEdgeField() [1/2]

tmp< GeometricField< Type, faePatchField, edgeMesh > > reconstructEdgeField ( const IOobject fieldObject)

Read and reconstruct edge field.

◆ reconstructAreaFields() [1/4]

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

Read, reconstruct and write specified area fields.

◆ reconstructEdgeFields() [1/4]

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

Read, reconstruct and write specified edge fields.

◆ reconstructAreaFields() [2/4]

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

Read, reconstruct and write all/selected area fields.

An empty wordRes corresponds to select ALL.

◆ reconstructEdgeFields() [2/4]

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

Read, reconstruct and write all/selected edge fields.

An empty wordRes corresponds to select ALL.

◆ reconstructAllFields()

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

Reconstruct all supported area/edge field types.

Definition at line 60 of file faFieldReconstructor.C.

References doLocalCode.

◆ reconstructField() [3/4]

◆ reconstructField() [4/4]

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

Definition at line 272 of file faFieldReconstructorTemplates.C.

References boundary, GeometricField< Type, PatchField, GeoMesh >::boundaryField(), cp, forAll, GeometricField< Type, PatchField, GeoMesh >::internalField(), IOobject::name(), Foam::New(), IOobject::NO_READ, IOobject::NO_WRITE, Field< Type >::rmap(), PtrList< T >::set(), UPtrList< T >::size(), and UList< T >::size().

Here is the call graph for this function:

◆ reconstructAreaField() [2/2]

Foam::tmp< Foam::GeometricField< Type, Foam::faPatchField, Foam::areaMesh > > reconstructAreaField ( const IOobject fieldObject)

Definition at line 523 of file faFieldReconstructorTemplates.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:

◆ reconstructEdgeField() [2/2]

Foam::tmp< Foam::GeometricField< Type, Foam::faePatchField, Foam::edgeMesh > > reconstructEdgeField ( const IOobject fieldObject)

Definition at line 571 of file faFieldReconstructorTemplates.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:

◆ reconstructAreaFields() [3/4]

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

Definition at line 618 of file faFieldReconstructorTemplates.C.

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

Here is the call graph for this function:

◆ reconstructEdgeFields() [3/4]

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

Definition at line 653 of file faFieldReconstructorTemplates.C.

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

Here is the call graph for this function:

◆ reconstructAreaFields() [4/4]

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

Definition at line 688 of file faFieldReconstructorTemplates.C.

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

Here is the call graph for this function:

◆ reconstructEdgeFields() [4/4]

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

Definition at line 708 of file faFieldReconstructorTemplates.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 151 of file faFieldReconstructor.H.


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