76 #ifndef functionObjects_nearWallFields_H 77 #define functionObjects_nearWallFields_H 88 namespace functionObjects
97 public fvMeshFunctionObject
202 virtual bool write();
virtual bool write()
Write the near-wall fields.
const word & name() const
Return the name of this functionObject.
A list of keyword definitions, which are a keyword followed by any number of values (e...
HashTable< word > reverseFieldMap_
From resulting back to original field.
void calcAddressing()
Calculate addressing from cells back to patch faces.
void sampleBoundaryField(const interpolationCellPoint< Type > &interpolator, GeometricField< Type, fvPatchField, volMesh > &fld) const
Override boundary fields with sampled values.
virtual ~nearWallFields()
Destructor.
Generic GeometricField class.
List< List< point > > cellToSamples_
From cell to tracked end point.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
List< Tuple2< word, word > > fieldSet_
Fields to process.
HashSet< label, Hash< label > > labelHashSet
A HashSet with label keys.
virtual bool execute()
Calculate the near-wall fields.
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< ' ';}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< ' ';}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< ' ';}gmvFile<< nl;forAll(lagrangianScalarNames, i){ const word &name=lagrangianScalarNames[i];IOField< scalar > fld(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
PtrList< volScalarField > vsf_
autoPtr< mapDistribute > getPatchDataMapPtr_
Map from cell based data back to patch based data.
A class for handling words, derived from string.
HashTable< word > fieldMap_
From original field to sampled result.
PtrList< volTensorField > vtf_
labelListList cellToWalls_
From cell to seed patch faces.
nearWallFields(const word &name, const Time &runTime, const dictionary &dict)
Construct for given objectRegistry and dictionary.
void operator=(const nearWallFields &)=delete
Disallow default bitwise assignment.
Samples near-patch volume fields.
PtrList< volVectorField > vvf_
Given cell centre values and point (vertex) values decompose into tetrahedra and linear interpolate w...
labelHashSet patchSet_
Patches to sample.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
PtrList< volSymmTensorField > vSymmtf_
TypeName("nearWallFields")
Runtime type information.
virtual bool read(const dictionary &)
Read the controls.
void createFields(PtrList< GeometricField< Type, fvPatchField, volMesh >> &) const
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
void sampleFields(PtrList< GeometricField< Type, fvPatchField, volMesh >> &) const
scalar distance_
Distance away from wall.
PtrList< volSphericalTensorField > vSpheretf_