36 #ifndef waveSuperposition_H 37 #define waveSuperposition_H 83 const Switch heightAboveWave_;
159 return (ramp_.
valid() ? ramp_->value(t) : 1)*direction_*speed_;
A wrapper around a list of wave models. Superimposes the modelled values of elevation and velocity...
tmp< vectorField > UGas(const scalar t, const vectorField &p) const
Get the gas velocity at a given time and global positions.
void write(Ostream &) const
Write.
tmp< scalarField > pLiquid(const scalar t, const vectorField &p) const
Get the liquid pressure at a given time and global positions.
A list of keyword definitions, which are a keyword followed by any number of values (e...
~waveSuperposition()
Destructor.
A simple wrapper around bool so that it can be read as a word: true/false, on/off, yes/no, y/n, t/f, or none.
tmp< vectorField > ULiquid(const scalar t, const vectorField &p) const
Get the liquid velocity at a given time and global positions.
tmp< scalarField > height(const scalar t, const vectorField &p) const
Get the height above the waves at a given time and global positions.
tmp< scalarField > pGas(const scalar t, const vectorField &p) const
Get the gas pressure at a given time and global positions.
bool valid() const
Return true if the autoPtr valid (ie, the pointer is set)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
vector UMean(const scalar t) const
Get the mean flow velocity.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A class for managing temporary objects.
Registry of regIOobjects.
waveSuperposition(const objectRegistry &db)
Construct from a database.