Go to the documentation of this file.
35 const std::string& str,
45 for (
const auto& item : items)
47 const std::string
s = item.str();
51 if (scalarRange::parse(
s,
range))
57 Info<<
"Bad scalar-range while parsing: " <<
s <<
endl;
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 collection of scalar bounds to be used as a unary predicate.
static scalarRanges parse(const std::string &str, bool verbose=true)
Construct by parsing string for scalar ranges.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Sub-ranges of a string with a structure similar to std::match_results, but without the underlying reg...
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
messageStream Info
Information stream (uses stdout - output is on the master only)
Scalar bounds to be used as a unary predicate.
Foam::SubStrings< StringType > splitAny(const StringType &str, const std::string &delim)
Split string into sub-strings using any characters in delimiter.