47 const word& mapMethod,
49 const bool noLagrangian
52 Info<<
nl <<
"Consistently creating and mapping fields for time "
57 Info<<
nl <<
"Mapping geometric fields" <<
endl;
74 const word& mapMethod,
76 const bool noLagrangian
79 Info<<
nl <<
"Creating and mapping fields for time "
84 Info<<
nl <<
"Mapping geometric fields" <<
endl;
97 int main(
int argc,
char *argv[])
101 "map volume fields from one mesh to another"
109 "scalar|'latestTime'",
110 "specify the source time"
116 "specify the source region"
122 "specify the target region"
127 "source and target geometry and boundary conditions identical"
133 "specify the mapping method"
139 "specify a list of fields to be mapped. Eg, '(U T p)' - "
140 "regular expressions not currently supported"
145 "skip mapping lagrangian positions and fields"
157 Info<<
"Source: " << rootDirSource <<
" " << caseDirSource <<
endl;
161 sourceRegion =
args[
"sourceRegion"];
162 Info<<
"Source region: " << sourceRegion <<
endl;
165 Info<<
"Target: " << rootDirTarget <<
" " << caseDirTarget <<
endl;
169 targetRegion =
args[
"targetRegion"];
170 Info<<
"Target region: " << targetRegion <<
endl;
180 cellsToCellss::intersection::typeName
183 Info<<
"Mapping method: " << mapMethod <<
endl;
193 #include "createTimes.H"
213 mapFieldsDict.lookup(
"patchMap") >> patchMap;
214 mapFieldsDict.lookup(
"cuttingPatches") >> cuttingPatches;
217 #include "setTimeIndex.H"
243 Info<<
"Source mesh size: "
245 <<
", Target mesh size: "
A HashTable with keys but without contents.
An STL-conforming hash table.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
static const word & system()
Return system name.
static void addOption(const word &opt, const string ¶m="", const string &usage="")
Add to an option to validOptions with usage information.
static void addNote(const string &)
Add extra notes for the usage information.
const fileName & globalCaseName() const
Return case name.
static void addBoolOption(const word &opt, const string &usage="")
Add to a bool option to validOptions with usage information.
bool optionFound(const word &opt) const
Return true if the named option is found.
static SLList< string > validArgs
A list of valid (mandatory) arguments.
const fileName & rootPath() const
Return root path.
IStringStream optionLookup(const word &opt) const
Return an IStringStream from the named option.
T optionLookupOrDefault(const word &opt, const T &deflt) const
Read a value from the named option if present.
const word & name() const
Return const reference to name.
A class for handling file names.
word name() const
Return file name (part beyond last /)
fileName path() const
Return directory path name (part before last /)
Mesh data needed to do the Finite Volume discretisation.
const Time & time() const
Return the top-level database.
static word defaultRegion
Return the default region name.
A class for handling words, derived from string.
int main(int argc, char *argv[])
Time runTimeSource(Time::controlDictName, argsSrc)
Time runTimeTarget(Time::controlDictName, args)
Ostream & endl(Ostream &os)
Add newline and flush stream.
void mapClouds(const fvMeshToFvMesh &interp)
void mapConsistentMesh(const fvMesh &meshSource, const fvMesh &meshTarget, const meshToMesh0::order &mapOrder)
void mapGeometricFields(const fvMeshToFvMesh &interp, const wordReList &cuttingPatches, const HashSet< word > &selectedFields, const bool noLagrangian)
T returnReduce(const T &Value, const BinaryOp &bop, const int tag=Pstream::msgType(), const label comm=UPstream::worldComm)
List< wordRe > wordReList
A List of wordRe (word or regular expression)
Foam::argList args(argc, argv)