41 if (!IOobjectOption::isAnyRead(readOpt))
return false;
45 const auto* eptr =
dict.findEntry(
"value", keyType::LITERAL);
53 if (IOobjectOption::isReadRequired(readOpt))
56 <<
"Required entry 'value' : missing for patch " <<
p.name()
57 <<
" in dictionary " <<
dict.relativeName() <<
nl 146 const faePatchField<Type>& ptf,
148 const DimensionedField<Type, edgeMesh>& iF,
149 const faPatchFieldMapper& mapper
152 faePatchFieldBase(ptf,
p),
166 internalField_(ptf.internalField_)
415 Foam::Ostream& Foam::operator<<(Ostream& os, const faePatchField<Type>& ptf)
virtual void write(Ostream &os) const
Write.
void operator-=(const UList< Type > &)
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Template invariant parts for faePatchField.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
virtual void autoMap(const faPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
constexpr char nl
The newline '\n' character (0x0a)
bool readValueEntry(const dictionary &dict, IOobjectOption::readOption readOpt=IOobjectOption::LAZY_READ)
Read the "value" entry into *this.
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
Generic templated field type.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
void assign(Field< Tout > &result, const Field< T1 > &a, const UnaryOp &op)
Populate a field as the result of a unary operation on an input.
virtual void rmap(const faePatchField< Type > &, const labelList &)
Reverse map the given faePatchField onto this faePatchField.
OBJstream os(runTime.globalPath()/outputName)
void operator=(const Field< Type > &)
Copy assignment.
Finite area patch class. Used for 2-D non-Euclidian finite area method.
void autoMap(const FieldMapper &map, const bool applyFlip=true)
Map from self.
void rmap(const UList< Type > &mapF, const labelUList &mapAddressing)
1 to 1 reverse-map from the given field
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
void check(const faePatchField< Type > &) const
Check against given patch field.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const std::string patch
OpenFOAM patch number as a std::string.
faePatchField(const faPatch &, const DimensionedField< Type, edgeMesh > &)
Construct from patch and internal field.
faePatchField<Type> abstract base class. This class gives a fat-interface to all derived classes cove...
void operator+=(const UList< Type > &)
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 FieldMapper for finite-area patch fields.
void operator/=(const UList< scalar > &)
void checkPatch(const faePatchFieldBase &rhs) const
Check that patches are identical.
void operator*=(const UList< scalar > &)
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...
static constexpr const zero Zero
Global zero (0)
readOption
Enumeration defining read preferences.