Go to the documentation of this file.
48 manipulatedMatrix_(
false),
66 manipulatedMatrix_(
false),
84 manipulatedMatrix_(
false),
102 manipulatedMatrix_(
false),
114 const bool valueRequired
121 manipulatedMatrix_(
false),
122 useImplicit_(
dict.getOrDefault<
bool>(
"useImplicit",
false)),
123 patchType_(
dict.getOrDefault<
word>(
"patchType", word::null))
127 if (
dict.found(
"value"))
137 <<
"Essential entry 'value' missing on patch " <<
p.name() <<
nl
157 manipulatedMatrix_(
false),
158 useImplicit_(ptf.useImplicit_),
159 patchType_(ptf.patchType_)
166 this->map(ptf, mapper);
178 internalField_(ptf.internalField_),
180 manipulatedMatrix_(
false),
181 useImplicit_(ptf.useImplicit_),
182 patchType_(ptf.patchType_)
197 manipulatedMatrix_(
false),
198 useImplicit_(ptf.useImplicit_),
199 patchType_(ptf.patchType_)
208 return patch_.boundaryMesh().mesh();
215 if (&patch_ != &(ptf.patch_))
218 <<
"different patches for fvPatchField<Type>s"
227 return patch_.deltaCoeffs()*(*
this - patchInternalField());
235 return patch_.patchInternalField(internalField_);
242 patch_.patchInternalField(internalField_, pif);
256 f.setSize(mapper.
size());
259 f = this->patchInternalField();
284 if (mapAddressing[i] < 0)
296 const labelList& localAddrs = mapAddressing[i];
298 if (!localAddrs.size())
349 manipulatedMatrix_ =
false;
356 manipulatedMatrix_ =
true;
367 manipulatedMatrix_ =
true;
379 manipulatedMatrix_ =
true;
386 os.writeEntry(
"type",
type());
390 os.writeEntry(
"useImplicit",
"true");
393 if (patchType_.size())
395 os.writeEntry(
"patchType", patchType_);
451 if (&patch_ != &ptf.
patch())
454 <<
"incompatible patches for patch fields"
468 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)
static void check(const int retVal, const char *what)
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.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
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....
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.
void size(const label n)
Older name for setAddressableSize.
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...