FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

lduInterface.H

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------------*\
00002   =========                 |
00003   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
00004    \\    /   O peration     |
00005     \\  /    A nd           | Copyright (C) 1991-2010 OpenCFD Ltd.
00006      \\/     M anipulation  |
00007 -------------------------------------------------------------------------------
00008 License
00009     This file is part of OpenFOAM.
00010 
00011     OpenFOAM is free software: you can redistribute it and/or modify it
00012     under the terms of the GNU General Public License as published by
00013     the Free Software Foundation, either version 3 of the License, or
00014     (at your option) any later version.
00015 
00016     OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
00017     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00018     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00019     for more details.
00020 
00021     You should have received a copy of the GNU General Public License
00022     along with OpenFOAM.  If not, see <http://www.gnu.org/licenses/>.
00023 
00024 Class
00025     Foam::lduInterface
00026 
00027 Description
00028     An abstract base class for implicitly-coupled interfaces
00029     e.g. processor and cyclic patches.
00030     
00031 SourceFiles
00032     lduInterface.C
00033 
00034 \*---------------------------------------------------------------------------*/
00035 
00036 #ifndef lduInterface_H
00037 #define lduInterface_H
00038 
00039 #include <OpenFOAM/labelField.H>
00040 #include <OpenFOAM/typeInfo.H>
00041 
00042 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00043 
00044 namespace Foam
00045 {
00046 
00047 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00048 
00049 /*---------------------------------------------------------------------------*\
00050                      Class lduInterface Declaration
00051 \*---------------------------------------------------------------------------*/
00052 
00053 class lduInterface
00054 {
00055     // Private Member Functions
00056 
00057         //- Disallow default bitwise copy construct
00058         lduInterface(const lduInterface&);
00059 
00060         //- Disallow default bitwise assignment
00061         void operator=(const lduInterface&);
00062 
00063 
00064 public:
00065 
00066     //- Runtime type information
00067     TypeName("lduInterface");
00068 
00069 
00070     // Constructors
00071 
00072         //- Construct null
00073         lduInterface()
00074         {}
00075 
00076 
00077     // Destructor
00078 
00079         virtual ~lduInterface();
00080 
00081 
00082     // Member Functions
00083 
00084         // Access
00085 
00086             //- Return faceCell addressing
00087             virtual const unallocLabelList& faceCells() const = 0;
00088 
00089 
00090         // Interface transfer functions
00091 
00092             //- Return the values of the given internal data adjacent to
00093             //  the interface as a field
00094             virtual tmp<labelField> interfaceInternalField
00095             (
00096                 const unallocLabelList& internalData
00097             ) const = 0;
00098 
00099             //- Initialise interface data transfer
00100             virtual void initTransfer
00101             (
00102                 const Pstream::commsTypes commsType,
00103                 const unallocLabelList& interfaceData
00104             ) const
00105             {}
00106 
00107             //- Transfer and return neighbour field
00108             virtual tmp<labelField> transfer
00109             (
00110                 const Pstream::commsTypes commsType,
00111                 const unallocLabelList& interfaceData
00112             ) const = 0;
00113 
00114             //- Initialise transfer of internal field adjacent to the interface
00115             virtual void initInternalFieldTransfer
00116             (
00117                 const Pstream::commsTypes commsType,
00118                 const unallocLabelList& iF
00119             ) const
00120             {}
00121 
00122             //- Transfer and return internal field adjacent to the interface
00123             virtual tmp<labelField> internalFieldTransfer
00124             (
00125                 const Pstream::commsTypes commsType,
00126                 const unallocLabelList& iF
00127             ) const = 0;
00128 };
00129 
00130 
00131 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00132 
00133 } // End namespace Foam
00134 
00135 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00136 
00137 #endif
00138 
00139 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines