symmetryFaPatch.C
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | www.openfoam.com
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8  Copyright (C) 2016-2017 Wikki Ltd
9 -------------------------------------------------------------------------------
10 License
11  This file is part of OpenFOAM.
12 
13  OpenFOAM is free software: you can redistribute it and/or modify it
14  under the terms of the GNU General Public License as published by
15  the Free Software Foundation, either version 3 of the License, or
16  (at your option) any later version.
17 
18  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  for more details.
22 
23  You should have received a copy of the GNU General Public License
24  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 
26 \*---------------------------------------------------------------------------*/
27 
28 #include "symmetryFaPatch.H"
30 
31 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
32 
33 namespace Foam
34 {
35  defineTypeNameAndDebug(symmetryFaPatch, 0);
36  addToRunTimeSelectionTable(faPatch, symmetryFaPatch, dictionary);
37 }
38 
39 // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
40 
42 {
43  // Non-orthogonal correction not allowed
44  cv = vector::zero;
45 }
46 
47 
48 // * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * * * * * //
49 
51 (
52  const word& name,
53  const labelList& edgeLabels,
54  const label index,
55  const faBoundaryMesh& bm,
56  const label ngbPolyPatchIndex
57 )
58 :
59  faPatch(name, edgeLabels, index, bm, ngbPolyPatchIndex)
60 {}
61 
62 
64 (
65  const word& name,
66  const dictionary& dict,
67  const label index,
68  const faBoundaryMesh& bm
69 )
70 :
71  faPatch(name, dict, index, bm)
72 {
73  if (ngbPolyPatchIndex() < 0)
74  {
76  << "Neighbour polyPatch index is not specified for faPatch "
77  << this->name() << exit(FatalError);
78  }
79 }
80 
81 
82 // ************************************************************************* //
Foam::addToRunTimeSelectionTable
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:65
Foam::symmetryFaPatch::makeCorrVecs
virtual void makeCorrVecs(vectorField &) const
Make patch face non-orthogonality correction vectors.
Definition: symmetryFaPatch.C:41
Foam::faBoundaryMesh
Finite area boundary mesh.
Definition: faBoundaryMesh.H:65
Foam::Field< vector >
symmetryFaPatch.H
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::FatalError
error FatalError
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:123
addToRunTimeSelectionTable.H
Macros for easy insertion into run-time selection tables.
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::exit
errorManipArg< error, int > exit(error &err, const int errNo=1)
Definition: errorManip.H:130
FatalErrorInFunction
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Definition: error.H:453
Foam::List< label >
Foam::symmetryFaPatch::symmetryFaPatch
symmetryFaPatch(const word &name, const labelList &edgeLabels, const label index, const faBoundaryMesh &bm, const label ngbPolyPatchIndex)
Construct from components.
Definition: symmetryFaPatch.C:51
Foam::name
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
Definition: exprTraits.C:59
Foam::VectorSpace< Vector< scalar >, scalar, 3 >::zero
static const Vector< scalar > zero
Definition: VectorSpace.H:115
Foam::faPatch
Finite area patch class. Used for 2-D non-Euclidian finite area method.
Definition: faPatch.H:69
Foam::defineTypeNameAndDebug
defineTypeNameAndDebug(combustionModel, 0)