Home
Downloads
Documentation
Installation
User Guide
man-pages
API Documentation
README
Release Notes
Changes
License
Support
SourceForge Project
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
turbulenceModels
incompressible
RAS
derivedFvPatchFields
fixedShearStress
fixedShearStressFvPatchVectorField.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 | Copyright (C) 2010-2010 OpenCFD Ltd.
6
\\/ M anipulation |
7
-------------------------------------------------------------------------------
8
License
9
This file is part of OpenFOAM.
10
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 3 of the License, or (at your
14
option) any later version.
15
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
19
for more details.
20
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
24
25
Class
26
Foam::fixedShearStressFvPatchVectorField
27
28
Description
29
Set a constant shear stress as tau0 = -nuEff dU/dn.
30
31
SourceFiles
32
fixedShearStressFvPatchVectorField.C
33
34
\*---------------------------------------------------------------------------*/
35
36
#ifndef fixedShearStressFvPatchVectorField_H
37
#define fixedShearStressFvPatchVectorField_H
38
39
#include <
finiteVolume/fvPatchFields.H
>
40
#include <
finiteVolume/fixedValueFvPatchFields.H
>
41
42
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43
44
namespace
Foam
45
{
46
namespace
incompressible
47
{
48
/*---------------------------------------------------------------------------*\
49
Class fixedShearStressFvPatchVectorField Declaration
50
\*---------------------------------------------------------------------------*/
51
52
class
fixedShearStressFvPatchVectorField
53
:
54
public
fixedValueFvPatchVectorField
55
{
56
// Private data
57
58
//- Constant shear stress
59
const
vector
tau0_;
60
61
62
public
:
63
64
//- Runtime type information
65
TypeName
(
"fixedShearStress"
);
66
67
68
// Constructors
69
70
//- Construct from patch and internal field
71
fixedShearStressFvPatchVectorField
72
(
73
const
fvPatch
&,
74
const
DimensionedField<vector, volMesh>
&
75
);
76
77
//- Construct from patch, internal field and dictionary
78
fixedShearStressFvPatchVectorField
79
(
80
const
fvPatch
&,
81
const
DimensionedField<vector, volMesh>
&,
82
const
dictionary
&
83
);
84
85
//- Construct by mapping given
86
fixedShearStressFvPatchVectorField
87
(
88
const
fixedShearStressFvPatchVectorField
&,
89
const
fvPatch
&,
90
const
DimensionedField<vector, volMesh>
&,
91
const
fvPatchFieldMapper
&
92
);
93
94
//- Construct as copy
95
fixedShearStressFvPatchVectorField
96
(
97
const
fixedShearStressFvPatchVectorField
&
98
);
99
100
//- Construct and return a clone
101
virtual
tmp<fvPatchVectorField>
clone
()
const
102
{
103
return
tmp<fvPatchVectorField>
104
(
105
new
fixedShearStressFvPatchVectorField
(*
this
)
106
);
107
}
108
109
//- Construct as copy setting internal field reference
110
fixedShearStressFvPatchVectorField
111
(
112
const
fixedShearStressFvPatchVectorField
&,
113
const
DimensionedField<vector, volMesh>
&
114
);
115
116
//- Construct and return a clone setting internal field reference
117
virtual
tmp<fvPatchVectorField>
clone
118
(
119
const
DimensionedField<vector, volMesh>
& iF
120
)
const
121
{
122
return
tmp<fvPatchVectorField>
123
(
124
new
fixedShearStressFvPatchVectorField
(*
this
, iF)
125
);
126
}
127
128
129
// Member functions
130
131
//- Update the coefficients associated with the patch field
132
virtual
void
updateCoeffs();
133
134
//- Write
135
virtual
void
write(
Ostream
&)
const
;
136
};
137
138
139
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
140
141
}
// End namespace incompressible
142
}
// End namespace Foam
143
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
144
145
#endif
146
147
// ************************************************************************* //