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))
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_)
183 parent_bctype::evaluate();
200 + (1.0 - valueFraction_)
208 this->parent_bctype::write(
os);
209 refValue_.writeEntry(
"refValue",
os);
210 valueFraction_.writeEntry(
"valueFraction",
os);
215 this->writeEntry(
"value",
os);
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Generic templated field type.
tmp< Field< cmptType > > component(const direction) const
Return a component field of the field.
void evaluate()
Evaluate boundary conditions.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
void size(const label n)
Older name for setAddressableSize.
commsTypes
Types of communications.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
T getOrDefault(const word &keyword, const T &deflt, enum keyType::option matchOpt=keyType::REGEX) const
bool found(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Search for an entry (const access) with the given keyword.
virtual bool write()
Write the output fields.
A FieldMapper for finite-volume patch fields.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
const word & patchType() const
Optional patch type.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
A class representing the concept of 1 (one) that can be used to avoid manipulating objects known to b...
A traits class, which is primarily used for primitives.
This boundary condition provides a partial slip condition. The amount of slip is controlled by a user...
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
Evaluate the patch field.
virtual tmp< Field< Type > > snGrad() const
Return gradient at boundary.
virtual void rmap(const fvPatchField< Type > &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
virtual tmp< Field< Type > > snGradTransformDiag() const
Return face-gradient transform diagonal.
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
static const word null
An empty word.
OBJstream os(runTime.globalPath()/outputName)
dimensionSet transform(const dimensionSet &ds)
Return the argument; transformations do not change the dimensions.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
static const Identity< scalar > I
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
static constexpr const zero Zero
Global zero (0)
void diag(pointPatchField< vector > &, const pointPatchField< tensor > &)