1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | foam-extend: Open Source CFD
5 \\ / A nd | For copyright notice see file Copyright
7 -------------------------------------------------------------------------------
9 This file is part of foam-extend.
11 foam-extend is free software: you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by the
13 Free Software Foundation, either version 3 of the License, or (at your
14 option) any later version.
16 foam-extend is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
31 contactPatchPairSlavePressure.C
32 contactPatchPairUpdateContact.C
34 \*---------------------------------------------------------------------------*/
36 #ifndef contactPatchPair_H
37 #define contactPatchPair_H
40 #include "primitivePatchInterpolation.H"
41 #include "patchToPatchInterpolation.H"
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
48 /*---------------------------------------------------------------------------*\
49 Class contactPatchPair Declaration
50 \*---------------------------------------------------------------------------*/
52 class contactPatchPair
59 //- Index of the directionMixed patch
60 const label masterPatchIndex_;
62 //- Index of the gradient patch
63 const label slavePatchIndex_;
65 //- Master patch interpolator
66 primitivePatchInterpolation masterInterpolate_;
68 //- Slave patch interpolator
69 primitivePatchInterpolation slaveInterpolate_;
71 //- Patch to patch interpolator
72 patchToPatchInterpolation patchToPatchInterpolate_;
78 scalarField touchFraction_;
80 //- Slave displacement
81 vectorField slaveDisplacement_;
83 // Private Member Functions
85 //- Disallow default bitwise copy construct
86 contactPatchPair(const contactPatchPair&);
88 //- Disallow default bitwise assignment
89 void operator=(const contactPatchPair&);
96 //- Construct from components
102 const scalar tolerance
108 //- Update contact data
111 const volVectorField& disp
114 //- Return contact fraction for patch
115 const scalarField& touchFraction() const
117 return touchFraction_;
120 //- Return slave patch displacement
121 const vectorField& slaveDisplacement() const
123 return slaveDisplacement_;
126 //- Return slave patch pressure
127 tmp<scalarField> slavePressure
129 const scalarField& traction
135 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
137 } // End namespace Foam
139 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
143 // ************************************************************************* //