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-2023 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 {
26  Foam::Info << "Create mesh";
28  {
29  Foam::Info << ' ' << regionName;
30  }
31  Foam::Info << " for time = " << runTime.timeName() << Foam::nl;
32 }
33 
35 (
37  (
38  regionName,
39  runTime.timeName(),
40  runTime,
42  ),
43  false
44 );
45 
46 mesh.init(true); // Initialise all (lower levels and current)
47 
49 
50 
51 // ************************************************************************* //
const word & regionName() const
The mesh region name or word::null if polyMesh::defaultRegion.
Definition: polyMesh.C:847
constexpr char nl
The newline &#39;\n&#39; character (0x0a)
Definition: Ostream.H:50
engineTime & runTime
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:531
dynamicFvMesh & mesh
Foam::word regionName(args.getOrDefault< word >("region", Foam::polyMesh::defaultRegion))
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:78
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:180