Go to the documentation of this file.
45 "surfaceSphericalTensorField",
46 "surfaceSymmTensorField",
71 <<
"Selecting sampledType " << sampleType <<
endl;
73 auto* ctorPtr = wordConstructorTable(sampleType);
82 *wordConstructorTablePtr_
107 const bool interpolateToPoints
114 isPointData_(interpolateToPoints),
149 area_ =
gSum(magSf());
158 bool old(isPointData_);
static autoPtr< sampledSurface > New(const word &name, const polyMesh &mesh, const dictionary &dict)
Return a reference to the selected surface.
A class for handling words, derived from Foam::string.
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;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
A class for managing temporary objects.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
scalar area() const
The total surface area.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Type gSum(const FieldField< Field, Type > &f)
static const wordList surfaceFieldTypes
Class names for surface field types.
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Mesh consisting of general polyhedral cells.
virtual tmp< scalarField > sample(const interpolation< scalar > &sampler) const =0
Sample volume field onto surface faces.
const T & NullObjectRef()
Reference (of type T) to the nullObject.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
An abstract class for surfaces with sampling.
virtual void print(Ostream &os, int level=0) const
Print information.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
bool isPointData() const noexcept
Using interpolation to surface points.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define DebugInfo
Report an information message using Foam::Info.
virtual bool withSurfaceFields() const
Can it sample surface-fields?
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
virtual ~sampledSurface()
Destructor - calls clearGeom()
virtual void clearGeom() const
Additional cleanup when clearing the geometry.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
T getOrDefault(const word &keyword, const T &deflt, enum keyType::option matchOpt=keyType::REGEX) const
defineTypeNameAndDebug(combustionModel, 0)
sampledSurface(const word &name, std::nullptr_t)
Construct null.