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 // ************************************************************************* //
runTime
engineTime & runTime
Definition: createEngineTime.H:13
Foam::IOobject
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Definition: IOobject.H:165
Foam::polyMesh::defaultRegion
static word defaultRegion
Definition: polyMesh.H:314
Foam::endl
Ostream & endl(Ostream &os)
Definition: Ostream.H:381
regionName
Foam::word regionName
Definition: createNamedDynamicFvMesh.H:1
Foam::Info
messageStream Info
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:6
Foam::fvMesh
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:81
Foam::nl
constexpr char nl
Definition: Ostream.H:424
Foam::IOobject::MUST_READ
@ MUST_READ
Definition: IOobject.H:181