createNamedPolyMesh.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 OpenFOAM Foundation
9  Copyright (C) 2021 OpenCFD Ltd.
10 -------------------------------------------------------------------------------
11 License
12  This file is part of OpenFOAM, distributed under GPL-3.0-or-later.
13 
14 Description
15  Create a polyMesh for a specified region, or the defaultRegion
16 
17 Required Variables
18  - runTime [Time]
19 
20 Provided Variables
21  - regionName [word]
22  - mesh [polyMesh]
23 
24 \*---------------------------------------------------------------------------*/
25 
27 
28 {
29  Foam::Info << "Create polyMesh";
30  if (args.readIfPresent("region", regionName))
31  {
32  Foam::Info << ' ' << regionName;
33  }
34  Foam::Info << " for time = " << runTime.timeName() << Foam::nl;
35 }
36 
37 
39 (
41  (
42  regionName,
43  runTime.timeName(),
44  runTime,
46  )
47 );
48 
50 
51 
52 // ************************************************************************* //
Foam::word regionName(Foam::polyMesh::defaultRegion)
constexpr char nl
The newline &#39;\n&#39; character (0x0a)
Definition: Ostream.H:49
engineTime & runTime
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:487
dynamicFvMesh & mesh
A class for handling words, derived from Foam::string.
Definition: word.H:63
static word defaultRegion
Return the default region name.
Definition: polyMesh.H:397
messageStream Info
Information stream (stdout output on master, null elsewhere)
Mesh consisting of general polyhedral cells.
Definition: polyMesh.H:73
bool readIfPresent(const word &optName, T &val) const
Read a value from the named option if present.
Definition: argListI.H:316
Foam::argList args(argc, argv)
Defines the attributes of an object for which implicit objectRegistry management is supported...
Definition: IOobject.H:171