59 jump_(ptf.jump_, mapper),
60 jump0_(ptf.jump0_, mapper),
61 minJump_(ptf.minJump_),
62 relaxFactor_(ptf.relaxFactor_),
63 timeIndex_(ptf.timeIndex_)
77 jump_(
p.size(),
Zero),
78 jump0_(
p.size(),
Zero),
80 relaxFactor_(
dict.getOrDefault<scalar>(
"relax", -1)),
112 minJump_(ptf.minJump_),
113 relaxFactor_(ptf.relaxFactor_),
114 timeIndex_(ptf.timeIndex_)
128 minJump_(ptf.minJump_),
129 relaxFactor_(ptf.relaxFactor_),
130 timeIndex_(ptf.timeIndex_)
139 if (this->cyclicPatch().owner())
149 if (this->cyclicPatch().owner())
159 if (this->cyclicPatch().owner())
176 if (this->cyclicPatch().owner())
200 if (!this->cyclicPatch().owner() || relaxFactor_ < 0)
205 jump_ =
lerp(jump0_, jump_, relaxFactor_);
207 if (timeIndex_ != this->db().time().
timeIndex())
211 timeIndex_ = this->
db().time().timeIndex();
219 const fvPatchFieldMapper& m
238 jump_.rmap(fjptf.jump_, addr);
239 jump0_.rmap(fjptf.jump0_, addr);
254 if (this->cyclicPatch().owner())
256 jump_.writeEntry(
"jump",
os);
258 if (relaxFactor_ > 0)
260 os.writeEntry(
"relax", relaxFactor_);
261 jump0_.writeEntry(
"jump0",
os);
265 if (minJump_ != pTraits<Type>::min)
267 os.writeEntry(
"minJump", minJump_);
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Generic templated field type that is much like a Foam::List except that it is expected to hold numeri...
@ MUST_READ
Reading required.
@ LAZY_READ
Reading is optional [identical to READ_IF_PRESENT].
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
bool empty() const noexcept
@ buffered
"buffered" : (MPI_Bsend, MPI_Recv)
virtual void evaluate(const Pstream::commsTypes commsType)
Evaluate the patch field.
const cyclicFvPatchField< Type > & neighbourPatchField() const
Return reference to neighbour patchField.
const cyclicFvPatch & cyclicPatch() const
Return local reference cast into the cyclic patch.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
This boundary condition provides a jump condition, using the cyclic condition as a base.
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
virtual void write(Ostream &) const
Write.
virtual void relax()
Return the relaxed "jump" across the patch.
virtual tmp< Field< Type > > jump0() const
Return the old time "jump" across the patch.
virtual tmp< Field< Type > > jump() const
Return the "jump" across the patch.
virtual void setJump(const Field< Type > &jump)
Set the jump field.
virtual void rmap(const fvPatchField< Type > &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
fixedJumpFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
virtual scalar relaxFactor() const
Return the under-relaxation factor.
const objectRegistry & db() const
The associated objectRegistry.
const word & patchType() const noexcept
The optional patch type.
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...
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
virtual void write(Ostream &) const
Write.
void writeValueEntry(Ostream &os) const
Write *this field as a "value" entry.
virtual void rmap(const fvPatchField< Type > &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
bool readValueEntry(const dictionary &dict, IOobjectOption::readOption readOpt=IOobjectOption::LAZY_READ)
Read the "value" entry into *this.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
This boundary condition provides a base class for coupled-cyclic conditions with a specified 'jump' (...
virtual const word & interfaceFieldType() const
jumpCyclicFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
A traits class, which is primarily used for primitives and vector-space.
A class for managing temporary objects.
OBJstream os(runTime.globalPath()/outputName)
Type & refCast(U &obj)
A dynamic_cast (for references) to Type reference.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
List< label > labelList
A List of labels.
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
static constexpr const zero Zero
Global zero (0).
dimensioned< Type > lerp(const dimensioned< Type > &a, const dimensioned< Type > &b, const scalar t)