OpenFOAM
8
The OpenFOAM Foundation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
createFields.H
Go to the documentation of this file.
1
word
dictName
(
"noiseDict"
);
2
if
(
args
.
optionFound
(
"dict"
))
3
{
4
dictName
=
args
[
"dict"
];
5
}
6
7
IOdictionary
dict
8
(
9
IOobject
10
(
11
dictName
,
12
runTime
.system(),
13
runTime
,
14
IOobject::MUST_READ
15
)
16
);
17
18
// reference pressure
19
scalar pRef = dict.lookupOrDefault(
"pRef"
, 0.0);
20
21
// number of samples in sampling window
22
label
N = dict.lookupOrDefault(
"N"
, 65536);
23
24
// number of sampling windows
25
label
nw = dict.lookupOrDefault(
"nw"
, 100);
26
27
// lower frequency of frequency band
28
scalar f1 = dict.lookupOrDefault(
"f1"
, 25.0);
29
30
// upper frequency of frequency band
31
scalar fU = dict.lookupOrDefault(
"fU"
, 10000.0);
32
33
// graph format
34
word graphFormat = dict.lookupOrDefault<word>(
"graphFormat"
,
"raw"
);
Foam::label
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition:
label.H:59
runTime
engineTime & runTime
Definition:
createEngineTime.H:13
Foam::argList::optionFound
bool optionFound(const word &opt) const
Return true if the named option is found.
Definition:
argListI.H:114
dict
IOdictionary dict(IOobject(dictName, runTime.system(), runTime, IOobject::MUST_READ))
dictName
const word dictName("particleTrackDict")
args
Foam::argList args(argc, argv)
applications
utilities
postProcessing
noise
createFields.H
Generated by
1.8.13