41 jump_(this->size(),
Zero),
42 jump0_(this->size(),
Zero),
59 jump_(ptf.jump_, mapper),
60 jump0_(ptf.jump0_, mapper),
61 minJump_(ptf.minJump_),
62 relaxFactor_(ptf.relaxFactor_),
63 timeIndex_(ptf.timeIndex_)
73 const bool valueRequired
77 jump_(
p.size(),
Zero),
78 jump0_(
p.size(),
Zero),
80 relaxFactor_(
dict.getOrDefault<scalar>(
"relax", -1)),
83 if (this->cyclicPatch().owner())
90 if (
dict.found(
"jump0"))
92 jump0_ = Field<Type>(
"jump0",
dict,
p.size());
98 if (
dict.found(
"value"))
102 Field<Type>(
"value",
dict,
p.size())
107 this->
evaluate(Pstream::commsTypes::blocking);
116 const fixedJumpFvPatchField<Type>& ptf
119 jumpCyclicFvPatchField<Type>(ptf),
122 minJump_(ptf.minJump_),
123 relaxFactor_(ptf.relaxFactor_),
124 timeIndex_(ptf.timeIndex_)
138 minJump_(ptf.minJump_),
139 relaxFactor_(ptf.relaxFactor_),
140 timeIndex_(ptf.timeIndex_)
149 if (this->cyclicPatch().owner())
151 jump_ =
max(jump, minJump_);
159 if (this->cyclicPatch().owner())
161 jump_ =
max(jump, minJump_);
169 if (this->cyclicPatch().owner())
175 return refCast<const fixedJumpFvPatchField<Type>>
177 this->neighbourPatchField()
186 if (this->cyclicPatch().owner())
192 return refCast<const fixedJumpFvPatchField<Type>>
194 this->neighbourPatchField()
210 if (!this->cyclicPatch().owner() || relaxFactor_ < 0)
215 jump_ = relaxFactor_*jump_ + (1 - relaxFactor_)*jump0_;
217 if (timeIndex_ != this->db().time().timeIndex())
221 timeIndex_ = this->db().time().timeIndex();
229 const fvPatchFieldMapper& m
232 jumpCyclicFvPatchField<Type>::autoMap(m);
247 const auto& fjptf = refCast<const fixedJumpFvPatchField<Type>>(ptf);
248 jump_.rmap(fjptf.jump_, addr);
249 jump0_.rmap(fjptf.jump0_, addr);
259 if (!this->patchType().size())
261 os.writeEntry(
"patchType", this->interfaceFieldType());
264 if (this->cyclicPatch().owner())
266 jump_.writeEntry(
"jump",
os);
268 if (relaxFactor_ > 0)
270 os.writeEntry(
"relax", relaxFactor_);
271 jump0_.writeEntry(
"jump0",
os);
277 os.writeEntry(
"minJump", minJump_);
280 this->writeEntry(
"value",
os);