Go to the documentation of this file.
45 patchType_(word::null)
61 patchType_(word::null)
78 patchType_(word::null)
94 patchType_(
dict.getOrDefault<
word>(
"patchType", word::null))
96 if (
dict.found(
"value"))
118 internalField_(ptf.internalField_),
120 patchType_(ptf.patchType_)
135 patchType_(ptf.patchType_)
145 return internalField_.
db();
152 if (&patch_ != &(ptf.patch_))
155 <<
"different patches for faPatchField<Type>s"
164 return (*
this - patchInternalField())*patch_.deltaCoeffs();
172 return patch_.patchInternalField(internalField_);
209 os.writeEntry(
"type",
type());
211 if (patchType_.size())
213 os.writeEntry(
"patchType", patchType_);
269 if (&patch_ != &ptf.
patch())
272 <<
"incompatible patches for patch fields"
286 if (&patch_ != &ptf.
patch())
289 <<
" incompatible patches for patch fields"
faPatchField(const faPatch &, const DimensionedField< Type, areaMesh > &)
Construct from patch and internal field.
faPatchField<Type> abstract base class. This class gives a fat-interface to all derived classes cover...
virtual void write(Ostream &) const
Write.
virtual tmp< Field< Type > > snGrad() const
Return patch-normal gradient.
A class for handling words, derived from Foam::string.
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 class for managing temporary objects.
void check(const faPatchField< Type > &) const
Check faPatchField<Type> against given faPatchField<Type>
virtual void autoMap(const faPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
Registry of regIOobjects.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
static void check(const int retVal, const char *what)
Generic templated field type.
virtual tmp< Field< Type > > patchInternalField() const
Return internal field next to patch as patch field.
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
Evaluate the patch field, sets Updated to false.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
errorManip< error > abort(error &err)
commsTypes
Types of communications.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
A traits class, which is primarily used for primitives.
const objectRegistry & db() const
Return local objectRegistry.
virtual void rmap(const faPatchField< Type > &, const labelList &)
Reverse map the given faPatchField onto this faPatchField.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Finite area patch class. Used for 2-D non-Euclidian finite area method.
const faPatch & patch() const
Return patch.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const objectRegistry & db() const noexcept
Return the local objectRegistry.