Go to the documentation of this file.
39 const scalar t = this->db().time().timeOutputValue();
40 const scalar a = amplitude_->value(t);
41 const scalar
f = frequency_->value(t);
92 refValue_(
"refValue",
dict,
p.size()),
109 refValue_*currentScale()
156 refValue_.autoMap(m);
170 refCast<const oscillatingFixedValueFvPatchField<Type> >(ptf);
184 if (curTimeIndex_ != this->db().time().
timeIndex())
188 refValue_*currentScale()
192 curTimeIndex_ = this->db().time().timeIndex();
203 refValue_.writeEntry(
"refValue", os);
205 amplitude_->writeData(os);
206 frequency_->writeData(os);
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Field< Type > refValue_
Reference value.
dimensionedScalar sin(const dimensionedScalar &ds)
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
const scalar twoPi(2 *pi)
This boundary condition supplies a fixed value constraint, and is the base class for a number of othe...
virtual void write(Ostream &) const
Write.
autoPtr< DataEntry< scalar > > amplitude_
Amplitude.
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
virtual void rmap(const fvPatchField< Type > &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
A list of keyword definitions, which are a keyword followed by any number of values (e....
This boundary condition provides an oscillating condition in terms of amplitude and frequency.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual void write(Ostream &) const
Write.
virtual void rmap(const fvPatchField< Type > &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Traits class for primitives.
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
scalar currentScale() const
Return current scale.
autoPtr< DataEntry< scalar > > frequency_
Frequency.
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
oscillatingFixedValueFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...