MirrorMesh

From OpenFOAMWiki

1 Name

mirrorMesh - Mirrors a mesh around a given plane.

Valid versions: OF Version 21.png

2 Synopsis

mirrorMesh [OPTIONS]

3 Description

Mirrors a mesh around a given plane specified in the dictionary system/mirrorMeshDict. The example shipped with the source code (in $FOAM_UTILITIES/mesh/manipulation/mirrorMesh/mirroMeshDict) is reproduced below.

-parallel

Run the utility in parallel

-roots "(DIR1 [...DIRN])"

Directories through which the data are distributed

-case DIR

Execute the command on the case directory DIR. If not provided, use the current directory

-noFunctionObjects

Skip the execution of the functionObjects

-help

Display the help and exit

This utility is used in the following tutorials:

  • incompressible/pimpleFoam/elipsekkLOmega

4 mirrorMeshDict description

FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      mirrorMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

/* A plane can be defined in different ways
 * 1. planeEquation
 *     planeType    planeEquation;
 *     planeEquationDict
 *     {
 *        a  1.0;
 *        b  2.0;
 *        c  3.0;
 *        d  0.0;
 *     }
 * 
 * 2. embeddedPoints
 *     planeType    planeEquation;
 *     planeEquationDict
 *     {
 *        point1  (0 1 0);
 *        point2  (1 0 0);
 *        point3  (0 0 1);
 *     }
 * 
 * 3. pointAndNormal
 *     planeType           pointAndNormal;
 *     pointAndNormalDict
 *     {
 *        basePoint       (0 0 0); 
 *        normalVector    (0 1 0); 
 *     }
 */

planeType           pointAndNormal;

pointAndNormalDict
{
    basePoint       (0 0 0); 
    normalVector    (0 1 0); 
}

planeTolerance      1e-3;