1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright held by original author
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 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
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
26 Foam::jumpCyclicFvPatchField
29 Foam::jumpCyclicFvPatchField
32 jumpCyclicFvPatchField.C
34 \*---------------------------------------------------------------------------*/
36 #ifndef jumpCyclicFvPatchField_H
37 #define jumpCyclicFvPatchField_H
39 #include "cyclicFvPatchField.H"
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 /*---------------------------------------------------------------------------*\
47 Class jumpCyclicFvPatchField Declaration
48 \*---------------------------------------------------------------------------*/
51 class jumpCyclicFvPatchField
53 public cyclicFvPatchField<Type>
58 //- Runtime type information
59 TypeName("jumpCyclic");
64 //- Construct from patch and internal field
65 jumpCyclicFvPatchField
68 const DimensionedField<Type, volMesh>&
71 //- Construct from patch, internal field and dictionary
72 jumpCyclicFvPatchField
75 const DimensionedField<Type, volMesh>&,
79 //- Construct by mapping given jumpCyclicFvPatchField onto a new patch
80 jumpCyclicFvPatchField
82 const jumpCyclicFvPatchField<Type>&,
84 const DimensionedField<Type, volMesh>&,
85 const fvPatchFieldMapper&
89 jumpCyclicFvPatchField
91 const jumpCyclicFvPatchField<Type>&
94 //- Construct as copy setting internal field reference
95 jumpCyclicFvPatchField
97 const jumpCyclicFvPatchField<Type>&,
98 const DimensionedField<Type, volMesh>&
106 //- Return the interface type
107 virtual const word& interfaceFieldType() const
109 return cyclicFvPatchField<Type>::type();
112 //- Return the "jump" across the patch as a "half" field
113 virtual tmp<Field<Type> > jump() const = 0;
116 // Evaluation functions
118 //- Return neighbour coupled given internal cell data
119 virtual tmp<Field<Type> > patchNeighbourField() const;
121 //- Update result field based on interface functionality
122 virtual void updateInterfaceMatrix
124 const scalarField& psiInternal,
127 const scalarField& coeffs,
128 const direction cmpt,
129 const Pstream::commsTypes commsType
134 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
136 } // End namespace Foam
138 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
141 # include "jumpCyclicFvPatchField.C"
144 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
148 // ************************************************************************* //