A wrapper around a list of wave models. Superimposes the modelled values of elevation and velocity. More...
Public Member Functions | |
waveSuperposition (const objectRegistry &db) | |
Construct from a database. More... | |
waveSuperposition (const waveSuperposition &waves) | |
Construct a copy. More... | |
waveSuperposition (const objectRegistry &db, const dictionary &dict) | |
Construct from a database and gravity. More... | |
~waveSuperposition () | |
Destructor. More... | |
tmp< scalarField > | height (const scalar t, const vectorField &p) const |
Get the height above the waves at a given time and global positions. More... | |
tmp< vectorField > | ULiquid (const scalar t, const vectorField &p) const |
Get the liquid velocity at a given time and global positions. More... | |
tmp< vectorField > | UGas (const scalar t, const vectorField &p) const |
Get the gas velocity at a given time and global positions. More... | |
tmp< scalarField > | pLiquid (const scalar t, const vectorField &p) const |
Get the liquid pressure at a given time and global positions. More... | |
tmp< scalarField > | pGas (const scalar t, const vectorField &p) const |
Get the gas pressure at a given time and global positions. More... | |
vector | UMean (const scalar t) const |
Get the mean flow velocity. More... | |
void | write (Ostream &) const |
Write. More... | |
A wrapper around a list of wave models. Superimposes the modelled values of elevation and velocity.
Definition at line 49 of file waveSuperposition.H.
waveSuperposition | ( | const objectRegistry & | db | ) |
Construct from a database.
Definition at line 175 of file waveSuperposition.C.
Referenced by waveSuperposition::waveSuperposition().
waveSuperposition | ( | const waveSuperposition & | waves | ) |
Construct a copy.
Definition at line 190 of file waveSuperposition.C.
References waveSuperposition::waveSuperposition().
waveSuperposition | ( | const objectRegistry & | db, |
const dictionary & | dict | ||
) |
Construct from a database and gravity.
Definition at line 206 of file waveSuperposition.C.
References dictionaryName::dictName(), forAll, dictionary::lookup(), waveModel::New(), Foam::readScalar(), and List< T >::setSize().
~waveSuperposition | ( | ) |
Destructor.
Definition at line 257 of file waveSuperposition.C.
References waveSuperposition::height().
Foam::tmp< Foam::scalarField > height | ( | const scalar | t, |
const vectorField & | p | ||
) | const |
Get the height above the waves at a given time and global positions.
Definition at line 264 of file waveSuperposition.C.
References List< T >::size(), waveSuperposition::ULiquid(), and Foam::zip().
Referenced by waveAlphaFvPatchScalarField::alpha(), waveAlphaFvPatchScalarField::alphan(), wavePressureFvPatchScalarField::p(), waveSuperposition::pLiquid(), wavePressureFvPatchScalarField::pn(), waveVelocityFvPatchVectorField::U(), waveSuperposition::UGas(), waveSuperposition::ULiquid(), waveVelocityFvPatchVectorField::Un(), and waveSuperposition::~waveSuperposition().
Foam::tmp< Foam::vectorField > ULiquid | ( | const scalar | t, |
const vectorField & | p | ||
) | const |
Get the liquid velocity at a given time and global positions.
Definition at line 281 of file waveSuperposition.C.
References waveSuperposition::height(), List< T >::size(), waveSuperposition::UGas(), and waveSuperposition::UMean().
Referenced by waveSuperposition::height(), waveVelocityFvPatchVectorField::U(), and waveVelocityFvPatchVectorField::Un().
Foam::tmp< Foam::vectorField > UGas | ( | const scalar | t, |
const vectorField & | p | ||
) | const |
Get the gas velocity at a given time and global positions.
Definition at line 301 of file waveSuperposition.C.
References waveSuperposition::height(), waveSuperposition::pLiquid(), VectorSpace< Form, Cmpt, Ncmpts >::replace(), List< T >::size(), waveSuperposition::UMean(), Tensor< Cmpt >::x(), Tensor< Cmpt >::y(), and Tensor< Cmpt >::z().
Referenced by waveVelocityFvPatchVectorField::U(), waveSuperposition::ULiquid(), and waveVelocityFvPatchVectorField::Un().
Foam::tmp< Foam::scalarField > pLiquid | ( | const scalar | t, |
const vectorField & | p | ||
) | const |
Get the liquid pressure at a given time and global positions.
Definition at line 323 of file waveSuperposition.C.
References waveSuperposition::height(), waveSuperposition::pGas(), and List< T >::size().
Referenced by wavePressureFvPatchScalarField::p(), waveSuperposition::pGas(), wavePressureFvPatchScalarField::pn(), and waveSuperposition::UGas().
Foam::tmp< Foam::scalarField > pGas | ( | const scalar | t, |
const vectorField & | p | ||
) | const |
Get the gas pressure at a given time and global positions.
Definition at line 343 of file waveSuperposition.C.
References waveSuperposition::pLiquid().
Referenced by wavePressureFvPatchScalarField::p(), waveSuperposition::pLiquid(), and wavePressureFvPatchScalarField::pn().
|
inline |
Get the mean flow velocity.
Definition at line 156 of file waveSuperposition.H.
References autoPtr< T >::valid(), and waveSuperposition::write().
Referenced by waveSuperposition::UGas(), and waveSuperposition::ULiquid().
void write | ( | Ostream & | os | ) | const |
Write.
Definition at line 352 of file waveSuperposition.C.
References token::BEGIN_BLOCK, token::BEGIN_LIST, Foam::decrIndent(), token::END_BLOCK, token::END_LIST, token::END_STATEMENT, forAll, Foam::incrIndent(), Foam::indent(), Foam::nl, Foam::type(), and Ostream::writeKeyword().
Referenced by waveSuperposition::UMean(), and waveVelocityFvPatchVectorField::write().