42 if (!IOobjectOption::isAnyRead(readOpt))
return false;
46 const auto* eptr =
dict.findEntry(
"value", keyType::LITERAL);
54 if (IOobjectOption::isReadRequired(readOpt))
57 <<
"Required entry 'value' : missing for patch " <<
p.name()
58 <<
" in dictionary " <<
dict.relativeName() <<
nl 154 const faPatchField<Type>& ptf,
156 const DimensionedField<Type, areaMesh>& iF,
157 const faPatchFieldMapper& mapper
160 faPatchFieldBase(ptf,
p),
174 internalField_(ptf.internalField_)
203 return (*
this - patchInternalField())*
patch().deltaCoeffs();
211 return patch().patchInternalField(internalField_);
218 patch().patchInternalField(internalField_, pfld);
264 if (!patchType().empty())
461 Foam::Ostream& Foam::operator<<(Ostream& os, const faPatchField<Type>& ptf)
virtual void autoMap(const faPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
void operator-=(const UList< Type > &)
void check(const faPatchField< Type > &) const
Check against given patch field.
virtual void write(Ostream &os) const
Write.
errorManipArg< error, int > exit(error &err, const int errNo=1)
commsTypes
Communications types.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
virtual tmp< Field< Type > > snGrad() const
Return patch-normal gradient.
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::buffered)
Evaluate the patch field, sets updated() to false.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
constexpr char nl
The newline '\n' character (0x0a)
Template invariant parts for faPatchField.
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
void extrapolateInternal()
Assign the patch field from the internal field.
faPatchField<Type> abstract base class. This class gives a fat-interface to all derived classes cover...
void setUpdated(bool state) noexcept
Set updated state.
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.
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.
virtual tmp< Field< Type > > patchInternalField() const
Return internal field next to patch.
void checkPatch(const faPatchFieldBase &rhs) const
Check that patches are identical.
void autoMap(const FieldMapper &map, const bool applyFlip=true)
Map from self.
virtual void rmap(const faPatchField< Type > &, const labelList &)
Reverse map the given faPatchField onto this faPatchField.
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.
virtual void updateCoeffs()
Update the coefficients associated with the 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.
void operator+=(const UList< Type > &)
A class for managing temporary objects.
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 operator*=(const UList< scalar > &)
bool readValueEntry(const dictionary &dict, IOobjectOption::readOption readOpt=IOobjectOption::LAZY_READ)
Read the "value" entry into *this.
faPatchField(const faPatch &, const DimensionedField< Type, areaMesh > &)
Construct from patch and internal field.
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.