Difference between revisions of "MapFields"

From OpenFOAMWiki
 
Line 3: Line 3:
 
     mapFields <source root> <source case> <target root> <target case> [-consistent] [-parallelSource] [-parallelTarget]
 
     mapFields <source root> <source case> <target root> <target case> [-consistent] [-parallelSource] [-parallelTarget]
  
If the sorce and/or the destination cases are parallel, the '''-parallelSource''' and '''-parallelTarget''' has to be used accordingly.
+
The available options are the following:
 +
 
 +
* '''-consistent''': it maps a field consistently. The source and the destionation have the same geometry. If this option is not specified, it is necessary to define a dictionary named '''mapFieldsDict''' in the '''system''' directory of the case.
 +
* '''-parallelSource''': it specifies the source case is decomposed for parallel calculation.
 +
* '''-parallelTarget''': it specified the destination case is decomposed for parallel calculation.
 +
 
 +
The syntax of the mapFieldsDict is the following:
 +
 
 +
<cpp>
 +
patchMap
 +
(
 +
  <coincident patches in the two cases>
 +
);
 +
 
 +
cuttingPatches
 +
(
 +
  <target patches who has to be mapped from the original internal field now cut by patches>
 +
);
 +
</cpp>

Revision as of 02:53, 14 August 2007

It maps fields from a case to another. The syntax is:

   mapFields <source root> <source case> <target root> <target case> [-consistent] [-parallelSource] [-parallelTarget]

The available options are the following:

  • -consistent: it maps a field consistently. The source and the destionation have the same geometry. If this option is not specified, it is necessary to define a dictionary named mapFieldsDict in the system directory of the case.
  • -parallelSource: it specifies the source case is decomposed for parallel calculation.
  • -parallelTarget: it specified the destination case is decomposed for parallel calculation.

The syntax of the mapFieldsDict is the following:

 
patchMap
(
   <coincident patches in the two cases>
);
 
cuttingPatches
(
   <target patches who has to be mapped from the original internal field now cut by patches>
);