Loading...
Searching...
No Matches
createNamedDynamicFvMesh.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) 2012 OpenFOAM Foundation
9 Copyright (C) 2022-2023 OpenCFD Ltd.
10-------------------------------------------------------------------------------
11License
12 This file is part of OpenFOAM, distributed under GPL-3.0-or-later.
13
14Description
15 Create a dynamicFvMesh for a specified region, or the defaultRegion
16
17Required Classes
18 - Foam::dynamicFvMesh
19
20Required Variables
21 - args [argList]
22 - runTime [Time]
23
24Provided Variables
25 - regionName [word]
26 - mesh [dynamicFvMesh]
27 - meshPtr [autoPtr<dynamicFvMesh>]
29\*---------------------------------------------------------------------------*/
30
32
33// "getRegionOption.H"
35(
36 args.getOrDefault<word>("region", Foam::polyMesh::defaultRegion)
37);
39{
40 Foam::Info << "Create dynamic mesh";
42 {
43 Foam::Info << ' ' << regionName;
44 }
45 Foam::Info << " for time = " << runTime.timeName() << Foam::nl;
46
48 (
50 (
52 runTime.timeName(),
53 runTime,
55 )
56 );
57}
58
60
62
63
64// ************************************************************************* //
@ MUST_READ
Reading required.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Definition IOobject.H:191
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition autoPtr.H:65
Abstract base class for geometry and/or topology changing fvMesh.
static autoPtr< dynamicFvMesh > New(const IOobject &io)
Select, construct and return the dynamicFvMesh.
static const word & regionName(const word &region)
The mesh region name or word::null if polyMesh::defaultRegion.
Definition polyMesh.C:796
static word defaultRegion
Return the default region name.
Definition polyMesh.H:406
A class for handling words, derived from Foam::string.
Definition word.H:66
dynamicFvMesh & mesh
engineTime & runTime
Foam::autoPtr< Foam::dynamicFvMesh > meshPtr
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
Foam::argList args(argc, argv)