58 amplitude_(dict.
lookup(
"amplitude")),
59 omega_(dict.
lookup<scalar>(
"omega")),
63 dict.
found(
"startRamp")
67 new Function1s::OneConstant<scalar>(
"startRamp")
76 new Function1s::OneConstant<scalar>(
"endRamp")
81 dict.
found(
"timeRamp")
85 new Function1s::OneConstant<scalar>(
"timeRamp")
89 if (!dict.
found(
"value"))
106 amplitude_(ptf.amplitude_),
108 waveNumber_(ptf.waveNumber_)
120 amplitude_(ptf.amplitude_),
122 waveNumber_(ptf.waveNumber_)
140 const scalar timeRamp = timeRamp_->
value(t.
value());
151 timeRamp*startRamp*endRamp*amplitude_*
cos(omega_*t.
value() -
points)
Run-time selectable general function of one variable.
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
A list of keyword definitions, which are a keyword followed by any number of values (e...
waveDisplacementPointPatchVectorField(const pointPatch &, const DimensionedField< vector, pointMesh > &)
Construct from patch and internal field.
void size(const label)
Override size to be inconsistent with allocated storage.
Foam::pointPatchFieldMapper.
Specified surface wave moving boundary.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Macros for easy insertion into run-time selection tables.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Templated function that returns the corresponding 1 (one).
dimensionedScalar cos(const dimensionedScalar &ds)
virtual Type value(const scalar x) const =0
Return value as a function of scalar x.
autoPtr< BasicCompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const typename BasicCompressibleMomentumTransportModel::transportModel &transport)
const pointPatch & patch() const
Return patch.
bool isType(const Type &t)
Check the typeid.
const Type & value() const
Return const reference to value.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual void write(Ostream &) const
Write.
const Time & time() const
Return time.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
const DimensionedField< vector, pointMesh > & internalField() const
Return dimensioned internal field reference.
virtual void write(Ostream &) const
Write.
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
Basic pointPatch represents a set of points from the mesh.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
bool updated() const
Return true if the boundary condition has already been updated.
makePointPatchTypeField(pointPatchVectorField, solidBodyMotionDisplacementPointPatchVectorField)
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Mesh consisting of general polyhedral cells.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.