Loading...
Searching...
No Matches
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 Copyright (C) 2022 OpenCFD Ltd.
10-------------------------------------------------------------------------------
11License
12 This file is part of OpenFOAM.
13
14 OpenFOAM is free software: you can redistribute it and/or modify it
15 under the terms of the GNU General Public License as published by
16 the Free Software Foundation, either version 3 of the License, or
17 (at your option) any later version.
18
19 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22 for more details.
23
24 You should have received a copy of the GNU General Public License
25 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26
27\*---------------------------------------------------------------------------*/
28
31
32// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
33
34namespace Foam
40// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
41
43{
44 // Non-orthogonal correction not allowed
45 cv = Zero;
46}
47
48
49// * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * * * * * //
50
52(
53 const word& name,
54 const labelUList& edgeLabels,
55 const label index,
56 const faBoundaryMesh& bm,
57 const label nbrPolyPatchi,
58 const word& patchType
59)
60:
61 faPatch(name, edgeLabels, index, bm, nbrPolyPatchi, patchType)
62{}
63
64
66(
67 const word& name,
68 const dictionary& dict,
69 const label index,
70 const faBoundaryMesh& bm,
71 const word& patchType
72)
73:
74 faPatch(name, dict, index, bm, patchType)
75{
76 if (ngbPolyPatchIndex() < 0)
77 {
79 << "Neighbour polyPatch index is not specified for faPatch "
80 << this->name() << exit(FatalError);
81 }
82}
83
84
86(
87 const symmetryFaPatch& p,
89)
90:
91 faPatch(p, bm)
92{}
93
94
96(
97 const symmetryFaPatch& p,
98 const faBoundaryMesh& bm,
99 const label index,
100 const labelUList& edgeLabels,
101 const label nbrPolyPatchi
102)
103:
104 faPatch(p, bm, index, edgeLabels, nbrPolyPatchi)
105{}
106
107
108// ************************************************************************* //
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition dictionary.H:133
Finite area boundary mesh, which is a faPatch list with registered IO, a reference to the associated ...
Finite area patch class. Used for 2-D non-Euclidian finite area method.
Definition faPatch.H:76
const labelList & edgeLabels() const noexcept
Return the list of edges.
Definition faPatch.H:335
label ngbPolyPatchIndex() const noexcept
The neighbour polyPatch index.
Definition faPatch.H:359
friend class faBoundaryMesh
The faPatch geometry initialisation is called by faBoundaryMesh.
Definition faPatch.H:130
label index() const noexcept
The index of this patch in the boundaryMesh.
const word & name() const noexcept
The patch name.
Symmetry-plane patch.
virtual void makeCorrVecs(vectorField &) const
Make patch face non-orthogonality correction vectors.
symmetryFaPatch(const word &name, const labelUList &edgeLabels, const label index, const faBoundaryMesh &bm, const label nbrPolyPatchi, const word &patchType)
Construct from components.
A class for handling words, derived from Foam::string.
Definition word.H:66
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
Definition className.H:142
volScalarField & p
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Definition error.H:600
Namespace for OpenFOAM.
Field< vector > vectorField
Specialisation of Field<T> for vector.
static constexpr const zero Zero
Global zero (0).
Definition zero.H:127
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
Definition exprTraits.C:127
errorManipArg< error, int > exit(error &err, const int errNo=1)
Definition errorManip.H:125
UList< label > labelUList
A UList of labels.
Definition UList.H:75
dictionary dict