waves: Moved mean velocity specification back into the wave models

With the inclusion of boundary layer modelling in the gas, the
separation of wave perturbation from and mean flow became less useful,
and potentially prevents further extension to support similar boundary
layer modelling in the liquid.

The mean velocity entry, UMean, is now needed in the
constant/waveProperties file rather than in the waveVelocity boundary
condition.
This commit is contained in:
Will Bainbridge
2018-12-18 10:20:28 +00:00
parent e033aca111
commit 5925868fb7
17 changed files with 106 additions and 151 deletions

View File

@ -15,11 +15,11 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
UMean 1.668;
#include "$FOAM_CASE/constant/waveProperties";
dimensions [0 1 -1 0 0 0 0];
internalField uniform (#neg $UMean 0 0);
internalField uniform ($UxMean 0 0);
boundaryField
{
@ -29,14 +29,13 @@ boundaryField
inlet
{
type waveVelocity;
UMean (#neg $UMean 0 0);
}
outlet
{
type outletPhaseMeanVelocity;
alpha alpha.water;
UnMean $UMean;
UnMean #neg $UxMean;
value $internalField;
}

View File

@ -30,6 +30,10 @@ waves
}
);
UxMean -1.668;
UMean ($UxMean 0 0);
scale table ((4 1) (12 0));

View File

@ -14,14 +14,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
U.orig
{
#include "$FOAM_CASE/0/U.orig";
}
alpha alpha.water;
UMean $U.orig.boundaryField.inlet.UMean;
// ************************************************************************* //