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