Loading...
Searching...
No Matches
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 | www.openfoam.com
6 \\/ M anipulation |
7-------------------------------------------------------------------------------
8 Copyright (C) 2011-2016 OpenFOAM Foundation
9 Copyright (C) 2020-2021 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
27Class
28 Foam::functionObjects::dsmcFields
29
30Group
31 grpLagrangianFunctionObjects
32
33Description
34 This function object calculates and outputs the intensive fields:
35 - UMean
36 - translationalT
37 - internalT
38 - overallT
39 from averaged extensive fields from a DSMC calculation.
40
41Usage
42 Minimal example by using \c system/controlDict.functions:
43 \verbatim
44 dsmcFieldsFO
45 {
46 // Mandatory entries
47 type dsmcFields;
48 libs (lagrangianFunctionObjects);
49
50 // Inherited entries
51 ...
52 }
53 \endverbatim
54
55 where the entries mean:
56 \table
57 Property | Description | Type | Reqd | Deflt
58 type | Type name: dsmcFields | word | yes | -
59 libs | Library name: lagrangianFunctionObjects | word | yes | -
60 \endtable
61
62 The inherited entries are elaborated in:
63 - \link functionObject.H \endlink
64
65SourceFiles
66 dsmcFields.C
67
68\*---------------------------------------------------------------------------*/
69
70#ifndef Foam_functionObjects_dsmcFields_H
71#define Foam_functionObjects_dsmcFields_H
72
74
75// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
76
77namespace Foam
78{
79namespace functionObjects
80{
81
82/*---------------------------------------------------------------------------*\
83 Class dsmcFields Declaration
84\*---------------------------------------------------------------------------*/
85
86class dsmcFields
87:
89{
90
91 // Private Member Functions
92
93 //- No copy construct
94 dsmcFields(const dsmcFields&) = delete;
95
96 //- No copy assignment
97 void operator=(const dsmcFields&) = delete;
98
100public:
101
102 //- Runtime type information
103 TypeName("dsmcFields");
104
105
106 // Constructors
107
108 //- Construct from name, Time and dictionary
109 dsmcFields
110 (
111 const word& name,
112 const Time& runTime,
113 const dictionary& dict
114 );
115
116
117 //- Destructor
118 virtual ~dsmcFields() = default;
119
120
121 // Member Functions
123 //- Read the function-object dictionary
124 virtual bool read(const dictionary&);
125
126 //- Execute the function-object operations, currently does nothing
127 virtual bool execute();
128
129 //- Write the function-object results
130 virtual bool write();
131};
132
133
134// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
135
136} // End namespace functionObjects
137} // End namespace Foam
138
139// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
140
141#endif
142
143// ************************************************************************* //
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Definition Time.H:75
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition dictionary.H:133
This function object calculates and outputs the intensive fields:
Definition dsmcFields.H:102
virtual ~dsmcFields()=default
Destructor.
virtual bool execute()
Execute the function-object operations, currently does nothing.
Definition dsmcFields.C:105
TypeName("dsmcFields")
Runtime type information.
virtual bool write()
Write the function-object results.
Definition dsmcFields.C:111
virtual bool read(const dictionary &)
Read the function-object dictionary.
Definition dsmcFields.C:98
Specialization of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
fvMeshFunctionObject(const fvMeshFunctionObject &)=delete
No copy construct.
A class for handling words, derived from Foam::string.
Definition word.H:66
engineTime & runTime
Function objects are OpenFOAM utilities to ease workflow configurations and enhance workflows.
Namespace for OpenFOAM.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
Definition exprTraits.C:127
dictionary dict
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition typeInfo.H:68