Go to the documentation of this file.
56 int main(
int argc,
char *argv[])
60 "Add patches (regions) to a surface with a user-selectable method"
94 for (
const entry& dEntry : surfacesDict)
98 const word& surfName = dEntry.keyword();
105 bool changed =
false;
108 if (surfDict.
found(
"type"))
127 if (surfDict.
found(
"regions"))
131 for (
const entry&
e : regionsDict)
149 if (modifier().modify(regionIDs, surf))
162 Info<<
"Writing repatched surface " <<
name <<
" to "
A keyword and a list of tokens is an 'entry'.
word lessExt() const
Return word without extension (part before last .)
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
Defines the attributes of an object for which implicit objectRegistry management is supported,...
const word & name() const
Return name.
A class for handling words, derived from Foam::string.
A class for handling file names.
bool found(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Search for an entry (const access) with the given keyword.
static void addNote(const string ¬e)
Add extra notes for the usage information.
const word dictName("blockMeshDict")
Ostream & endl(Ostream &os)
Add newline and flush stream.
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
word ext() const
Return file name extension (part after last .)
A class for handling keywords in dictionaries.
virtual bool write(const bool valid=true) const
Write using setting from DB.
virtual const wordList & regions() const =0
Names of regions.
messageStream Info
Information stream (uses stdout - output is on the master only)
word name(const complex &c)
Return string representation of complex.
Base class of (analytical or triangulated) surface. Encapsulates all the search routines....
const dictionary & subDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
labelList findStrings(const regExp &matcher, const UList< StringType > &input, const bool invert=false)
Return list indices for strings matching the regular expression.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
virtual void rename(const word &newName)
Rename.
Container for searchableSurfaces. The collection is specified as a dictionary. For example,...
static word meshSubDir
Return the mesh sub-directory name (usually "triSurface")
const dimensionedScalar e
Elementary charge.
labelList identity(const label len, label start=0)
Create identity map of the given length with (map[i] == i)
static autoPtr< searchableSurfaceModifier > New(const word &type, const searchableSurfaces &, const dictionary &dict)
Return a reference to the selected searchableSurfaceModifier.
static void noParallel()
Remove the parallel options.
const word & constant() const
Return constant name.
T getOrDefault(const word &keyword, const T &deflt, enum keyType::option matchOpt=keyType::REGEX) const
static void addOption(const word &optName, const string ¶m="", const string &usage="", bool advanced=false)
Add an option to validOptions with usage information.
const IOdictionary & meshDict