Loading...
Searching...
No Matches
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-------------------------------------------------------------------------------
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
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 (
39 runTime.timeName(),
40 runTime,
42 ),
43 false
44);
45
46mesh.init(true); // Initialise all (lower levels and current)
47
49
50
51// ************************************************************************* //
@ MUST_READ
Reading required.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Definition IOobject.H:191
Mesh data needed to do the Finite Volume discretisation.
Definition fvMesh.H:85
static const word & regionName(const word &region)
The mesh region name or word::null if polyMesh::defaultRegion.
Definition polyMesh.C:796
dynamicFvMesh & mesh
engineTime & runTime
Foam::word regionName(args.getOrDefault< word >("region", 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:519
constexpr char nl
The newline '\n' character (0x0a).
Definition Ostream.H:50