Go to the documentation of this file.
48 manipulatedMatrix_(
false),
49 patchType_(word::null)
65 manipulatedMatrix_(
false),
66 patchType_(word::null)
82 manipulatedMatrix_(
false),
99 manipulatedMatrix_(
false),
100 patchType_(word::null)
110 const bool valueRequired
117 manipulatedMatrix_(
false),
118 patchType_(
dict.getOrDefault<
word>(
"patchType", word::null))
122 if (
dict.found(
"value"))
132 <<
"Essential entry 'value' missing on patch " <<
p.name() <<
nl
152 manipulatedMatrix_(
false),
153 patchType_(ptf.patchType_)
160 this->map(ptf, mapper);
172 internalField_(ptf.internalField_),
174 manipulatedMatrix_(
false),
175 patchType_(ptf.patchType_)
190 manipulatedMatrix_(
false),
191 patchType_(ptf.patchType_)
200 return patch_.boundaryMesh().mesh();
207 if (&patch_ != &(ptf.patch_))
210 <<
"different patches for fvPatchField<Type>s"
219 return patch_.deltaCoeffs()*(*
this - patchInternalField());
227 return patch_.patchInternalField(internalField_);
234 patch_.patchInternalField(internalField_, pif);
248 f.setSize(mapper.
size());
251 f = this->patchInternalField();
276 if (mapAddressing[i] < 0)
288 const labelList& localAddrs = mapAddressing[i];
290 if (!localAddrs.size())
341 manipulatedMatrix_ =
false;
348 manipulatedMatrix_ =
true;
359 manipulatedMatrix_ =
true;
368 if (patchType_.size())
426 if (&patch_ != &ptf.
patch())
429 <<
"incompatible patches for patch fields"
443 if (&patch_ != &ptf.
patch())
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
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.
virtual label size() const =0
virtual bool direct() const =0
virtual bool hasUnmapped() const =0
Are there unmapped values? I.e. do all size() elements get.
#define forAll(list, i)
Loop across all elements in list.
Registry of regIOobjects.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
Generic templated field type.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
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.
bool notNull(const T *ptr)
True if ptr is not a pointer (of type T) to the nullObject.
virtual void rmap(const fvPatchField< Type > &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual const labelUList & directAddressing() const
errorManip< error > abort(error &err)
virtual void manipulateMatrix(fvMatrix< Type > &matrix)
Manipulate matrix.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
errorManipArg< error, int > exit(error &err, const int errNo=1)
commsTypes
Types of communications.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
virtual const labelListList & addressing() const
void check(const fvPatchField< Type > &) const
Check fvPatchField<Type> against given fvPatchField<Type>
const objectRegistry & db() const
Return local objectRegistry.
A special matrix type and solver, designed for finite volume solutions of scalar equations....
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
void size(const label n) noexcept
Override size to be inconsistent with allocated storage.
fvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
Foam::fvPatchFieldMapper.
const fvPatch & patch() const
Return patch.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual void updateWeightedCoeffs(const scalarField &weights)
Update the coefficients associated with the patch field.
virtual bool distributed() const
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...