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
OpenFOAM
include
createNamedPolyMesh.H
Go to the documentation of this file.
1
//
2
// createNamedPolyMesh.H
3
// ~~~~~~~~~~~~~~~~~~~~~
4
5
Foam::word
regionName
;
6
7
if
(
args
.
optionReadIfPresent
(
"region"
, regionName))
8
{
9
Foam::Info
10
<<
"Create polyMesh "
<< regionName <<
" for time = "
11
<< runTime.timeName() <<
Foam::nl
<<
Foam::endl
;
12
}
13
else
14
{
15
regionName =
Foam::polyMesh::defaultRegion
;
16
Foam::Info
17
<<
"Create polyMesh for time = "
18
<< runTime.timeName() <<
Foam::nl
<<
Foam::endl
;
19
}
20
21
Foam::polyMesh
mesh
22
(
23
Foam::IOobject
24
(
25
regionName,
26
runTime.timeName(),
27
runTime,
28
Foam::IOobject::MUST_READ
29
)
30
);
31
32
// ************************ vim: set sw=4 sts=4 et: ************************ //