1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
11 OpenFOAM is free software: you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by
13 the Free Software Foundation, either version 3 of the License, or
14 (at your option) any later version.
16 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
24 \*---------------------------------------------------------------------------*/
26 #include "surfaceInterpolate.H"
27 #include "fvcSurfaceIntegrate.H"
29 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
33 namespace regionModels
35 namespace surfaceFilmModels
38 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
40 inline const Switch& kinematicSingleLayer::momentumPredictor() const
42 return momentumPredictor_;
46 inline label kinematicSingleLayer::nOuterCorr() const
52 inline label kinematicSingleLayer::nCorr() const
58 inline label kinematicSingleLayer::nNonOrthCorr() const
64 inline const volScalarField& kinematicSingleLayer::mu() const
70 inline const volScalarField& kinematicSingleLayer::sigma() const
76 inline const volScalarField& kinematicSingleLayer::delta() const
82 inline volVectorField& kinematicSingleLayer::USpPrimary()
88 inline volScalarField& kinematicSingleLayer::pSpPrimary()
94 inline volScalarField& kinematicSingleLayer::rhoSpPrimary()
100 inline volVectorField& kinematicSingleLayer::USp()
106 inline volScalarField& kinematicSingleLayer::pSp()
112 inline volScalarField& kinematicSingleLayer::rhoSp()
118 inline const volVectorField& kinematicSingleLayer::USp() const
124 inline const volScalarField& kinematicSingleLayer::pSp() const
130 inline const volScalarField& kinematicSingleLayer::rhoSp() const
136 inline const volVectorField& kinematicSingleLayer::UPrimary() const
142 inline const volScalarField& kinematicSingleLayer::pPrimary() const
148 inline const volScalarField& kinematicSingleLayer::rhoPrimary() const
154 inline const volScalarField& kinematicSingleLayer::muPrimary() const
160 inline injectionModelList& kinematicSingleLayer::injection()
166 inline tmp<volScalarField> kinematicSingleLayer::mass() const
168 return rho_*delta_*magSf();
172 inline tmp<volScalarField> kinematicSingleLayer::netMass() const
174 dimensionedScalar d0("SMALL", dimLength, ROOTVSMALL);
176 fvc::surfaceSum(phi_/(fvc::interpolate(delta_) + d0))*time().deltaT()
177 + rho_*delta_*magSf();
181 inline tmp<volScalarField> kinematicSingleLayer::gNorm() const
183 tmp<volScalarField> tgNorm
196 zeroGradientFvPatchScalarField::typeName
204 inline tmp<volScalarField> kinematicSingleLayer::gNormClipped() const
206 tmp<volScalarField> tgNormClipped
219 zeroGradientFvPatchScalarField::typeName
223 volScalarField& gNormClipped = tgNormClipped();
224 gNormClipped.min(0.0);
226 return tgNormClipped;
230 inline tmp<volVectorField> kinematicSingleLayer::gTan() const
232 tmp<volVectorField> tgTan
245 zeroGradientFvPatchVectorField::typeName
253 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
255 } // End namespace surfaceFilmModels
256 } // End namespace regionModels
257 } // End namespace Foam
259 // ************************************************************************* //