61 <<
"Selecting sampledType " << sampleType <<
endl;
63 auto* ctorPtr = wordConstructorTable(sampleType);
72 *wordConstructorTablePtr_
97 const bool interpolateToPoints
104 isPointData_(interpolateToPoints),
118 enabled_(
dict.getOrDefault(
"enabled", true)),
119 invariant_(
dict.getOrDefault(
"invariant", false)),
120 isPointData_(
dict.getOrDefault(
"interpolate", false)),
139 area_ =
gSum(magSf());
148 bool old(isPointData_);
Minimal example by using system/controlDict.functions:
virtual bool check(const char *operation) const
Check IOstream status for given operation.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
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,...
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
scalar print()
Print to screen.
Mesh consisting of general polyhedral cells.
An abstract class for surfaces with sampling.
bool isPointData() const noexcept
Using interpolation to surface points.
virtual void clearGeom() const
Additional cleanup when clearing the geometry.
virtual ~sampledSurface()
Destructor - calls clearGeom()
virtual bool withSurfaceFields() const
Can it sample surface-fields?
scalar area() const
The total surface area.
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
OBJstream os(runTime.globalPath()/outputName)
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))
#define DebugInfo
Report an information message using Foam::Info.
Type gSum(const FieldField< Field, Type > &f)
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
Ostream & endl(Ostream &os)
Add newline and flush stream.
const T & NullObjectRef()
Reference (of type T) to the nullObject.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define defineRunTimeSelectionTable(baseType, argNames)
Define run-time selection table.