BUG: waveModel - removed direction() function - co-ordinate system takes care of direction

This commit is contained in:
Andrew Heather
2016-11-22 15:04:05 +00:00
parent 9a10efc6fa
commit 1248851fa4
4 changed files with 1 additions and 25 deletions

View File

@ -48,16 +48,6 @@ class waveAbsorptionModel
:
public waveModel
{
protected:
// Protected Member Functions
//- Wave direction
virtual scalar direction() const
{
return -1;
}
public:

View File

@ -59,15 +59,6 @@ protected:
scalar waveAngle_;
// Protected Member Functions
//- Wave direction
virtual scalar direction() const
{
return 1;
}
public:
//- Runtime type information

View File

@ -372,8 +372,6 @@ void Foam::waveModel::correct(const scalar t)
if (patch_.size())
{
const scalar d = direction();
forAll(activeLevel, facei)
{
const label paddlei = faceToPaddle_[facei];
@ -384,7 +382,7 @@ void Foam::waveModel::correct(const scalar t)
(calculatedLevel[paddlei] - activeLevel[paddlei])
*sqrt(mag(g_)/activeLevel[paddlei]);
U_[facei].x() += d*UCorr;
U_[facei].x() += UCorr;
}
}
}

View File

@ -154,9 +154,6 @@ protected:
const scalarField& level
) = 0;
//- Wave direction
virtual scalar direction() const = 0;
//- Set the alpha field based on the water level
virtual void setAlpha(const scalarField& level);