Go to the documentation of this file.
42 refValue_(
p.size(),
Zero),
43 valueFraction_(
p.size(), 1.0),
58 refValue_(ptf.refValue_, mapper),
59 valueFraction_(ptf.valueFraction_, mapper),
60 writeValue_(ptf.writeValue_)
73 refValue_(
p.size(),
Zero),
74 valueFraction_(
"valueFraction",
dict,
p.size()),
75 writeValue_(
dict.getOrDefault(
"writeValue",
false))
77 this->patchType() =
dict.getOrDefault<
word>(
"patchType", word::null);
80 if (
dict.found(
"refValue"))
96 refValue_(ptf.refValue_),
97 valueFraction_(ptf.valueFraction_),
98 writeValue_(ptf.writeValue_)
110 refValue_(ptf.refValue_),
111 valueFraction_(ptf.valueFraction_),
112 writeValue_(ptf.writeValue_)
124 parent_bctype::autoMap(m);
125 refValue_.autoMap(m);
126 valueFraction_.autoMap(m);
137 parent_bctype::rmap(ptf, addr);
140 refCast<const partialSlipFvPatchField<Type>>(ptf);
142 refValue_.rmap(dmptf.refValue_, addr);
143 valueFraction_.rmap(dmptf.valueFraction_, addr);
156 valueFraction_*refValue_
158 )*this->
patch().deltaCoeffs();
168 if (!this->updated())
170 this->updateCoeffs();
177 valueFraction_*refValue_
179 (1.0 - valueFraction_)
200 + (1.0 - valueFraction_)
209 refValue_.writeEntry(
"refValue",
os);
210 valueFraction_.writeEntry(
"valueFraction",
os);
214 os.writeEntry(
"writeValue",
"true");
215 this->writeEntry(
"value",
os);
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
A class for handling words, derived from Foam::string.
A class for managing temporary objects.
static constexpr const zero Zero
Global zero (0)
void diag(pointPatchField< vector > &, const pointPatchField< tensor > &)
partialSlipFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
dimensionSet transform(const dimensionSet &ds)
Return the argument; transformations do not change the dimensions.
virtual tmp< Field< Type > > snGradTransformDiag() const
Return face-gradient transform diagonal.
Generic templated field type.
virtual void write(Ostream &) const
Write.
virtual tmp< Field< Type > > snGrad() const
Return gradient at boundary.
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
tmp< Field< cmptType > > component(const direction) const
Return a component field of the field.
PtrList< volScalarField > & Y
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
Evaluate the patch field.
commsTypes
Types of communications.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
const std::string patch
OpenFOAM patch number as a std::string.
A traits class, which is primarily used for primitives.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
virtual void rmap(const fvPatchField< Type > &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
Foam::fvPatchFieldMapper.
This boundary condition provides a partial slip condition. The amount of slip is controlled by a user...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
static const Identity< scalar > I
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
string evaluate(label fieldWidth, const std::string &s, size_t pos=0, size_t len=std::string::npos)
String evaluation with specified (positive, non-zero) field width.