Go to the documentation of this file.
43 fixedValueFvPatchVectorField(
p, iF),
57 fixedValueFvPatchVectorField(ptf,
p, iF, mapper),
60 if (!isA<mappedPatchBase>(this->patch().patch()))
63 <<
"Patch type '" <<
p.type()
64 <<
"' not type '" << mappedPatchBase::typeName <<
"'"
65 <<
" for patch " <<
p.name()
81 fixedValueFvPatchVectorField(
p, iF,
dict),
82 phiName_(
dict.lookupOrDefault<
word>(
"phi",
"phi"))
84 if (!isA<mappedPatchBase>(this->patch().patch()))
87 <<
"Patch type '" <<
p.type()
88 <<
"' not type '" << mappedPatchBase::typeName <<
"'"
89 <<
" for patch " <<
p.name()
99 if (mpp.
mode() == mappedPolyPatch::NEARESTCELL)
102 <<
"Patch " <<
p.name()
103 <<
" of type '" <<
p.type()
104 <<
"' can not be used in 'nearestCell' mode"
118 fixedValueFvPatchVectorField(ptf),
130 fixedValueFvPatchVectorField(ptf, iF),
152 mappedVelocityFluxFixedValueFvPatchField::patch().patch()
177 const scalarField& phipf = phiField.boundaryField()[patchI];
183 allUValues[faceStart + faceI] = Upf[faceI];
184 allPhiValues[faceStart + faceI] = phipf[faceI];
189 newUValues.transfer(allUValues);
192 newPhiValues.transfer(allPhiValues);
199 const label nbrPatchID =
205 newPhiValues = phiField.boundaryField()[nbrPatchID];
213 <<
"patch can only be used in NEARESTPATCHFACE, "
214 <<
"NEARESTPATCHFACEAMI or NEARESTFACE mode" <<
nl
220 phiField.boundaryField()[patch().index()] == newPhiValues;
225 fixedValueFvPatchVectorField::updateCoeffs();
235 writeEntryIfDifferent<word>(os,
"phi",
"phi", phiName_);
236 this->writeEntry(
"value", os);
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void write(Ostream &) const
Write.
label findPatchID(const word &patchName) const
Find patch index given a name.
A class for handling words, derived from string.
#define forAll(list, i)
Loop across all elements in list.
rDeltaT dimensionedInternalField()
GeometricBoundaryField & boundaryField()
Return reference to GeometricBoundaryField.
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
Determines a mapping between patch face centres and mesh cell or face centres and processors they're ...
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
const polyMesh & sampleMesh() const
Get the region mesh.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
This boundary condition maps the velocity and flux from a neighbour patch to this patch.
void distribute(List< Type > &lst) const
Wrapper around map/interpolate data distribution.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
virtual void write(Ostream &) const
Write.
const sampleMode & mode() const
What to sample.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Macros for easy insertion into run-time selection tables.
Mesh data needed to do the Finite Volume discretisation.
word phiName_
Name of flux field.
errorManip< error > abort(error &err)
makePatchTypeField(fvPatchVectorField, SRFFreestreamVelocityFvPatchVectorField)
errorManipArg< error, int > exit(error &err, const int errNo=1)
static int & msgType()
Message tag of standard messages.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
mappedVelocityFluxFixedValueFvPatchField(const fvPatch &, const DimensionedField< vector, volMesh > &)
Construct from patch and internal field.
label start() const
Return start label of this patch in the polyMesh face list.
Foam::fvPatchFieldMapper.
const fvPatch & patch() const
Return patch.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Generic GeometricField class.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const word & samplePatch() const
Patch (only if NEARESTPATCHFACE)