56 new Function1s::OneConstant<scalar>(
"startRamp")
65 new Function1s::OneConstant<scalar>(
"endRamp")
74 new Function1s::OneConstant<scalar>(
"timeRamp")
78 if (!
dict.found(
"value"))
95 amplitude_(ptf.amplitude_),
97 waveNumber_(ptf.waveNumber_)
109 amplitude_(ptf.amplitude_),
111 waveNumber_(ptf.waveNumber_)
124 const polyMesh& mesh = this->internalField().mesh()();
129 const scalar timeRamp = timeRamp_->value(t.
value());
140 timeRamp*startRamp*endRamp*amplitude_*
cos(omega_*t.
value() -
points)
Macros for easy insertion into run-time selection tables.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Run-time selectable general function of one variable.
Templated function that returns the corresponding 1 (one).
void size(const label)
Override size to be inconsistent with allocated storage.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A list of keyword definitions, which are a keyword followed by any number of values (e....
const Type & value() const
Return const reference to value.
Abstract base class for field mapping.
A FixedValue boundary condition for pointField.
const Time & time() const
Return time.
Abstract base class for point-mesh patch fields.
virtual void write(Ostream &) const
Write.
Basic pointPatch represents a set of points from the mesh.
Mesh consisting of general polyhedral cells.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Specified surface wave moving boundary.
virtual void write(Ostream &) const
Write.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
waveDisplacementPointPatchVectorField(const pointPatch &, const DimensionedField< vector, pointMesh > &, const dictionary &)
Construct from patch, internal field and dictionary.
autoPtr< CompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const viscosity &viscosity)
makePointPatchTypeField(pointPatchVectorField, angularOscillatingDisplacementPointPatchVectorField)
const dimensionSet dimless
bool isType(const Type &t)
Check the typeid.
const dimensionSet dimLength
const dimensionSet dimTime
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
const unitConversion unitRadians
dimensionedScalar cos(const dimensionedScalar &ds)