37 { operatingMode::VELOCITY,
"velocity" },
38 { operatingMode::UNIFORM_VELOCITY,
"uniformVelocity" },
39 { operatingMode::VOL_FLOW_RATE,
"volumeFlowRate" },
40 { operatingMode::NON_DIMENSIONAL,
"nonDimensional" },
49 if (this->cyclicPatch().owner())
51 this->jump_ = this->jumpTable_->value(this->db().time().value());
66 operatingMode_(operatingMode::VELOCITY),
85 operatingModeNames_.getOrDefault(
"mode",
dict, operatingMode::VELOCITY)
87 phiName_(
dict.getOrDefault<
word>(
"phi",
"phi")),
88 rhoName_(
dict.getOrDefault<
word>(
"rho",
"rho")),
95 bool nonDimCompat =
dict.getOrDefault(
"nonDimensional",
false);
102 bool uniformCompat =
dict.getOrDefault(
"uniformJump",
false);
114 rpm_.reset(Function1<scalar>::New(
"rpm",
dict, &this->
db()));
115 dm_.reset(Function1<scalar>::New(
"dm",
dict, &this->
db()));
133 const fanFvPatchField<Type>& rhs,
135 const DimensionedField<Type, volMesh>& iF,
136 const fvPatchFieldMapper& mapper
139 uniformJumpFvPatchField<Type>(rhs,
p, iF, mapper),
140 operatingMode_(rhs.operatingMode_),
141 phiName_(rhs.phiName_),
142 rhoName_(rhs.rhoName_),
143 rpm_(rhs.rpm_.clone()),
155 operatingMode_(rhs.operatingMode_),
156 phiName_(rhs.phiName_),
157 rhoName_(rhs.rhoName_),
158 rpm_(rhs.rpm_.clone()),
171 operatingMode_(rhs.operatingMode_),
172 phiName_(rhs.phiName_),
173 rhoName_(rhs.rhoName_),
174 rpm_(rhs.rpm_.clone()),
203 os.
writeEntry(
"mode", operatingModeNames_[operatingMode_]);
205 if (operatingMode_ == operatingMode::NON_DIMENSIONAL)
bool readValueEntry(const dictionary &dict, IOobjectOption::readOption readOpt=IOobjectOption::LAZY_READ)
Read the "value" entry into *this.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
const objectRegistry & db() const
The associated objectRegistry.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
static const Enum< operatingMode > operatingModeNames_
Names for the operating modes.
This boundary condition provides a jump condition, using the cyclic condition as a base...
const cyclicFvPatch & cyclicPatch() const
Return local reference cast into the cyclic patch.
A class for handling words, derived from Foam::string.
virtual void write(Ostream &os) const
Write.
non-dimensional-based lookup
virtual void evaluate(const Pstream::commsTypes commsType)
Evaluate the patch field.
Ostream & writeEntryIfDifferent(const word &key, const T &value1, const T &value2)
Write a keyword/value entry only when the two values differ.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
fanFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
Enum is a wrapper around a list of names/values that represent particular enumeration (or int) values...
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
uniform velocity-based lookup
"buffered" : (MPI_Bsend, MPI_Recv)