ENH: waveModels - refactored time scaling coefficient

This commit is contained in:
Andrew Heather
2016-11-25 10:49:53 +00:00
parent 02e9433d73
commit 21b3f88a72
9 changed files with 66 additions and 11 deletions

View File

@ -36,6 +36,18 @@ namespace waveModels
}
// * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //
Foam::scalar Foam::waveModels::waveAbsorptionModel::timeCoeff
(
const scalar t
) const
{
// No time ramping applied applied for absorption
return 1;
}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::waveModels::waveAbsorptionModel::waveAbsorptionModel

View File

@ -41,13 +41,20 @@ namespace waveModels
{
/*---------------------------------------------------------------------------*\
Class waveAbsorptionModel Declaration
Class waveAbsorptionModel Declaration
\*---------------------------------------------------------------------------*/
class waveAbsorptionModel
:
public waveModel
{
protected:
// Protected Member Functions
//- Return the time scaling coefficient
virtual scalar timeCoeff(const scalar t) const;
public: