82 const bool valueRequired
107 const faPatchField<Type>& ptf
110 faPatchFieldBase(ptf),
112 internalField_(ptf.internalField_)
135 return internalField_.
db();
149 return (*
this - patchInternalField())*
patch().deltaCoeffs();
157 return patch().patchInternalField(internalField_);
203 if (!patchType().empty())
400 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 faPatchField<Type> against given faPatchField<Type>
commsTypes
Types of communications.
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 bool check(const char *operation) const
Check IOstream status for given operation.
Template invariant parts for faPatchField.
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
faPatchField<Type> abstract base class. This class gives a fat-interface to all derived classes cover...
virtual void write(Ostream &) const
Write.
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.
const objectRegistry & db() const noexcept
Return the local objectRegistry.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
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 as patch field.
void checkPatch(const faPatchFieldBase &rhs) const
Check that patches are identical.
void assign(const entry &e, const label len)
Assign from a dictionary (primitive) entry.
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.
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
Evaluate the patch field, sets Updated to false.
void rmap(const UList< Type > &mapF, const labelUList &mapAddressing)
1 to 1 reverse-map from the given field
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.
const objectRegistry & db() const
Return local objectRegistry.
void operator+=(const UList< Type > &)
A class for managing temporary objects.
Registry of regIOobjects.
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 > &)
faPatchField(const faPatch &, const DimensionedField< Type, areaMesh > &)
Construct from patch and internal field.
static constexpr const zero Zero
Global zero (0)