addAllRegionOptions.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-2025 OpenCFD Ltd.
9 -------------------------------------------------------------------------------
10 License
11  This file is part of OpenFOAM, distributed under GPL-3.0-or-later.
12 
13 Description
14  Add multi-region command-line options:
15  -allRegions | -all-regions
16  -regions
17  -region
18 
19 Required Classes
20  - Foam::argList
21 
22 See Also
23  getAllRegionOptions.H
24 
25 \*---------------------------------------------------------------------------*/
26 
27 {
29  (
30  "allRegions",
31  "Use all regions in regionProperties"
32  );
33  Foam::argList::addOptionCompat("allRegions", { "all-regions", 0 });
34 
36  (
37  "regions",
38  "wordRes",
39  "Use specified mesh region. Eg, -regions gas\n"
40  "Or from regionProperties. Eg, -regions '(gas \"solid.*\")'"
41  );
42 
44  (
45  "region",
46  "name",
47  "Use specified mesh region. Eg, -region gas"
48  );
49 }
50 
51 
52 // ************************************************************************* //
static void addBoolOption(const word &optName, const string &usage="", bool advanced=false)
Add a bool option to validOptions with usage information.
Definition: argList.C:389
static void addOptionCompat(const word &optName, std::pair< const char *, int > compat)
Specify an alias for the option name.
Definition: argList.C:433
static void addOption(const word &optName, const string &param="", const string &usage="", bool advanced=false)
Add an option to validOptions with usage information.
Definition: argList.C:400