93 #ifndef Foam_functionObjects_nearWallFields_H 94 #define Foam_functionObjects_nearWallFields_H 105 namespace functionObjects
114 public fvMeshFunctionObject
152 PtrList<volScalarField>
vsf_;
153 PtrList<volVectorField>
vvf_;
155 PtrList<volSymmTensorField>
vSymmtf_;
156 PtrList<volTensorField>
vtf_;
222 virtual bool write();
virtual bool write()
Write the near-wall fields.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
HashTable< word > reverseFieldMap_
From resulting back to original field.
labelList patchIDs_
Patches to sample.
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.
Generic GeometricField class.
List< labelList > labelListList
List of labelList.
List< List< point > > cellToSamples_
From cell to tracked end point.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
const word & name() const noexcept
Return the name of this functionObject.
List< Tuple2< word, word > > fieldSet_
Fields to process (input-name output-name)
virtual bool execute()
Calculate the near-wall fields.
virtual bool read(const dictionary &dict)
Read the controls.
PtrList< volScalarField > vsf_
autoPtr< mapDistribute > getPatchDataMapPtr_
Map from cell based data back to patch based data.
A class for handling words, derived from Foam::string.
HashTable< word > fieldMap_
From original field to sampled result.
PtrList< volTensorField > vtf_
labelListList cellToWalls_
From cell to seed patch faces.
virtual ~nearWallFields()=default
Destructor.
nearWallFields(const word &name, const Time &runTime, const dictionary &dict)
Construct for given objectRegistry and dictionary.
void operator=(const nearWallFields &)=delete
No copy assignment.
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< ' ';}gmvFile<< nl;for(const word &name :lagrangianScalarNames){ IOField< scalar > fld(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
Samples near-patch volume fields within an input distance range.
PtrList< volVectorField > vvf_
Given cell centre values and point (vertex) values decompose into tetrahedra and linear interpolate w...
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers...
PtrList< volSymmTensorField > vSymmtf_
TypeName("nearWallFields")
Runtime type information.
void createFields(PtrList< GeometricField< Type, fvPatchField, volMesh >> &) const
List< label > labelList
A List of labels.
void sampleFields(PtrList< GeometricField< Type, fvPatchField, volMesh >> &) const
scalar distance_
Distance away from wall.
PtrList< volSphericalTensorField > vSpheretf_