44 amplitude_(
dict.lookup(
"amplitude")),
45 omega_(
dict.lookup<scalar>(
"omega")),
53 new Function1s::OneConstant<scalar>(
"startRamp")
62 new Function1s::OneConstant<scalar>(
"endRamp")
71 new Function1s::OneConstant<scalar>(
"timeRamp")
75 if (!
dict.found(
"value"))
92 amplitude_(ptf.amplitude_),
94 waveNumber_(ptf.waveNumber_)
106 amplitude_(ptf.amplitude_),
108 waveNumber_(ptf.waveNumber_)
121 const polyMesh& mesh = this->internalField().mesh()();
126 const scalar timeRamp = timeRamp_->value(t.
value());
137 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.
A FixedValue boundary condition for pointField.
const Time & time() const
Return time.
Foam::pointPatchFieldMapper.
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, solidBodyMotionDisplacementPointPatchVectorField)
bool isType(const Type &t)
Check the typeid.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
dimensionedScalar cos(const dimensionedScalar &ds)