mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: waveModel - removed direction() function - co-ordinate system takes care of direction
This commit is contained in:
@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user