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
applications
solvers
stressAnalysis
solidDisplacementFoam
tractionDisplacement
tractionDisplacementFvPatchVectorField.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) 1991-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
13
the Free Software Foundation, either version 3 of the License, or
14
(at your 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, see <http://www.gnu.org/licenses/>.
23
24
Class
25
Foam::tractionDisplacementFvPatchVectorField
26
27
Description
28
Fixed traction boundary condition for the standard linear elastic, fixed
29
coefficient displacement equation.
30
31
SourceFiles
32
tractionDisplacementFvPatchVectorField.C
33
34
\*---------------------------------------------------------------------------*/
35
36
#ifndef tractionDisplacementFvPatchVectorField_H
37
#define tractionDisplacementFvPatchVectorField_H
38
39
#include <
finiteVolume/fvPatchFields.H
>
40
#include <
finiteVolume/fixedGradientFvPatchFields.H
>
41
42
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43
44
namespace
Foam
45
{
46
47
/*---------------------------------------------------------------------------*\
48
Class tractionDisplacementFvPatch Declaration
49
\*---------------------------------------------------------------------------*/
50
51
class
tractionDisplacementFvPatchVectorField
52
:
53
public
fixedGradientFvPatchVectorField
54
{
55
56
// Private Data
57
58
vectorField
traction_;
59
scalarField
pressure_;
60
61
62
public
:
63
64
//- Runtime type information
65
TypeName
(
"tractionDisplacement"
);
66
67
68
// Constructors
69
70
//- Construct from patch and internal field
71
tractionDisplacementFvPatchVectorField
72
(
73
const
fvPatch
&,
74
const
DimensionedField<vector, volMesh>
&
75
);
76
77
//- Construct from patch, internal field and dictionary
78
tractionDisplacementFvPatchVectorField
79
(
80
const
fvPatch
&,
81
const
DimensionedField<vector, volMesh>
&,
82
const
dictionary
&
83
);
84
85
//- Construct by mapping given
86
// tractionDisplacementFvPatchVectorField onto a new patch
87
tractionDisplacementFvPatchVectorField
88
(
89
const
tractionDisplacementFvPatchVectorField
&,
90
const
fvPatch
&,
91
const
DimensionedField<vector, volMesh>
&,
92
const
fvPatchFieldMapper
&
93
);
94
95
//- Construct as copy
96
tractionDisplacementFvPatchVectorField
97
(
98
const
tractionDisplacementFvPatchVectorField
&
99
);
100
101
//- Construct and return a clone
102
virtual
tmp<fvPatchVectorField>
clone
()
const
103
{
104
return
tmp<fvPatchVectorField>
105
(
106
new
tractionDisplacementFvPatchVectorField
(*
this
)
107
);
108
}
109
110
//- Construct as copy setting internal field reference
111
tractionDisplacementFvPatchVectorField
112
(
113
const
tractionDisplacementFvPatchVectorField
&,
114
const
DimensionedField<vector, volMesh>
&
115
);
116
117
//- Construct and return a clone setting internal field reference
118
virtual
tmp<fvPatchVectorField>
clone
119
(
120
const
DimensionedField<vector, volMesh>
& iF
121
)
const
122
{
123
return
tmp<fvPatchVectorField>
124
(
125
new
tractionDisplacementFvPatchVectorField
(*
this
, iF)
126
);
127
}
128
129
130
// Member functions
131
132
// Access
133
134
virtual
const
vectorField
&
traction
()
const
135
{
136
return
traction_;
137
}
138
139
virtual
vectorField
&
traction
()
140
{
141
return
traction_;
142
}
143
144
virtual
const
scalarField
&
pressure
()
const
145
{
146
return
pressure_;
147
}
148
149
virtual
scalarField
&
pressure
()
150
{
151
return
pressure_;
152
}
153
154
155
// Mapping functions
156
157
//- Map (and resize as needed) from self given a mapping object
158
virtual
void
autoMap
159
(
160
const
fvPatchFieldMapper
&
161
);
162
163
//- Reverse map the given fvPatchField onto this fvPatchField
164
virtual
void
rmap
165
(
166
const
fvPatchVectorField
&,
167
const
labelList
&
168
);
169
170
171
//- Update the coefficients associated with the patch field
172
virtual
void
updateCoeffs
();
173
174
//- Write
175
virtual
void
write
(
Ostream
&)
const
;
176
};
177
178
179
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
180
181
}
// End namespace Foam
182
183
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
184
185
#endif
186
187
// ************************ vim: set sw=4 sts=4 et: ************************ //