fvOptions::isotropicDamping: New wave damping fvOption
This implicit isotropic damping function relaxes the velocity field towards a specified uniform value which can be set to (0 0 0) if no flow is required. This is particularly appropriate to damp the waves in a closed wave tank with no mean flow. Testing on the interFoam wave has shown that for this simple case with uniform mean flow the new isotropicDamping fvOption provides more rapid and complete damping than the original verticalDamping.
This commit is contained in:
@ -17,7 +17,7 @@ FoamFile
|
||||
|
||||
option1
|
||||
{
|
||||
type verticalDamping;
|
||||
type isotropicDamping;
|
||||
|
||||
selectionMode all;
|
||||
|
||||
@ -30,6 +30,7 @@ option1
|
||||
duration 600;
|
||||
}
|
||||
|
||||
value (2 0 0);
|
||||
lambda 0.5;
|
||||
|
||||
timeStart 0;
|
||||
|
||||
@ -0,0 +1,40 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Version: dev
|
||||
\\/ M anipulation |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "constant";
|
||||
object fvOptions;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
option1
|
||||
{
|
||||
type verticalDamping;
|
||||
|
||||
selectionMode all;
|
||||
|
||||
origin (1200 0 0);
|
||||
direction (1 0 0);
|
||||
scale
|
||||
{
|
||||
type halfCosineRamp;
|
||||
start 0;
|
||||
duration 600;
|
||||
}
|
||||
|
||||
lambda 0.5;
|
||||
|
||||
timeStart 0;
|
||||
duration 1e6;
|
||||
}
|
||||
|
||||
|
||||
//************************************************************************* //
|
||||
Reference in New Issue
Block a user