42 fixedValuePointPatchVectorField(
p, iF,
dict),
55 new Function1s::OneConstant<scalar>(
"startRamp")
64 new Function1s::OneConstant<scalar>(
"endRamp")
73 new Function1s::OneConstant<scalar>(
"timeRamp")
77 if (!
dict.found(
"value"))
93 fixedValuePointPatchVectorField(ptf,
p, iF, mapper),
94 amplitude_(ptf.amplitude_),
96 waveNumber_(ptf.waveNumber_)
107 fixedValuePointPatchVectorField(ptf, iF),
108 amplitude_(ptf.amplitude_),
110 waveNumber_(ptf.waveNumber_)
128 const scalar timeRamp = timeRamp_->value(t.
value());
139 timeRamp*startRamp*endRamp*amplitude_*
cos(omega_*t.
value() -
points)
142 fixedValuePointPatchVectorField::updateCoeffs();
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 keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
const Type & value() const
Return const reference to value.
Abstract base class for field mapping.
const Time & time() const
Return the top-level database.
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.
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.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
const dimensionSet dimless
const unitSet & lookup(const word &unitName)
Lookup and return the named unit from the table.
makePointPatchTypeField(pointPatchVectorField, angularOscillatingDisplacementPointPatchVectorField)
const dimensionSet & dimLength
bool isType(const Type &t)
Check the typeid.
const dimensionSet & dimTime
tmp< DimensionedField< TypeR, GeoMesh, Field > > New(const tmp< DimensionedField< TypeR, GeoMesh, Field >> &tdf1, const word &name, const dimensionSet &dimensions)
void writeEntry(Ostream &os, const word &key, const DimensionedFieldFunction< DimensionedFieldType > &f)
dimensionedScalar cos(const dimensionedScalar &ds)