OpenFOAM: API Guide
v2006
The open source CFD toolbox
patchExprFieldBase.H
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) 2011-2018 Bernhard Gschaider
9
Copyright (C) 2019-2020 OpenCFD Ltd.
10
-------------------------------------------------------------------------------
11
License
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
Class
28
Foam::expressions::patchExprFieldBase
29
30
Description
31
Base class for managing patches with expressions.
32
The expected input supports values, gradients and mixed conditions
33
34
Usage
35
\table
36
Property | Description | Required | Default
37
valueExpr | expression for fixed value | no | 0
38
gradientExpr | expression for patch normal gradient | no | 0
39
fractionExpr | expression for value fraction weight | no | 1
40
\endtable
41
42
SourceFiles
43
patchExprFieldBase.C
44
45
\*---------------------------------------------------------------------------*/
46
47
#ifndef expressions_patchExprFieldBase_H
48
#define expressions_patchExprFieldBase_H
49
50
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
51
52
#include "
dictionary.H
"
53
#include "
exprString.H
"
54
55
namespace
Foam
56
{
57
58
// Forward Declarations
59
class
facePointPatch;
60
class
fvPatch;
61
class
polyPatch;
62
63
namespace
expressions
64
{
65
66
/*---------------------------------------------------------------------------*\
67
Class patchExprFieldBase Declaration
68
\*---------------------------------------------------------------------------*/
69
70
class
patchExprFieldBase
71
{
72
protected
:
73
74
// Protected Data
75
76
bool
debug_
;
77
bool
allowGradient_
;
78
79
//- Slightly dodgy concept here
80
bool
evalOnConstruct_
;
81
82
// The expressions
83
expressions::exprString
valueExpr_
;
84
expressions::exprString
gradExpr_
;
85
expressions::exprString
fracExpr_
;
86
87
88
public
:
89
90
// Constructors
91
92
//- Default construct
93
patchExprFieldBase
();
94
95
//- Construct with specified gradient handling
96
explicit
patchExprFieldBase
(
bool
allowGradient);
97
98
//- Construct from dictionary
99
explicit
patchExprFieldBase
100
(
101
const
dictionary
&
dict
,
102
bool
allowGradient =
false
,
103
bool
isPointVal =
false
104
);
105
106
//- Copy constructor
107
patchExprFieldBase
(
const
patchExprFieldBase
& rhs);
108
109
110
// Member Functions
111
112
//- Write
113
void
write
(
Ostream
& os)
const
;
114
};
115
116
117
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
118
119
}
// End namespace expressions
120
}
// End namespace Foam
121
122
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
123
124
#endif
125
126
// ************************************************************************* //
Foam::expressions::patchExprFieldBase::debug_
bool debug_
Definition:
patchExprFieldBase.H:95
exprString.H
Foam::expressions::patchExprFieldBase::allowGradient_
bool allowGradient_
Definition:
patchExprFieldBase.H:96
Foam::expressions::patchExprFieldBase::gradExpr_
expressions::exprString gradExpr_
Definition:
patchExprFieldBase.H:103
Foam::expressions::patchExprFieldBase
Base class for managing patches with expressions. The expected input supports values,...
Definition:
patchExprFieldBase.H:89
Foam::expressions::patchExprFieldBase::patchExprFieldBase
patchExprFieldBase()
Default construct.
Definition:
patchExprFieldBase.C:37
dict
dictionary dict
Definition:
searchingEngine.H:14
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition:
dictionary.H:121
Foam
Namespace for OpenFOAM.
Definition:
atmBoundaryLayer.C:33
Foam::expressions::patchExprFieldBase::fracExpr_
expressions::exprString fracExpr_
Definition:
patchExprFieldBase.H:104
Foam::expressions::patchExprFieldBase::write
void write(Ostream &os) const
Write.
Definition:
patchExprFieldBase.C:144
Foam::expressions::exprString
Definition:
exprString.H:60
dictionary.H
Foam::Ostream
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition:
Ostream.H:56
Foam::expressions::patchExprFieldBase::valueExpr_
expressions::exprString valueExpr_
Definition:
patchExprFieldBase.H:102
Foam::expressions::patchExprFieldBase::evalOnConstruct_
bool evalOnConstruct_
Slightly dodgy concept here.
Definition:
patchExprFieldBase.H:99
src
finiteVolume
expressions
fields
base
patchExprFieldBase.H
Generated by
1.8.17
OPENFOAM® is a registered
trademark
of OpenCFD Ltd.