libwaves.so: Now included in the alpha and U wave BC specification

rather than in controlDict.
This commit is contained in:
Henry Weller
2023-04-06 09:55:13 +01:00
parent f1a57dde9c
commit 2f0346d68e
15 changed files with 28 additions and 24 deletions

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2017-2021 OpenFOAM Foundation \\ / A nd | Copyright (C) 2017-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -42,7 +42,7 @@ Usage
<patchName> <patchName>
{ {
type waveAlpha; type waveAlpha;
phi phi; libs ("libwaves.so");
liquid true; liquid true;
} }
\endverbatim \endverbatim

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2019-2020 OpenFOAM Foundation \\ / A nd | Copyright (C) 2019-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -43,7 +43,7 @@ Usage
<patchName> <patchName>
{ {
type waveInletOutlet; type waveInletOutlet;
phi phi; libs ("libwaves.so");
inletValueAbove 0.01; inletValueAbove 0.01;
inletValueBelow table ((0 0.01) (10 0.1)); inletValueBelow table ((0 0.01) (10 0.1));
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2017-2021 OpenFOAM Foundation \\ / A nd | Copyright (C) 2017-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -41,7 +41,7 @@ Usage
<patchName> <patchName>
{ {
type waveVelocity; type waveVelocity;
phi phi; libs ("libwaves.so");
} }
\endverbatim \endverbatim

View File

@ -24,15 +24,19 @@ boundaryField
{ {
type noSlip; type noSlip;
} }
"(top|inlet)" "(top|inlet)"
{ {
type waveVelocity; type waveVelocity;
libs ("libwaves.so");
} }
outlet outlet
{ {
type pressureInletOutletVelocity; type pressureInletOutletVelocity;
value $internalField; value $internalField;
} }
"(front|back)" "(front|back)"
{ {
type symmetryPlane; type symmetryPlane;

View File

@ -24,10 +24,13 @@ boundaryField
{ {
type zeroGradient; type zeroGradient;
} }
"(top|inlet|outlet)" "(top|inlet|outlet)"
{ {
type waveAlpha; type waveAlpha;
libs ("libwaves.so");
} }
"(front|back)" "(front|back)"
{ {
type symmetryPlane; type symmetryPlane;

View File

@ -50,9 +50,4 @@ adjustTimeStep no;
maxCo 1; maxCo 1;
libs
(
"libwaves.so"
);
// ************************************************************************* // // ************************************************************************* //

View File

@ -28,6 +28,7 @@ boundaryField
inlet inlet
{ {
type waveVelocity; type waveVelocity;
libs ("libwaves.so");
} }
outlet outlet

View File

@ -26,6 +26,7 @@ boundaryField
inlet inlet
{ {
type waveAlpha; type waveAlpha;
libs ("libwaves.so");
} }
outlet outlet

View File

@ -52,8 +52,6 @@ maxCo 10;
maxAlphaCo 5; maxAlphaCo 5;
maxDeltaT 0.01; maxDeltaT 0.01;
libs ("libwaves.so");
functions functions
{ {
surfaces surfaces

View File

@ -25,19 +25,23 @@ boundaryField
left left
{ {
type waveVelocity; type waveVelocity;
libs ("libwaves.so");
} }
right right
{ {
type outletPhaseMeanVelocity; type outletPhaseMeanVelocity;
UnMean 2; UnMean 2;
alpha alpha.water; alpha alpha.water;
} }
top top
{ {
type pressureInletOutletVelocity; type pressureInletOutletVelocity;
tangentialVelocity $internalField; tangentialVelocity $internalField;
value $internalField; value $internalField;
} }
bottom bottom
{ {
type noSlip; type noSlip;

View File

@ -26,12 +26,14 @@ boundaryField
{ {
type zeroGradient; type zeroGradient;
} }
left left
{ {
type waveAlpha; type waveAlpha;
U U; libs ("libwaves.so");
inletOutlet true; inletOutlet true;
} }
top top
{ {
type inletOutlet; type inletOutlet;

View File

@ -54,11 +54,6 @@ maxAlphaCo 1;
maxDeltaT 1; maxDeltaT 1;
libs
(
"libwaves.so"
);
functions functions
{ {
interfaceHeight1 interfaceHeight1

View File

@ -25,12 +25,15 @@ boundaryField
"(inlet|inletSide)" "(inlet|inletSide)"
{ {
type waveVelocity; type waveVelocity;
libs ("libwaves.so");
} }
top top
{ {
type pressureInletOutletVelocity; type pressureInletOutletVelocity;
value uniform (0 0 0); value uniform (0 0 0);
} }
bottom bottom
{ {
type noSlip; type noSlip;

View File

@ -25,13 +25,16 @@ boundaryField
"(inlet|inletSide)" "(inlet|inletSide)"
{ {
type waveAlpha; type waveAlpha;
libs ("libwaves.so");
} }
top top
{ {
type inletOutlet; type inletOutlet;
inletValue uniform 0; inletValue uniform 0;
value uniform 0; value uniform 0;
} }
bottom bottom
{ {
type zeroGradient; type zeroGradient;

View File

@ -54,11 +54,6 @@ maxAlphaCo 1;
maxDeltaT 1; maxDeltaT 1;
libs
(
"libwaves.so"
);
functions functions
{ {
#includeFunc isoSurface(isoField=alpha.water, isoValue=0.5, fields=()) #includeFunc isoSurface(isoField=alpha.water, isoValue=0.5, fields=())