37 namespace functionObjects
50 label nPatchFaces = 0;
73 label nLocateBoundaryHits = 0;
89 patch.
Cf()[patchFacei],
168 /
"obtainedTracks_" +
time_.
name() +
".obj"
216 dict.lookup(
"fields") >> fieldSet_;
217 patchSet_ = patchSet(
dict);
218 distance_ =
dict.lookup<scalar>(
"distance");
228 reverseFieldMap_.clear();
234 fieldMap_.resize(2*fieldSet_.size());
235 reverseFieldMap_.resize(2*fieldSet_.size());
238 const word& fieldName = fieldSet_[seti].first();
239 const word& sampleFieldName = fieldSet_[seti].second();
241 fieldMap_.insert(fieldName, sampleFieldName);
242 reverseFieldMap_.insert(sampleFieldName, fieldName);
246 <<
": Sampling " << fieldMap_.size() <<
" fields" <<
endl;
261 fields[fieldi] = fieldSet_[fieldi].first();
277 && vSpheretf_.empty()
283 <<
": Creating " << fieldMap_.size() <<
" fields" <<
endl;
287 createFields(vSpheretf_);
288 createFields(vSymmtf_);
296 <<
" Sampling fields to " << time_.name()
301 sampleFields(vSpheretf_);
302 sampleFields(vSymmtf_);
313 Log <<
" Writing sampled fields to " << time_.name()
326 vSpheretf_[i].write();
#define forAll(list, i)
Loop across all elements in list.
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
Macros for easy insertion into run-time selection tables.
Base cloud calls templated on particle type.
Template class for intrusive linked lists.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void setSize(const label)
Reset size of List.
OFstream which keeps track of vertices.
virtual Ostream & write(const char)
Write character.
const fileName & name() const
Return the name of the stream.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
fileName path() const
Explicitly inherit path from TimePaths to disambiguate from.
label size() const
Return the number of elements in the UPtrList.
A cloud is a collection of lagrangian particles.
static word defaultName
The default cloud name: defaultCloud.
A list of keyword definitions, which are a keyword followed by any number of values (e....
const word & name() const
Return const reference to name.
Class containing processor-to-processor mapping information.
Class used to pass tracking data to the trackToFace function.
Particle class that finds cells by tracking.
Abstract base-class for Time/database functionObjects.
const Time & time_
Reference to time.
Specialisation of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
const fvMesh & mesh_
Reference to the fvMesh.
Samples near-patch volume fields.
scalar distance_
Distance away from wall.
virtual wordList fields() const
Return the list of fields required.
virtual ~nearWallFields()
Destructor.
List< List< point > > cellToSamples_
From cell to tracked end point.
labelListList cellToWalls_
From cell to seed patch faces.
void calcAddressing()
Calculate addressing from cells back to patch faces.
labelHashSet patchSet_
Patches to sample.
nearWallFields(const word &name, const Time &runTime, const dictionary &dict)
Construct for given objectRegistry and dictionary.
autoPtr< distributionMap > getPatchDataMapPtr_
Map from cell based data back to patch based data.
virtual bool execute()
Calculate the near-wall fields.
virtual bool write()
Write the near-wall fields.
virtual bool read(const dictionary &)
Read the controls.
virtual bool read(const dictionary &)
Read optional controls.
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
tmp< vectorField > nf() const
Return face normals.
const vectorField & Cf() const
Return face centres.
virtual const labelUList & faceCells() const
Return faceCells.
Calculates a unique integer (label so might not have enough room - 2G max) for processor + local inde...
label size() const
Global sum of localSizes.
label toGlobal(const label i) const
From local to global.
vector position(const polyMesh &mesh) const
Return current particle position.
A class for handling words, derived from string.
Info<< "Calculating turbulent flame speed field St\n"<< endl;volScalarField St(IOobject("St", runTime.name(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), flameWrinkling->Xi() *Su);multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields
#define Log
Report write to Foam::Info if the local log switch is true.
#define DebugInFunction
Report an information message using Foam::Info.
#define InfoInFunction
Report an information message using Foam::Info.
defineTypeNameAndDebug(adjustTimeStepToCombustion, 0)
addToRunTimeSelectionTable(functionObject, adjustTimeStepToCombustion, dictionary)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.
line< point, const point & > linePointRef
Line using referred points.
word name(const bool)
Return a word representation of a bool.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.