1 /*---------------------------------------------------------------------------*\
\r
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\r
5 \\ / A nd | Copyright (C) 2010-2011 OpenCFD Ltd.
\r
7 -------------------------------------------------------------------------------
\r
9 This file is part of OpenFOAM.
\r
11 OpenFOAM is free software: you can redistribute it and/or modify it
\r
12 under the terms of the GNU General Public License as published by
\r
13 the Free Software Foundation, either version 3 of the License, or
\r
14 (at your option) any later version.
\r
16 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
\r
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
\r
18 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
\r
21 You should have received a copy of the GNU General Public License
\r
22 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
\r
24 \*---------------------------------------------------------------------------*/
\r
26 #include "kinematicSingleLayer.H"
\r
28 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
\r
32 namespace regionModels
\r
34 namespace surfaceFilmModels
\r
37 // * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //
\r
39 template<class Type>
\r
40 void kinematicSingleLayer::constrainFilmField
\r
43 const typename Type::cmptType& value
\r
46 forAll(intCoupledPatchIDs_, i)
\r
48 label patchI = intCoupledPatchIDs_[i];
\r
49 field.boundaryField()[patchI] = value;
\r
52 Info<< "Constraining " << field.name()
\r
53 << " boundary " << field.boundaryField()[patchI].patch().name()
\r
54 << " to " << value << endl;
\r
57 forAll(passivePatchIDs_, i)
\r
59 label patchI = passivePatchIDs_[i];
\r
60 field.boundaryField()[patchI] = value;
\r
63 Info<< "Constraining " << field.name()
\r
64 << " boundary " << field.boundaryField()[patchI].patch().name()
\r
65 << " to " << value << endl;
\r
71 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
\r
73 } // end namespace Foam
\r
74 } // end namespace regionModels
\r
75 } // end namespace surfaceFilmModels
\r
77 // ************************************************************************* //
\r