OpenFOAM
5.0
The OpenFOAM Foundation
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
w
z
+
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
Enumerator
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
v
w
+
Enumerations
a
b
c
d
e
f
g
i
k
l
m
o
p
r
s
t
v
w
+
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Related Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
+
Files
File List
+
File Members
+
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
+
Typedefs
b
c
d
f
g
k
l
m
p
r
s
t
v
w
+
Macros
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
src
OpenFOAM
include
setSystemMeshDictionaryIO.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.system(),
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
}
Foam::argList::optionFound
bool optionFound(const word &opt) const
Return true if the named option is found.
Definition:
argListI.H:108
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:536
dictIO
IOobject dictIO(dictName, runTime.system(), mesh, IOobject::MUST_READ_IF_MODIFIED, IOobject::NO_WRITE)
dictName
const word dictName("particleTrackDict")
dictPath
fileName dictPath
Definition:
setSystemMeshDictionaryIO.H:1
args
Foam::argList args(argc, argv)
Generated by
1.8.13