Go to the documentation of this file.
83 #ifndef waveMakerPointPatchVectorField_H
84 #define waveMakerPointPatchVectorField_H
98 class waveMakerPointPatchVectorField
100 public fixedValuePointPatchField<vector>
210 virtual scalar
waveLength(
const scalar
h,
const scalar
T);
213 virtual scalar
timeCoeff(
const scalar t)
const;
296 virtual void write(Ostream&)
const;
scalarField waterDepthRef_
Calculated water depth at the patch.
scalarField xPaddle_
Paddle x co-ordinates / [m].
scalar waveAngle_
Wave angle.
scalarField zMin_
Minimum z (point) height per patch face / [m].
label nPaddle_
Number of wave paddles.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
vector gHat_
Vertical direction.
scalar startTime_
Start time.
scalar waveHeight_
Wave height.
scalarField y_
Patch face centre y co-ordinates / [m].
scalarField x_
Patch face centre x co-ordinates / [m].
scalar secondOrder_
On/off second order calculation switch.
Basic pointPatch represents a set of points from the mesh.
scalar wavePhase_
Wave phase.
TypeName("waveMaker")
Runtime type information.
scalar zSpan_
Overall (point) span in z-direction / [m].
Foam::pointPatchFieldMapper.
scalar wavePeriod_
Wave period.
scalar waveLength_
Wave length.
scalar zMinGb_
Global Minimum z (point) / [m].
A FixedValue boundary condition for pointField.
scalarField yPaddle_
Paddle y co-ordinates / [m].
virtual autoPtr< pointPatchField< vector > > clone() const
Construct and return a clone.
Point motion boundary condition to generate waves based on either piston or flap motions.
scalarField z_
Patch face centre z co-ordinates / [m].
static const Enum< motionTypes > motionTypeNames
Names for motion types.
const dimensionedScalar h
Planck constant.
tmp< Field< vector > > T() const
Return the field transpose (only defined for second rank tensors)
waveMakerPointPatchVectorField(const pointPatch &, const DimensionedField< vector, pointMesh > &)
Construct from patch and internal field.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
motionTypes motionType_
Motion type.
virtual scalar waveLength(const scalar h, const scalar T)
Dispersion equation.
Vector< scalar > vector
A scalar version of the templated Vector.
tensor Rlg_
Rotation tensor from local to global system.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
scalar rampTime_
Ramp time.
labelList pointToPaddle_
Addressing from point patch index to paddle index.
virtual void write(Ostream &) const
Write.
vector n_
Patch normal direction.
virtual void initialiseGeometry()
Initialise.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
scalar initialDepth_
Initial water depth.
virtual scalar timeCoeff(const scalar t) const
Return the time scaling coefficient.
labelList faceToPaddle_
Addressing from patch face index to paddle index.
const vector & g()
Return the gravitational acceleration.
tensor Rgl_
Rotation tensor from global to local system.
scalarField zMax_
Maximum z (point) height per patch face / [m].
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...