2010-05-12 13:27:55 +00:00
|
|
|
/*---------------------------------------------------------------------------*\
|
|
|
|
========= |
|
2013-12-11 16:09:41 +00:00
|
|
|
\\ / F ield | foam-extend: Open Source CFD
|
2016-06-20 15:00:40 +00:00
|
|
|
\\ / O peration | Version: 4.0
|
2015-05-17 13:32:07 +00:00
|
|
|
\\ / A nd | Web: http://www.foam-extend.org
|
|
|
|
\\/ M anipulation | For copyright notice see file Copyright
|
2010-05-12 13:27:55 +00:00
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
License
|
2013-12-11 16:09:41 +00:00
|
|
|
This file is part of foam-extend.
|
2010-05-12 13:27:55 +00:00
|
|
|
|
2013-12-11 16:09:41 +00:00
|
|
|
foam-extend is free software: you can redistribute it and/or modify it
|
2010-05-12 13:27:55 +00:00
|
|
|
under the terms of the GNU General Public License as published by the
|
2013-12-11 16:09:41 +00:00
|
|
|
Free Software Foundation, either version 3 of the License, or (at your
|
2010-05-12 13:27:55 +00:00
|
|
|
option) any later version.
|
|
|
|
|
2013-12-11 16:09:41 +00:00
|
|
|
foam-extend is distributed in the hope that it will be useful, but
|
|
|
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
General Public License for more details.
|
2010-05-12 13:27:55 +00:00
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
2013-12-11 16:09:41 +00:00
|
|
|
along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
|
2010-05-12 13:27:55 +00:00
|
|
|
|
|
|
|
Class
|
|
|
|
freeSurface
|
|
|
|
|
|
|
|
Description
|
2013-07-18 01:02:34 +00:00
|
|
|
Implementation of Free surface (interface) tracking method
|
2010-05-12 13:27:55 +00:00
|
|
|
based on moving mesh.
|
|
|
|
|
|
|
|
SourceFiles
|
|
|
|
freeSurface.C
|
|
|
|
freeSurfacePointDisplacement.C
|
|
|
|
makeFreeSurfaceData.C
|
|
|
|
|
|
|
|
\*---------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
#ifndef FreeSurface_H
|
|
|
|
#define FreeSurface_H
|
|
|
|
|
|
|
|
|
|
|
|
#include "fvCFD.H"
|
|
|
|
#include "IOdictionary.H"
|
|
|
|
#include "volFieldsFwd.H"
|
|
|
|
#include "surfaceFieldsFwd.H"
|
|
|
|
#include "faCFD.H"
|
2010-11-25 13:16:12 +00:00
|
|
|
#include "IOpatchToPatchInterpolation.H"
|
|
|
|
#include "dynamicFvMesh.H"
|
2010-05-12 13:27:55 +00:00
|
|
|
|
|
|
|
#include "surfactantProperties.H"
|
|
|
|
|
|
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
|
|
|
|
namespace Foam
|
|
|
|
{
|
|
|
|
|
|
|
|
/*---------------------------------------------------------------------------*\
|
|
|
|
Class freeSurface Declaration
|
|
|
|
\*---------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
class freeSurface
|
|
|
|
:
|
|
|
|
public IOdictionary
|
|
|
|
{
|
|
|
|
// Private data
|
2013-07-18 01:02:34 +00:00
|
|
|
|
|
|
|
//- Reference to fvMesh
|
2010-11-25 13:16:12 +00:00
|
|
|
dynamicFvMesh& mesh_;
|
2010-05-12 13:27:55 +00:00
|
|
|
|
|
|
|
//- Reference to density field
|
|
|
|
const volScalarField& rho_;
|
|
|
|
|
|
|
|
//- Reference to velocity field
|
|
|
|
volVectorField& U_;
|
|
|
|
|
|
|
|
//- Reference to pressure field
|
|
|
|
volScalarField& p_;
|
|
|
|
|
|
|
|
//- Reference to fluid flux field
|
|
|
|
const surfaceScalarField& phi_;
|
|
|
|
|
|
|
|
//- Current time index for free-surface
|
|
|
|
label curTimeIndex_;
|
|
|
|
|
|
|
|
//- Are there exist two fluids in the free-surface model
|
|
|
|
Switch twoFluids_;
|
|
|
|
|
|
|
|
//- Is it free-surface points displacement direction
|
|
|
|
// parallel with free-surface point normals
|
|
|
|
Switch normalMotionDir_;
|
|
|
|
|
2010-11-25 13:16:12 +00:00
|
|
|
//- Free-surface points displacement direction
|
2013-07-18 01:02:34 +00:00
|
|
|
// if not normal motion direction
|
2010-11-25 13:16:12 +00:00
|
|
|
vector motionDir_;
|
2010-05-12 13:27:55 +00:00
|
|
|
|
2010-11-25 13:16:12 +00:00
|
|
|
//- Is it free-surface clean of surfactant
|
2010-05-12 13:27:55 +00:00
|
|
|
Switch cleanInterface_;
|
|
|
|
|
2013-07-18 01:02:34 +00:00
|
|
|
//- ID of the fvMesh patch which represents
|
2010-05-12 13:27:55 +00:00
|
|
|
// A side of the free-surface
|
2013-07-18 01:02:34 +00:00
|
|
|
label aPatchID_;
|
2010-05-12 13:27:55 +00:00
|
|
|
|
2013-07-18 01:02:34 +00:00
|
|
|
//- ID of the fvMesh patch which represents
|
2010-05-12 13:27:55 +00:00
|
|
|
// B side of the free-surface
|
2013-07-18 01:02:34 +00:00
|
|
|
label bPatchID_;
|
2010-05-12 13:27:55 +00:00
|
|
|
|
|
|
|
//- Viscosity of fluid A
|
|
|
|
dimensionedScalar muFluidA_;
|
2013-07-18 01:02:34 +00:00
|
|
|
|
2010-05-12 13:27:55 +00:00
|
|
|
//- Viscosity of fluid B
|
|
|
|
dimensionedScalar muFluidB_;
|
|
|
|
|
|
|
|
//- Density of fluid A
|
|
|
|
dimensionedScalar rhoFluidA_;
|
2013-07-18 01:02:34 +00:00
|
|
|
|
2010-05-12 13:27:55 +00:00
|
|
|
//- Density of fluid B
|
|
|
|
dimensionedScalar rhoFluidB_;
|
|
|
|
|
|
|
|
//- Reference to gravitational acceleration
|
|
|
|
dimensionedVector g_;
|
|
|
|
|
|
|
|
//- Surface tension for the clean free-surface
|
|
|
|
dimensionedScalar cleanInterfaceSurfTension_;
|
|
|
|
|
|
|
|
//- Free surface patches which do not move
|
|
|
|
wordList fixedFreeSurfacePatches_;
|
|
|
|
|
2013-07-18 01:02:34 +00:00
|
|
|
//- Free surface patches for witch point normals
|
2010-11-25 13:16:12 +00:00
|
|
|
// must be corrected
|
|
|
|
wordList pointNormalsCorrectionPatches_;
|
|
|
|
|
|
|
|
//- Number of free-surface correctors
|
|
|
|
label nFreeSurfCorr_;
|
2010-05-12 13:27:55 +00:00
|
|
|
|
2010-11-25 13:16:12 +00:00
|
|
|
//- Interface smoothing at the begining of time step
|
|
|
|
Switch smoothing_;
|
2010-05-12 13:27:55 +00:00
|
|
|
|
2010-11-25 13:16:12 +00:00
|
|
|
// Demand-driven data
|
2010-05-12 13:27:55 +00:00
|
|
|
|
|
|
|
//- Patch to patch interpolation object which deals with
|
2013-07-18 01:02:34 +00:00
|
|
|
// interpolation of flow variables between two free-surface
|
2010-05-12 13:27:55 +00:00
|
|
|
// (interface) patches
|
2010-11-25 13:16:12 +00:00
|
|
|
mutable IOpatchToPatchInterpolation* interpolatorABPtr_;
|
2013-07-18 01:02:34 +00:00
|
|
|
|
2010-05-12 13:27:55 +00:00
|
|
|
//- Patch to patch interpolation object which deals with
|
2013-07-18 01:02:34 +00:00
|
|
|
// interpolation of flow variables between two free-surface
|
2010-05-12 13:27:55 +00:00
|
|
|
// (interface) patches
|
2010-11-25 13:16:12 +00:00
|
|
|
mutable IOpatchToPatchInterpolation* interpolatorBAPtr_;
|
2010-05-12 13:27:55 +00:00
|
|
|
|
|
|
|
//- Points which are attached to the free-surface A side faces
|
|
|
|
// and which defines the free-surface shape
|
|
|
|
mutable vectorIOField* controlPointsPtr_;
|
|
|
|
|
2013-07-18 01:02:34 +00:00
|
|
|
//- Field which additionally determines
|
2010-05-12 13:27:55 +00:00
|
|
|
// the motion of free-surface points
|
2010-11-25 13:16:12 +00:00
|
|
|
mutable labelList* motionPointsMaskPtr_;
|
2010-05-12 13:27:55 +00:00
|
|
|
|
|
|
|
//- Displacement direction of free-surface points
|
|
|
|
mutable vectorField* pointsDisplacementDirPtr_;
|
|
|
|
|
|
|
|
//- Displacement direction of free-surface control points
|
|
|
|
mutable vectorField* facesDisplacementDirPtr_;
|
|
|
|
|
2013-07-18 01:02:34 +00:00
|
|
|
//- Total displacement of free-surface points
|
2010-05-12 13:27:55 +00:00
|
|
|
// in one time step
|
|
|
|
mutable vectorIOField* totalDisplacementPtr_;
|
|
|
|
|
|
|
|
//- Finite area mesh which consists
|
|
|
|
// free-surface side A faces
|
|
|
|
mutable faMesh* aMeshPtr_;
|
|
|
|
|
|
|
|
//- Free-surface velocity field
|
|
|
|
mutable areaVectorField* UsPtr_;
|
|
|
|
|
|
|
|
//- Free-surface fluid flux
|
|
|
|
mutable edgeScalarField* phisPtr_;
|
|
|
|
|
|
|
|
//- Free-surface surfactant concetration
|
|
|
|
mutable areaScalarField* surfactConcPtr_;
|
|
|
|
|
|
|
|
//- Surface tension field
|
|
|
|
mutable areaScalarField* surfaceTensionPtr_;
|
|
|
|
|
|
|
|
//- Surfactant properties
|
|
|
|
mutable surfactantProperties* surfactantPtr_;
|
|
|
|
|
|
|
|
//- Fluid indicator
|
|
|
|
mutable volScalarField* fluidIndicatorPtr_;
|
|
|
|
|
|
|
|
// Private Member Functions
|
|
|
|
|
|
|
|
// Make demand-driven data
|
|
|
|
|
|
|
|
void makeInterpolators();
|
|
|
|
void makeControlPoints();
|
|
|
|
void makeMotionPointsMask();
|
|
|
|
void makeDirections();
|
|
|
|
void makeTotalDisplacement();
|
|
|
|
void readTotalDisplacement();
|
2010-11-25 13:16:12 +00:00
|
|
|
void makeFaMesh() const;
|
|
|
|
void makeUs() const;
|
2010-05-12 13:27:55 +00:00
|
|
|
void makePhis();
|
2010-11-25 13:16:12 +00:00
|
|
|
void makePhi();
|
|
|
|
void makeDdtPhi();
|
|
|
|
void makeSurfactConc() const;
|
|
|
|
void makeSurfaceTension() const;
|
|
|
|
void makeSurfactant() const;
|
2010-05-12 13:27:55 +00:00
|
|
|
void makeFluidIndicator();
|
|
|
|
|
|
|
|
//- Clear all demand-driven data
|
|
|
|
void clearOut();
|
|
|
|
|
|
|
|
//- Disallow default bitwise copy construct
|
|
|
|
freeSurface(const freeSurface&);
|
|
|
|
|
|
|
|
//- Disallow default bitwise assignment
|
|
|
|
void operator=(const freeSurface&);
|
|
|
|
|
|
|
|
//- Move control ponts for deltaH and calculate
|
|
|
|
// free surface points displacement
|
|
|
|
// for given new control points position
|
|
|
|
tmp<vectorField> pointDisplacement(const scalarField& deltaH);
|
|
|
|
|
2010-11-25 13:16:12 +00:00
|
|
|
// Calc least sqare plane point and normal
|
|
|
|
tmp<vectorField> lsPlanePointAndNormal
|
|
|
|
(
|
|
|
|
const vectorField& points,
|
|
|
|
const vector& origin,
|
|
|
|
const vector& axis
|
|
|
|
) const;
|
|
|
|
|
2010-05-12 13:27:55 +00:00
|
|
|
public:
|
|
|
|
|
|
|
|
// Declare name of the class and it's debug switch
|
|
|
|
ClassName("freeSurface");
|
|
|
|
|
|
|
|
|
|
|
|
// Constructors
|
|
|
|
|
|
|
|
freeSurface
|
|
|
|
(
|
2010-11-25 13:16:12 +00:00
|
|
|
dynamicFvMesh& m,
|
2010-05-12 13:27:55 +00:00
|
|
|
const volScalarField& rho,
|
2013-07-18 01:02:34 +00:00
|
|
|
volVectorField& Ub,
|
|
|
|
volScalarField& Pb,
|
2010-05-12 13:27:55 +00:00
|
|
|
const surfaceScalarField& phi
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
// Destructor
|
|
|
|
|
2013-07-18 01:02:34 +00:00
|
|
|
~freeSurface();
|
2010-05-12 13:27:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
// Member Functions
|
|
|
|
|
|
|
|
|
|
|
|
//- Return reference to fvMesh
|
2010-11-25 13:16:12 +00:00
|
|
|
dynamicFvMesh& mesh()
|
2010-05-12 13:27:55 +00:00
|
|
|
{
|
|
|
|
return mesh_;
|
|
|
|
}
|
|
|
|
|
|
|
|
//- Return reference to fvMesh
|
2010-11-25 13:16:12 +00:00
|
|
|
const dynamicFvMesh& mesh() const
|
2010-05-12 13:27:55 +00:00
|
|
|
{
|
|
|
|
return mesh_;
|
|
|
|
}
|
|
|
|
|
2010-11-25 13:16:12 +00:00
|
|
|
//- Return reference to DB
|
|
|
|
const Time& DB() const
|
2010-05-12 13:27:55 +00:00
|
|
|
{
|
|
|
|
return U_.mesh().time();
|
|
|
|
}
|
|
|
|
|
|
|
|
//- Return reference to velocity field
|
|
|
|
const volScalarField& rho() const
|
|
|
|
{
|
|
|
|
return rho_;
|
|
|
|
}
|
|
|
|
|
|
|
|
//- Return reference to velocity field
|
|
|
|
volVectorField& U()
|
|
|
|
{
|
|
|
|
return U_;
|
|
|
|
}
|
|
|
|
|
2010-11-25 13:16:12 +00:00
|
|
|
//- Return reference to velocity field
|
|
|
|
const volVectorField& U() const
|
|
|
|
{
|
|
|
|
return U_;
|
|
|
|
}
|
|
|
|
|
2010-05-12 13:27:55 +00:00
|
|
|
//- Return reference to pressure field
|
|
|
|
volScalarField& p()
|
|
|
|
{
|
|
|
|
return p_;
|
|
|
|
}
|
|
|
|
|
2010-11-25 13:16:12 +00:00
|
|
|
//- Return reference to pressure field
|
|
|
|
const volScalarField& p() const
|
2010-05-12 13:27:55 +00:00
|
|
|
{
|
2010-11-25 13:16:12 +00:00
|
|
|
return p_;
|
2010-05-12 13:27:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
//- Are there exist two fluid
|
|
|
|
// in the free-surface model
|
|
|
|
bool twoFluids() const
|
|
|
|
{
|
|
|
|
return twoFluids_;
|
|
|
|
}
|
|
|
|
|
|
|
|
//- Motion direction swithc
|
|
|
|
bool normalMotionDir() const
|
|
|
|
{
|
|
|
|
return normalMotionDir_;
|
|
|
|
}
|
|
|
|
|
|
|
|
//- Is it interface clean
|
|
|
|
bool cleanInterface() const
|
|
|
|
{
|
|
|
|
return cleanInterface_;
|
|
|
|
}
|
|
|
|
|
|
|
|
//- ID of patch which represent A side
|
|
|
|
// of free-surface
|
|
|
|
const label& aPatchID() const
|
|
|
|
{
|
|
|
|
return aPatchID_;
|
|
|
|
}
|
|
|
|
|
|
|
|
//- ID of patch which represent B side
|
|
|
|
// of free-surface
|
|
|
|
const label& bPatchID() const
|
|
|
|
{
|
|
|
|
return bPatchID_;
|
|
|
|
}
|
|
|
|
|
|
|
|
//- Viscosity of fluid A
|
|
|
|
const dimensionedScalar& muFluidA() const
|
|
|
|
{
|
|
|
|
return muFluidA_;
|
|
|
|
}
|
|
|
|
|
|
|
|
//- Viscosity of fluid B
|
|
|
|
const dimensionedScalar& muFluidB() const
|
|
|
|
{
|
|
|
|
return muFluidB_;
|
|
|
|
}
|
|
|
|
|
|
|
|
//- Density of fluid A
|
|
|
|
const dimensionedScalar& rhoFluidA() const
|
|
|
|
{
|
|
|
|
return rhoFluidA_;
|
|
|
|
}
|
|
|
|
|
|
|
|
//- Densiti of fluid B
|
|
|
|
const dimensionedScalar& rhoFluidB() const
|
|
|
|
{
|
|
|
|
return rhoFluidB_;
|
|
|
|
}
|
|
|
|
|
|
|
|
//- Gravity
|
|
|
|
const dimensionedVector& g() const
|
|
|
|
{
|
|
|
|
return g_;
|
|
|
|
}
|
|
|
|
|
|
|
|
//- Surface tension for clean interface
|
|
|
|
const dimensionedScalar& cleanInterfaceSurfTension() const
|
|
|
|
{
|
|
|
|
return cleanInterfaceSurfTension_;
|
|
|
|
}
|
|
|
|
|
|
|
|
//- Return reference to interpolator from free surface side A to
|
|
|
|
// free surface side B
|
2010-11-25 13:16:12 +00:00
|
|
|
const IOpatchToPatchInterpolation& interpolatorAB();
|
2010-05-12 13:27:55 +00:00
|
|
|
|
|
|
|
//- Return reference to interpolator from free surface side B to
|
|
|
|
// free surface side A
|
2010-11-25 13:16:12 +00:00
|
|
|
const IOpatchToPatchInterpolation& interpolatorBA();
|
2010-05-12 13:27:55 +00:00
|
|
|
|
|
|
|
//- Return control points
|
|
|
|
vectorField& controlPoints();
|
|
|
|
|
|
|
|
//- Return reference to motion points mask field
|
2010-11-25 13:16:12 +00:00
|
|
|
labelList& motionPointsMask();
|
2010-05-12 13:27:55 +00:00
|
|
|
|
|
|
|
//- Return reference to point displacement direction field
|
|
|
|
vectorField& pointsDisplacementDir();
|
|
|
|
|
|
|
|
//- Return reference to control points displacement direction field
|
|
|
|
vectorField& facesDisplacementDir();
|
|
|
|
|
|
|
|
//- Return total points displacement
|
|
|
|
vectorField& totalDisplacement();
|
|
|
|
|
|
|
|
//- Return reference to finite area mesh
|
|
|
|
faMesh& aMesh();
|
|
|
|
|
2010-11-25 13:16:12 +00:00
|
|
|
//- Return reference to finite area mesh
|
|
|
|
const faMesh& aMesh() const;
|
|
|
|
|
2010-05-12 13:27:55 +00:00
|
|
|
//- Return free-surface velocity field
|
|
|
|
areaVectorField& Us();
|
|
|
|
|
2010-11-25 13:16:12 +00:00
|
|
|
//- Return free-surface velocity field
|
|
|
|
const areaVectorField& Us() const;
|
|
|
|
|
2010-05-12 13:27:55 +00:00
|
|
|
//- Return free-surface fluid flux field
|
|
|
|
edgeScalarField& Phis();
|
|
|
|
|
|
|
|
//- Return free-surface surfactant concentration field
|
|
|
|
areaScalarField& surfactantConcentration();
|
|
|
|
|
2010-11-25 13:16:12 +00:00
|
|
|
//- Return free-surface surfactant concentration field
|
|
|
|
const areaScalarField& surfactantConcentration() const;
|
|
|
|
|
2010-05-12 13:27:55 +00:00
|
|
|
//- Return surface tension field
|
|
|
|
areaScalarField& surfaceTension();
|
|
|
|
|
2010-11-25 13:16:12 +00:00
|
|
|
//- Return surface tension field
|
|
|
|
const areaScalarField& surfaceTension() const;
|
|
|
|
|
|
|
|
//- Return surface tension gradient
|
|
|
|
tmp<areaVectorField> surfaceTensionGrad();
|
|
|
|
|
2010-05-12 13:27:55 +00:00
|
|
|
//- Return surfactant properties
|
2010-11-25 13:16:12 +00:00
|
|
|
const surfactantProperties& surfactant() const;
|
2010-05-12 13:27:55 +00:00
|
|
|
|
|
|
|
//- Return referenct to fluid indicator
|
|
|
|
const volScalarField& fluidIndicator();
|
|
|
|
|
|
|
|
//- Update control points end displacement directions
|
|
|
|
void updateDisplacementDirections();
|
|
|
|
|
2010-11-25 13:16:12 +00:00
|
|
|
//- Predict interface points position
|
|
|
|
bool predictPoints();
|
|
|
|
|
|
|
|
//- Correct interface points position
|
|
|
|
bool correctPoints();
|
2010-05-12 13:27:55 +00:00
|
|
|
|
2010-11-25 13:16:12 +00:00
|
|
|
//- Move only free-surface points
|
|
|
|
bool movePoints(const scalarField& interfacePHi);
|
2010-05-12 13:27:55 +00:00
|
|
|
|
|
|
|
//- Move mesh points for old time free-surface points displacement
|
|
|
|
bool moveMeshPointsForOldFreeSurfDisplacement();
|
|
|
|
|
|
|
|
//- Move mesh points
|
|
|
|
bool moveMeshPoints();
|
|
|
|
|
2010-11-25 13:16:12 +00:00
|
|
|
//- Update free-surface boundary conditions
|
|
|
|
void updateBoundaryConditions();
|
2010-05-12 13:27:55 +00:00
|
|
|
|
|
|
|
//- Correct free-surface pressure
|
2010-11-25 13:16:12 +00:00
|
|
|
void updatePressure();
|
2010-05-12 13:27:55 +00:00
|
|
|
|
|
|
|
//- Correct free-surface velocity
|
2010-11-25 13:16:12 +00:00
|
|
|
void updateVelocity();
|
2010-05-12 13:27:55 +00:00
|
|
|
|
2010-11-25 13:16:12 +00:00
|
|
|
//- Update free-surface flux
|
|
|
|
void updateSurfaceFlux();
|
2010-05-12 13:27:55 +00:00
|
|
|
|
2013-07-18 01:02:34 +00:00
|
|
|
//- Update free-surface surfactant concentration
|
2010-11-25 13:16:12 +00:00
|
|
|
void updateSurfactantConcentration();
|
2010-05-12 13:27:55 +00:00
|
|
|
|
2010-11-25 13:16:12 +00:00
|
|
|
//- Correct surface velocity boundary conditions
|
|
|
|
void correctUsBoundaryConditions();
|
2010-05-12 13:27:55 +00:00
|
|
|
|
|
|
|
//- Calculate total pressure force
|
2010-11-25 13:16:12 +00:00
|
|
|
vector totalPressureForce() const;
|
2010-05-12 13:27:55 +00:00
|
|
|
|
|
|
|
//- Calculate total viscous force
|
2010-11-25 13:16:12 +00:00
|
|
|
vector totalViscousForce() const;
|
|
|
|
|
|
|
|
//- Calculate total surface tension force
|
|
|
|
vector totalSurfaceTensionForce() const;
|
2010-05-12 13:27:55 +00:00
|
|
|
|
|
|
|
//- Calculate free-surface undulation indicator
|
|
|
|
tmp<scalarField> undulationIndicator();
|
|
|
|
|
|
|
|
//- Smooth free-surface
|
|
|
|
void smooth();
|
2010-11-25 13:16:12 +00:00
|
|
|
|
|
|
|
//- Chech free-surface faces flatness
|
|
|
|
tmp<scalarField> checkFaceFlatness();
|
|
|
|
|
|
|
|
//- Initialize control points position
|
|
|
|
void initializeControlPointsPosition();
|
|
|
|
|
|
|
|
//- Maximal surface tension based Courant number
|
|
|
|
scalar maxCourantNumber();
|
|
|
|
|
|
|
|
//- Update properties
|
|
|
|
void updateProperties();
|
|
|
|
|
|
|
|
//- Write VTK freeSurface mesh
|
|
|
|
void writeVTK() const;
|
|
|
|
|
|
|
|
//- Write VTK freeSurface control points
|
|
|
|
void writeVTKControlPoints();
|
2010-05-12 13:27:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
|
|
|
|
} // End namespace Foam
|
|
|
|
|
|
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// ************************************************************************* //
|