79 #ifndef waveSuperposition_H
80 #define waveSuperposition_H
95 class waveSuperposition
116 const autoPtr<Function1<vector>>
UMean_;
119 const autoPtr<Function1<scalar>>
scale_;
const objectRegistry & db() const
Return the local objectRegistry.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Registry of regIOobjects.
virtual bool write(const bool write=true) const
Write using setting from DB.
A class for managing temporary objects.
A wrapper around a list of wave models. Superimposes the modelled values of elevation and velocity....
const Switch heightAboveWave_
Calculate wave properties using the height above the wave (true) or.
TypeName("wave")
Runtime type information.
tmp< scalarField > elevation(const scalar t, const vector2D &drift, const vector2DField &xy) const
Get the wave elevation relative to the mean at a given time and.
const autoPtr< Function1< vector > > UMean_
Mean velocity.
const vector origin_
The origin of the wave coordinate system.
virtual tmp< scalarField > height(const scalar t, const vectorField &p) const
Get the height above the waves at a given time and global positions.
virtual tmp< vectorField > ULiquid(const scalar t, const vectorField &p) const
Get the liquid velocity at a given time and global positions.
virtual tmp< vectorField > UGas(const scalar t, const vectorField &p) const
Get the gas velocity at a given time and global positions.
waveSuperposition(const objectRegistry &db)
Construct from a database.
static const word dictName
The name of the dictionary.
tmp< scalarField > scale(const vector2DField &xy) const
Get the scaling factor, calculated from the optional scaling.
void transformation(const scalar t, const vectorField &p, tensor &axes, vector &drift, vectorField &xyz) const
Get the transformation to actual coordinates.
~waveSuperposition()
Destructor.
const autoPtr< Function1< scalar > > scale_
Scaling in the local x-direction.
scalarList waveAngles_
The angle relative to the direction at which the waves propagate.
const autoPtr< Function1< scalar > > crossScale_
Scaling perpendicular to the local x-direction.
const vector direction_
The direction of the wave coordinate system.
virtual bool write(const bool write=true) const
Inherit write from regIOobject.
PtrList< waveModel > waveModels_
Wave models to superimpose.
static const waveSuperposition & New(const objectRegistry &db)
Return a reference to the wave model on the given database,.
declareRunTimeSelectionTable(autoPtr, waveSuperposition, objectRegistry,(const objectRegistry &db),(db))
tmp< vectorField > velocity(const scalar t, const vector &drift, const vectorField &xyz) const
Get the wave velocity at a given time and local coordinates. Local.
A class for handling words, derived from string.
List< scalar > scalarList
A List of scalars.
Vector< scalar > vector
A scalar version of the templated Vector.