Finite volume reconstructor for volume and surface fields. More...
Public Member Functions | |
parFvFieldReconstructor (fvMesh &baseMesh, const fvMesh &procMesh, const mapDistributePolyMesh &distMap, const bool isWriteProc) | |
Construct from components. More... | |
template<class Type > | |
tmp< DimensionedField< Type, volMesh > > | reconstructFvVolumeInternalField (const DimensionedField< Type, volMesh > &) 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 GeometricField< Type, fvPatchField, volMesh > &fld) 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 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 > | |
void | reconstructFvVolumeInternalFields (const IOobjectList &objects, const HashSet< word > &selectedFields) const |
Read, reconstruct and write all/selected volume internal fields. More... | |
template<class Type > | |
void | reconstructFvVolumeFields (const IOobjectList &objects, const HashSet< word > &selectedFields) const |
Read, reconstruct and write all/selected volume fields. More... | |
template<class Type > | |
void | reconstructFvSurfaceFields (const IOobjectList &objects, const HashSet< word > &selectedFields) const |
Read, reconstruct and write all/selected surface fields. More... | |
void | reconstructPoints () |
Helper: reconstruct and write mesh points. More... | |
parFvFieldReconstructor (fvMesh &baseMesh, const fvMesh &procMesh, const mapDistributePolyMesh &distMap, const bool isWriteProc) | |
Construct from components. More... | |
template<class Type > | |
tmp< DimensionedField< Type, volMesh > > | reconstructFvVolumeInternalField (const DimensionedField< Type, volMesh > &) 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 GeometricField< Type, fvPatchField, volMesh > &fld) 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 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 > | |
void | reconstructFvVolumeInternalFields (const IOobjectList &objects, const HashSet< word > &selectedFields) const |
Read, reconstruct and write all/selected volume internal fields. More... | |
template<class Type > | |
void | reconstructFvVolumeFields (const IOobjectList &objects, const HashSet< word > &selectedFields) const |
Read, reconstruct and write all/selected volume fields. More... | |
template<class Type > | |
void | reconstructFvSurfaceFields (const IOobjectList &objects, const HashSet< word > &selectedFields) const |
Read, reconstruct and write all/selected surface fields. More... | |
void | reconstructPoints () |
Helper: reconstruct and write mesh points. More... | |
template<class Type > | |
Foam::tmp< Foam::DimensionedField< Type, Foam::volMesh > > | reconstructFvVolumeInternalField (const DimensionedField< Type, volMesh > &fld) 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 GeometricField< Type, fvPatchField, volMesh > &fld) 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 GeometricField< Type, fvsPatchField, surfaceMesh > &fld) const |
template<class Type > | |
Foam::tmp< Foam::GeometricField< Type, Foam::fvsPatchField, Foam::surfaceMesh > > | reconstructFvSurfaceField (const IOobject &fieldIoObject) const |
Private Member Functions | |
void | createPatchFaceMaps () |
Construct per-patch addressing. More... | |
parFvFieldReconstructor (const parFvFieldReconstructor &) | |
Disallow default bitwise copy construct. More... | |
void | operator= (const parFvFieldReconstructor &) |
Disallow default bitwise assignment. More... | |
void | createPatchFaceMaps () |
Construct per-patch addressing. More... | |
parFvFieldReconstructor (const parFvFieldReconstructor &) | |
Disallow default bitwise copy construct. More... | |
void | operator= (const parFvFieldReconstructor &) |
Disallow default bitwise assignment. More... | |
Private Attributes | |
fvMesh & | baseMesh_ |
Reconstructed mesh reference. More... | |
const fvMesh & | procMesh_ |
Processor mesh reference. More... | |
const mapDistributePolyMesh & | distMap_ |
Distribution map reference. More... | |
const bool | isWriteProc_ |
Do I need to to write (usually master only) More... | |
PtrList< mapDistributeBase > | patchFaceMaps_ |
Patch mappers. More... | |
Finite volume reconstructor for volume and surface fields.
Runs in parallel. Reconstructs from procMesh to baseMesh. baseMesh is non-zero cells on processor0 only.
Runs in parallel. Reconstructs from procMesh to baseMesh. baseMesh is non-zero cells on processor0 only.
Definition at line 57 of file parFvFieldReconstructor.H.
|
private |
Disallow default bitwise copy construct.
parFvFieldReconstructor | ( | fvMesh & | baseMesh, |
const fvMesh & | procMesh, | ||
const mapDistributePolyMesh & | distMap, | ||
const bool | isWriteProc | ||
) |
Construct from components.
Definition at line 77 of file parFvFieldReconstructor.C.
|
private |
Disallow default bitwise copy construct.
parFvFieldReconstructor | ( | fvMesh & | baseMesh, |
const fvMesh & | procMesh, | ||
const mapDistributePolyMesh & | distMap, | ||
const bool | isWriteProc | ||
) |
Construct from components.
|
private |
Construct per-patch addressing.
Definition at line 31 of file parFvFieldReconstructor.C.
References parFvFieldReconstructor::baseMesh_, fvMesh::boundary(), polyMesh::boundaryMesh(), mapDistributeBase::constructSize(), parFvFieldReconstructor::distMap_, mapDistributePolyMesh::faceMap(), forAll, UPstream::msgType(), primitiveMesh::nFaces(), parFvFieldReconstructor::patchFaceMaps_, parFvFieldReconstructor::procMesh_, PtrList::size(), and polyPatch::start().
|
private |
Disallow default bitwise assignment.
tmp<DimensionedField<Type, volMesh> > reconstructFvVolumeInternalField | ( | const DimensionedField< Type, volMesh > & | ) | const |
Reconstruct volume internal field.
tmp<DimensionedField<Type, volMesh> > reconstructFvVolumeInternalField | ( | const IOobject & | fieldIoObject | ) | const |
Read and reconstruct volume internal field.
tmp<GeometricField<Type, fvPatchField, volMesh> > reconstructFvVolumeField | ( | const GeometricField< Type, fvPatchField, volMesh > & | fld | ) | const |
Reconstruct volume field.
tmp<GeometricField<Type, fvPatchField, volMesh> > reconstructFvVolumeField | ( | const IOobject & | fieldIoObject | ) | const |
Read and reconstruct volume field.
tmp<GeometricField<Type, fvsPatchField, surfaceMesh> > reconstructFvSurfaceField | ( | const GeometricField< Type, fvsPatchField, surfaceMesh > & | ) | const |
Reconstruct surface field.
tmp<GeometricField<Type, fvsPatchField, surfaceMesh> > reconstructFvSurfaceField | ( | const IOobject & | fieldIoObject | ) | const |
Read and reconstruct surface field.
void reconstructFvVolumeInternalFields | ( | const IOobjectList & | objects, |
const HashSet< word > & | selectedFields | ||
) | const |
Read, reconstruct and write all/selected volume internal fields.
Definition at line 420 of file parFvFieldReconstructorReconstructFields.C.
References HashTable< nil, word, string::hash >::empty(), Foam::endl(), fields, forAllConstIter(), HashTable< nil, word, string::hash >::found(), Foam::Info, IOobjectList::lookupClass(), and Foam::name().
Referenced by reconstructMeshFields().
void reconstructFvVolumeFields | ( | const IOobjectList & | objects, |
const HashSet< word > & | selectedFields | ||
) | const |
Read, reconstruct and write all/selected volume fields.
Definition at line 461 of file parFvFieldReconstructorReconstructFields.C.
References HashTable< nil, word, string::hash >::empty(), Foam::endl(), fields, forAllConstIter(), HashTable< nil, word, string::hash >::found(), Foam::Info, IOobjectList::lookupClass(), and Foam::name().
Referenced by reconstructMeshFields().
void reconstructFvSurfaceFields | ( | const IOobjectList & | objects, |
const HashSet< word > & | selectedFields | ||
) | const |
Read, reconstruct and write all/selected surface fields.
Definition at line 504 of file parFvFieldReconstructorReconstructFields.C.
References HashTable< nil, word, string::hash >::empty(), Foam::endl(), fields, forAllConstIter(), HashTable< nil, word, string::hash >::found(), Foam::Info, IOobjectList::lookupClass(), and Foam::name().
Referenced by reconstructMeshFields().
void reconstructPoints | ( | ) |
Helper: reconstruct and write mesh points.
(note: should be moved to something like processorMeshes class)
Definition at line 95 of file parFvFieldReconstructor.C.
References UPstream::master(), and UList::null().
|
private |
Construct per-patch addressing.
|
private |
Disallow default bitwise assignment.
tmp<DimensionedField<Type, volMesh> > reconstructFvVolumeInternalField | ( | const DimensionedField< Type, volMesh > & | ) | const |
Reconstruct volume internal field.
tmp<DimensionedField<Type, volMesh> > reconstructFvVolumeInternalField | ( | const IOobject & | fieldIoObject | ) | const |
Read and reconstruct volume internal field.
tmp<GeometricField<Type, fvPatchField, volMesh> > reconstructFvVolumeField | ( | const GeometricField< Type, fvPatchField, volMesh > & | fld | ) | const |
Reconstruct volume field.
tmp<GeometricField<Type, fvPatchField, volMesh> > reconstructFvVolumeField | ( | const IOobject & | fieldIoObject | ) | const |
Read and reconstruct volume field.
tmp<GeometricField<Type, fvsPatchField, surfaceMesh> > reconstructFvSurfaceField | ( | const GeometricField< Type, fvsPatchField, surfaceMesh > & | ) | const |
Reconstruct surface field.
tmp<GeometricField<Type, fvsPatchField, surfaceMesh> > reconstructFvSurfaceField | ( | const IOobject & | fieldIoObject | ) | const |
Read and reconstruct surface field.
void reconstructFvVolumeInternalFields | ( | const IOobjectList & | objects, |
const HashSet< word > & | selectedFields | ||
) | const |
Read, reconstruct and write all/selected volume internal fields.
void reconstructFvVolumeFields | ( | const IOobjectList & | objects, |
const HashSet< word > & | selectedFields | ||
) | const |
Read, reconstruct and write all/selected volume fields.
void reconstructFvSurfaceFields | ( | const IOobjectList & | objects, |
const HashSet< word > & | selectedFields | ||
) | const |
Read, reconstruct and write all/selected surface fields.
void reconstructPoints | ( | ) |
Helper: reconstruct and write mesh points.
(note: should be moved to something like processorMeshes class)
Foam::tmp<Foam::DimensionedField<Type, Foam::volMesh> > reconstructFvVolumeInternalField | ( | const DimensionedField< Type, volMesh > & | fld | ) | const |
Definition at line 46 of file parFvFieldReconstructorReconstructFields.C.
References fld(), and internalField().
Foam::tmp<Foam::DimensionedField<Type, Foam::volMesh> > reconstructFvVolumeInternalField | ( | const IOobject & | fieldIoObject | ) | const |
Definition at line 85 of file parFvFieldReconstructorReconstructFields.C.
References fld().
Foam::tmp<Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh> > reconstructFvVolumeField | ( | const GeometricField< Type, fvPatchField, volMesh > & | fld | ) | const |
Definition at line 105 of file parFvFieldReconstructorReconstructFields.C.
References fld(), forAll, Foam::identity(), internalField(), PtrList::set(), and PtrList::size().
Foam::tmp<Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh> > reconstructFvVolumeField | ( | const IOobject & | fieldIoObject | ) | const |
Definition at line 233 of file parFvFieldReconstructorReconstructFields.C.
References fld().
Foam::tmp<Foam::GeometricField<Type, Foam::fvsPatchField, Foam::surfaceMesh> > reconstructFvSurfaceField | ( | const GeometricField< Type, fvsPatchField, surfaceMesh > & | fld | ) | const |
Definition at line 252 of file parFvFieldReconstructorReconstructFields.C.
References UList::assign(), fld(), forAll, Foam::identity(), internalField(), Foam::min(), fvsPatchField::patch(), PtrList::set(), PtrList::size(), and fvPatch::start().
Foam::tmp<Foam::GeometricField<Type, Foam::fvsPatchField, Foam::surfaceMesh> > reconstructFvSurfaceField | ( | const IOobject & | fieldIoObject | ) | const |
Definition at line 403 of file parFvFieldReconstructorReconstructFields.C.
References fld().
|
private |
Reconstructed mesh reference.
Definition at line 62 of file parFvFieldReconstructor.H.
Referenced by parFvFieldReconstructor::createPatchFaceMaps().
|
private |
Processor mesh reference.
Definition at line 65 of file parFvFieldReconstructor.H.
Referenced by parFvFieldReconstructor::createPatchFaceMaps().
|
private |
Distribution map reference.
Definition at line 68 of file parFvFieldReconstructor.H.
Referenced by parFvFieldReconstructor::createPatchFaceMaps().
|
private |
Do I need to to write (usually master only)
Definition at line 71 of file parFvFieldReconstructor.H.
|
private |
Patch mappers.
Definition at line 74 of file parFvFieldReconstructor.H.
Referenced by parFvFieldReconstructor::createPatchFaceMaps().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.