Skip to content
Snippets Groups Projects
Commit 1248851f authored by Andrew Heather's avatar Andrew Heather
Browse files

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

parent 9a10efc6
No related merge requests found
......@@ -48,16 +48,6 @@ class waveAbsorptionModel
:
public waveModel
{
protected:
// Protected Member Functions
//- Wave direction
virtual scalar direction() const
{
return -1;
}
public:
......
......@@ -59,15 +59,6 @@ protected:
scalar waveAngle_;
// Protected Member Functions
//- Wave direction
virtual scalar direction() const
{
return 1;
}
public:
//- Runtime type information
......
......@@ -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;
}
}
}
......
......@@ -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);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment