createRegionMesh.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) 2021 OpenCFD Ltd.
9 -------------------------------------------------------------------------------
10 License
11  This file is part of OpenFOAM, distributed under GPL-3.0-or-later.
12 
13 Description
14  Create a fvMesh for a specified named region
15 
16 Required Variables
17  - regionName [word]
18  - runTime [Time]
19 
20 Provided Variables
21  - mesh [fvMesh]
22 
23 \*---------------------------------------------------------------------------*/
24 
25 Foam::Info << "Create mesh";
27 {
28  Foam::Info << ' ' << regionName;
29 }
30 Foam::Info << " for time = " << runTime.timeName() << Foam::nl;
31 
33 (
35  (
36  regionName,
37  runTime.timeName(),
38  runTime,
40  ),
41  false
42 );
43 
44 mesh.init(true); // Initialise all (lower levels and current)
45 
47 
48 
49 // ************************************************************************* //
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
Foam::word regionName(Foam::polyMesh::defaultRegion)
dynamicFvMesh & mesh
static word defaultRegion
Return the default region name.
Definition: polyMesh.H:397
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:79
messageStream Info
Information stream (stdout output on master, null elsewhere)
Defines the attributes of an object for which implicit objectRegistry management is supported...
Definition: IOobject.H:171