fixed writing out entries in advective bc
[OpenFOAM-1.6-ext.git] / src / tetDecompositionFiniteElement / tetPolyMeshCellDecomp / tetPolyPatches / basic / coupledFace / coupledFaceTetPolyPatchCellDecomp.C
blobae539b1755f8ef9f6c99a282ed41192c3b12e775
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright held by original author
6      \\/     M anipulation  |
7 -------------------------------------------------------------------------------
8 License
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 the
13     Free Software Foundation; either version 2 of the License, or (at your
14     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
19     for more details.
21     You should have received a copy of the GNU General Public License
22     along with OpenFOAM; if not, write to the Free Software Foundation,
23     Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25 \*---------------------------------------------------------------------------*/
27 #include "coupledFaceTetPolyPatchCellDecomp.H"
28 #include "tetPolyBoundaryMesh.H"
30 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
32 namespace Foam
34     defineTypeNameAndDebug(coupledFaceTetPolyPatchCellDecomp, 0);
38 // * * * * * * * * * * * * * * * * Constructors  * * * * * * * * * * * * * * //
40 Foam::coupledFaceTetPolyPatchCellDecomp::coupledFaceTetPolyPatchCellDecomp
42     const polyPatch& patch,
43     const tetPolyBoundaryMeshCellDecomp& bm
46     faceTetPolyPatchCellDecomp(patch, bm),
47     coupledPolyPatch_(refCast<const coupledPolyPatch>(patch)),
48     nonGlobalPatchPointsPtr_(NULL),
49     meshPointsPtr_(NULL)
53 // * * * * * * * * * * * * * * * * Destructor  * * * * * * * * * * * * * * * //
55 Foam::coupledFaceTetPolyPatchCellDecomp::~coupledFaceTetPolyPatchCellDecomp()
57     deleteDemandDrivenData(nonGlobalPatchPointsPtr_);
58     deleteDemandDrivenData(meshPointsPtr_);
62 // * * * * * * * * * * * * * * * Member Functions  * * * * * * * * * * * * * //
64 const Foam::labelList&
65 Foam::coupledFaceTetPolyPatchCellDecomp::nonGlobalPatchPoints() const
67     if (!nonGlobalPatchPointsPtr_)
68     {
69         calcMeshPoints();
70     }
72     return *nonGlobalPatchPointsPtr_;
76 const Foam::labelList&
77 Foam::coupledFaceTetPolyPatchCellDecomp::meshPoints() const
79     if (!meshPointsPtr_)
80     {
81         calcMeshPoints();
82     }
84     return *meshPointsPtr_;
88 const Foam::pointField&
89 Foam::coupledFaceTetPolyPatchCellDecomp::localPoints() const
91     notImplemented("coupledFaceTetPolyPatchCellDecomp::localPoints() const");
92     return pointField::null();
96 const Foam::vectorField&
97 Foam::coupledFaceTetPolyPatchCellDecomp::pointNormals() const
99     notImplemented("coupledFaceTetPolyPatchCellDecomp::pointNormals() const");
100     return vectorField::null();
104 // ************************************************************************* //