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