52 int main(
int argc,
char *argv[])
56 "List regions from constant/regionProperties" 93 for (label argi = 1; argi <
args.
size(); ++argi)
95 regionTypes[nTypes] =
args[argi];
97 const word& regType = regionTypes[nTypes];
107 InfoErr<<
"No region-type: " << regType <<
nl;
112 regionTypes.
resize(nTypes);
120 for (
const word& regionType : regionTypes)
static void noJobInfo()
Suppress JobInfo, overriding controlDict setting.
static void noFunctionObjects(bool addWithOption=false)
Remove '-noFunctionObjects' option and ignore any occurrences.
static void addNote(const string ¬e)
Add extra notes for the usage information.
static void noMandatoryArgs()
Flag command arguments as being optional (non-mandatory)
messageStream InfoErr
Information stream (stderr output on master, null elsewhere)
void resize(const label len)
Adjust allocated size of list.
bool found(const Key &key) const
Same as contains()
constexpr char nl
The newline '\n' character (0x0a)
static void noParallel()
Remove the parallel options.
Simple class to hold region information for coupled region simulations.
bool insert(const Key &key)
Insert a new entry, not overwriting existing entries.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling words, derived from Foam::string.
regionProperties rp(runTime)
label size() const noexcept
The number of arguments.
static word controlDictName
The default control dictionary name (normally "controlDict")
Foam::word regionName(args.getOrDefault< word >("region", Foam::polyMesh::defaultRegion))
List< Key > sortedToc() const
The table of contents (the keys) in sorted order.
static void addArgument(const string &argName, const string &usage="")
Append a (mandatory) argument to validArgs.
messageStream Info
Information stream (stdout output on master, null elsewhere)
static void noBanner()
Disable emitting the banner information.
Foam::argList args(argc, argv)