45 manipulatedMatrix_(
false),
46 patchType_(word::null)
62 manipulatedMatrix_(
false),
63 patchType_(word::null)
73 const bool valueRequired
80 manipulatedMatrix_(
false),
85 if (dict.
found(
"value"))
97 ) <<
"Essential entry 'value' missing" 111 const bool mappingRequired
118 manipulatedMatrix_(
false),
119 patchType_(ptf.patchType_)
141 internalField_(ptf.internalField_),
143 manipulatedMatrix_(
false),
144 patchType_(ptf.patchType_)
159 manipulatedMatrix_(
false),
160 patchType_(ptf.patchType_)
169 return patch_.boundaryMesh().mesh();
176 if (&patch_ != &(ptf.patch_))
179 <<
"different patches for fvPatchField<Type>s" 188 return patch_.deltaCoeffs()*(*
this - patchInternalField());
196 return patch_.patchInternalField(internalField_);
203 patch_.patchInternalField(internalField_, pif);
213 mapper(*
this, *
this);
257 manipulatedMatrix_ =
false;
264 manipulatedMatrix_ =
true;
275 manipulatedMatrix_ =
true;
284 if (patchType_.size())
294 void Foam::fvPatchField<Type>::operator=
304 void Foam::fvPatchField<Type>::operator=
315 void Foam::fvPatchField<Type>::operator+=
326 void Foam::fvPatchField<Type>::operator-=
337 void Foam::fvPatchField<Type>::operator*=
342 if (&patch_ != &ptf.
patch())
345 <<
"incompatible patches for patch fields" 354 void Foam::fvPatchField<Type>::operator/=
359 if (&patch_ != &ptf.
patch())
370 void Foam::fvPatchField<Type>::operator+=
380 void Foam::fvPatchField<Type>::operator-=
390 void Foam::fvPatchField<Type>::operator*=
400 void Foam::fvPatchField<Type>::operator/=
410 void Foam::fvPatchField<Type>::operator=
420 void Foam::fvPatchField<Type>::operator+=
430 void Foam::fvPatchField<Type>::operator-=
440 void Foam::fvPatchField<Type>::operator*=
450 void Foam::fvPatchField<Type>::operator/=
460 void Foam::fvPatchField<Type>::operator==
470 void Foam::fvPatchField<Type>::operator==
480 void Foam::fvPatchField<Type>::operator==
492 Foam::Ostream& Foam::operator<<(Ostream& os, const fvPatchField<Type>& ptf)
496 os.check(
"Ostream& operator<<(Ostream&, const fvPatchField<Type>&");
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
virtual tmp< Field< Type > > snGrad() const
Return patch-normal gradient.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
commsTypes
Types of communications.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void write(Ostream &) const
Write.
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().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))
Pre-declare SubField and related Field type.
A class for handling words, derived from string.
Foam::fvPatchFieldMapper.
virtual void rmap(const fvPatchField< Type > &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
A special matrix type and solver, designed for finite volume solutions of scalar equations. Face addressing is used to make all matrix assembly and solution loops vectorise.
virtual bool hasUnmapped() const =0
Are there unmapped values? I.e. do all size() elements get.
virtual void manipulateMatrix(fvMatrix< Type > &matrix)
Manipulate matrix.
void check(const fvPatchField< Type > &) const
Check fvPatchField<Type> against given fvPatchField<Type>
errorManip< error > abort(error &err)
const fvPatch & patch() const
Return patch.
virtual label size() const
Return size.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual tmp< Field< Type > > patchInternalField() const
Return internal field next to patch as patch field.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
bool notNull(const T &t)
Return true if t is not a reference to the nullObject of type T.
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
Evaluate the patch field, sets Updated to false.
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const objectRegistry & db() const
Return local objectRegistry.
virtual void updateWeightedCoeffs(const scalarField &weights)
Update the coefficients associated with the patch field.
A class for managing temporary objects.
Registry of regIOobjects.
fvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.