OpenFOAM
8
The OpenFOAM Foundation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
setConstantMeshDictionaryIO.H
Go to the documentation of this file.
1
fileName
dictPath
=
""
;
2
if
(
args
.
optionFound
(
"dict"
))
3
{
4
dictPath =
args
[
"dict"
];
5
if
(
isDir
(dictPath))
6
{
7
dictPath = dictPath /
dictName
;
8
}
9
}
10
11
IOobject
dictIO
12
(
13
dictName
,
14
runTime
.constant(),
15
mesh
,
16
IOobject::MUST_READ_IF_MODIFIED,
17
IOobject::NO_WRITE
18
);
19
20
if
(dictPath.size())
21
{
22
dictIO
= IOobject
23
(
24
dictPath,
25
mesh
,
26
IOobject::MUST_READ_IF_MODIFIED,
27
IOobject::NO_WRITE
28
);
29
}
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
mesh
dynamicFvMesh & mesh
Definition:
createDynamicFvMesh.H:18
Foam::isDir
bool isDir(const fileName &, const bool followLink=true)
Does the name exist as a directory in the file system?
Definition:
POSIX.C:539
dictPath
fileName dictPath
Definition:
setConstantMeshDictionaryIO.H:1
dictName
const word dictName("particleTrackDict")
dictIO
IOobject dictIO(dictName, runTime.constant(), mesh, IOobject::MUST_READ_IF_MODIFIED, IOobject::NO_WRITE)
args
Foam::argList args(argc, argv)
src
OpenFOAM
include
setConstantMeshDictionaryIO.H
Generated by
1.8.13