93#ifndef functionObjects_nearWallFields_H
94#define functionObjects_nearWallFields_H
105namespace functionObjects
114 public fvMeshFunctionObject
152 PtrList<volScalarField>
vsf_;
153 PtrList<volVectorField>
vvf_;
155 PtrList<volSymmTensorField>
vSymmtf_;
156 PtrList<volTensorField>
vtf_;
222 virtual bool write();
Info<< nl<< "Wrote faMesh in vtk format: "<< writer.output().name()<< nl;}{ vtk::lineWriter writer(aMesh.points(), aMesh.edges(), fileName(aMesh.mesh().time().globalPath()/"finiteArea-edges"));writer.writeGeometry();writer.beginCellData(4);writer.writeProcIDs();{ Field< scalar > fld(faMeshTools::flattenEdgeField(aMesh.magLe(), true))
Generic GeometricField class.
A HashTable similar to std::unordered_map.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const word & name() const noexcept
Return the name of this functionObject.
Specialization of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
Samples near-patch volume fields within an input distance range.
scalar distance_
Distance away from wall.
HashTable< word > reverseFieldMap_
From resulting back to original field.
virtual ~nearWallFields()=default
Destructor.
autoPtr< mapDistribute > getPatchDataMapPtr_
Map from cell based data back to patch based data.
PtrList< volScalarField > vsf_
List< Tuple2< word, word > > fieldSet_
Fields to process (input-name output-name)
List< List< point > > cellToSamples_
From cell to tracked end point.
virtual bool read(const dictionary &dict)
Read the controls.
labelListList cellToWalls_
From cell to seed patch faces.
void calcAddressing()
Calculate addressing from cells back to patch faces.
void createFields(PtrList< GeometricField< Type, fvPatchField, volMesh > > &) const
void sampleBoundaryField(const interpolationCellPoint< Type > &interpolator, GeometricField< Type, fvPatchField, volMesh > &fld) const
Override boundary fields with sampled values.
PtrList< volTensorField > vtf_
TypeName("nearWallFields")
Runtime type information.
void sampleFields(PtrList< GeometricField< Type, fvPatchField, volMesh > > &) const
labelHashSet patchSet_
Patches to sample.
PtrList< volSymmTensorField > vSymmtf_
nearWallFields(const nearWallFields &)=delete
No copy construct.
PtrList< volVectorField > vvf_
virtual bool execute()
Calculate the near-wall fields.
PtrList< volSphericalTensorField > vSpheretf_
void operator=(const nearWallFields &)=delete
No copy assignment.
virtual bool write()
Write the near-wall fields.
HashTable< word > fieldMap_
From original field to sampled result.
Given cell centre values and point (vertex) values decompose into tetrahedra and linear interpolate w...
A class for handling words, derived from Foam::string.
List< labelList > labelListList
A List of labelList.
HashSet< label, Hash< label > > labelHashSet
A HashSet of labels, uses label hasher.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.