Difference between revisions of "MapFields"

From OpenFOAMWiki
m
 
(2 intermediate revisions by 2 users not shown)
Line 5: Line 5:
 
The available options are the following:
 
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.
+
* '''-consistent''': it maps a field consistently. The source and the destination 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.
 
* '''-parallelSource''': it specifies the source case is decomposed for parallel calculation.
 
* '''-parallelTarget''': it specified the destination case is decomposed for parallel calculation.
 
* '''-parallelTarget''': it specified the destination case is decomposed for parallel calculation.
Line 22: Line 22:
 
);
 
);
 
</cpp>
 
</cpp>
 +
 +
An example of use can be found in the official OpenFOAM user's guide (see page U-31: mapFields ../cavity -consistent)
 +
 +
[[Category:Pre-processing utilities]]

Latest revision as of 12:09, 1 April 2013

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 destination 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>
);

An example of use can be found in the official OpenFOAM user's guide (see page U-31: mapFields ../cavity -consistent)