Go to the documentation of this file.
40 namespace functionObjects
49 bool Foam::functionObjects::dataCloud::writeCloud
74 objPtr->writeObjects(obrTmp);
85 reduce(applyFilter_, orOp<bool>());
92 const label nTotParcels =
returnReduce(nParcels, sumOp<label>());
97 Log <<
"After filtering using " << nTotParcels <<
'/'
123 Foam::functionObjects::dataCloud::dataCloud
132 precision_(
IOstream::defaultPrecision()),
148 const int padWidth =
dict.getOrDefault<
int>(
"width", 8);
151 if (padWidth < 1 || padWidth > 31)
157 printf_ =
"%0" + std::to_string(padWidth) +
"d";
164 selectClouds_.clear();
165 dict.readIfPresent(
"clouds", selectClouds_);
167 if (selectClouds_.empty())
169 selectClouds_.resize(1);
170 selectClouds_.first() =
174 dict.readEntry(
"field", fieldName_);
177 parcelSelect_ =
dict.subOrEmptyDict(
"selection");
182 dict.readIfPresent(
"directory", directory_);
184 if (directory_.size())
188 if (!directory_.isAbsolute())
190 directory_ = time_.globalPath()/directory_;
212 const wordList cloudNames(mesh_.sortedNames<
cloud>(selectClouds_));
214 if (cloudNames.empty())
219 const word timeDesc =
"_" +
226 Log <<
name() <<
" output Time: " << time_.timeName() <<
nl;
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling words, derived from Foam::string.
const word cloudName(propsDict.get< word >("cloud"))
A class for handling file names.
T returnReduce(const T &Value, const BinaryOp &bop, const int tag=Pstream::msgType(), const label comm=UPstream::worldComm)
bool read(const char *buf, int32_t &val)
An IOstream is an abstract base class for all input/output systems; be they streams,...
static bool master(const label communicator=worldComm)
Ostream & endl(Ostream &os)
Specialization of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
unsigned int count(const bool on=true) const
bool calculateFilter(const objectRegistry &obrTmp, const bool log=true)
word outputName("finiteArea-edges.obj")
void reduce(const List< UPstream::commsStruct > &comms, T &Value, const BinaryOp &bop, const int tag, const label comm)
virtual bool read(const dictionary &dict)
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual bool read(const dictionary &dict)
Macros for easy insertion into run-time selection tables.
static unsigned int defaultPrecision() noexcept
A cloud is a registry collection of lagrangian particles.
const Type * findObject(const word &name, const bool recursive=false) const
addToRunTimeSelectionTable(functionObject, ObukhovLength, dictionary)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
defineTypeNameAndDebug(ObukhovLength, 0)
static const IOField< point > * findIOPosition(const objectRegistry &obr)
word name(const expressions::valueTypeCode typeCode)
static word printf(const char *fmt, const PrimitiveType &val)
const Time & time() const
const word & constant() const
bool mkDir(const fileName &pathName, mode_t mode=0777)