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
postProcessing
functionObjects
utilities
dsmcFields
dsmcFields.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) 2009-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::dsmcFields
26
27
Description
28
Calculate intensive fields:
29
- UMean
30
- translationalT
31
- internalT
32
- overallT
33
from averaged extensive fields from a DSMC calculation.
34
35
SourceFiles
36
dsmcFields.C
37
IOdsmcFields.H
38
39
\*---------------------------------------------------------------------------*/
40
41
#ifndef dsmcFields_H
42
#define dsmcFields_H
43
44
#include <
OpenFOAM/pointFieldFwd.H
>
45
46
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47
48
namespace
Foam
49
{
50
51
// Forward declaration of classes
52
class
objectRegistry;
53
class
dictionary;
54
class
mapPolyMesh;
55
56
/*---------------------------------------------------------------------------*\
57
Class dsmcFields Declaration
58
\*---------------------------------------------------------------------------*/
59
60
class
dsmcFields
61
{
62
// Private data
63
64
//- Name of this set of dsmcFields objects
65
word
name_;
66
67
const
objectRegistry
& obr_;
68
69
//- on/off switch
70
bool
active_;
71
72
// Private Member Functions
73
74
//- Disallow default bitwise copy construct
75
dsmcFields
(
const
dsmcFields
&);
76
77
//- Disallow default bitwise assignment
78
void
operator=(
const
dsmcFields
&);
79
80
81
public
:
82
83
//- Runtime type information
84
TypeName
(
"dsmcFields"
);
85
86
87
// Constructors
88
89
//- Construct for given objectRegistry and dictionary.
90
// Allow the possibility to load fields from files
91
dsmcFields
92
(
93
const
word
&
name
,
94
const
objectRegistry
&,
95
const
dictionary
&,
96
const
bool
loadFromFiles =
false
97
);
98
99
100
// Destructor
101
102
virtual
~dsmcFields
();
103
104
105
// Member Functions
106
107
//- Return name of the set of dsmcFields
108
virtual
const
word
&
name
()
const
109
{
110
return
name_;
111
}
112
113
//- Read the dsmcFields data
114
virtual
void
read
(
const
dictionary
&);
115
116
//- Execute, currently does nothing
117
virtual
void
execute
();
118
119
//- Execute at the final time-loop, currently does nothing
120
virtual
void
end
();
121
122
//- Calculate the dsmcFields and write
123
virtual
void
write
();
124
125
//- Update for changes of mesh
126
virtual
void
updateMesh
(
const
mapPolyMesh
&)
127
{}
128
129
//- Update for changes of mesh
130
virtual
void
movePoints
(
const
pointField
&)
131
{}
132
};
133
134
135
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
136
137
}
// End namespace Foam
138
139
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
140
141
#endif
142
143
// ************************ vim: set sw=4 sts=4 et: ************************ //