Skip to content
Snippets Groups Projects
decomposeParDict 2.68 KiB
Newer Older
  • Learn to ignore specific revisions
  • /*--------------------------------*- C++ -*----------------------------------*\
    | =========                 |                                                 |
    | \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
    
    |  \\    /   O peration     | Version:  dev                                   |
    
    henry's avatar
    henry committed
    |   \\  /    A nd           | Web:      www.OpenFOAM.com                      |
    
    |    \\/     M anipulation  |                                                 |
    \*---------------------------------------------------------------------------*/
    
    Mark Olesen's avatar
    Mark Olesen committed
        version     2.0;
        format      ascii;
        class       dictionary;
        note        "mesh decomposition control dictionary";
        location    "system";
        object      decomposeParDict;
    
    }
    
    // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
    
    
    mattijs's avatar
    mattijs committed
    //- Keep owner and neighbour on same processor for faces in zones:
    
    Mark Olesen's avatar
    Mark Olesen committed
    // preserveFaceZones (heater solid1 solid3);
    
    Mattijs Janssens's avatar
    Mattijs Janssens committed
    
    
    //- Keep owner and neighbour on same processor for faces in patches:
    //  (makes sense only for cyclic patches)
    
    //preservePatches (cyclic_half0 cyclic_half1);
    
    //- Use the volScalarField named here as a weight for each cell in the
    //  decomposition.  For example, use a particle population field to decompose
    //  for a balanced number of particles in a lagrangian simulation.
    // weightField dsmcRhoNMean;
    
    Mark Olesen's avatar
    Mark Olesen committed
    // method          hierarchical;
    
    mattijs's avatar
    mattijs committed
    // method          simple;
    
    Mark Olesen's avatar
    Mark Olesen committed
    // method          metis;
    // method          manual;
    
    
    multiLevelCoeffs
    {
    
        // Decomposition methods to apply in turn. This is like hierarchical but
        // fully general - every method can be used at every level.
    
    
    mattijs's avatar
    mattijs committed
            numberOfSubdomains  64;
    
            //method simple;
            //simpleCoeffs
            //{
            //    n           (2 1 1);
            //    delta       0.001;
            //}
            method scotch;
    
            method scotch;
        }
    }
    
    // Desired output
    
    
        n           (2 1 1);
    
    Mark Olesen's avatar
    Mark Olesen committed
        delta       0.001;
    
    Mark Olesen's avatar
    Mark Olesen committed
        n           (2 2 1);
        delta       0.001;
        order       xyz;
    
    Mattijs Janssens's avatar
    Mattijs Janssens committed
    metisCoeffs
    {
    
    Mark Olesen's avatar
    Mark Olesen committed
     /*
        processorWeights
        (
            1
            1
            1
            1
        );
      */
    
    Mattijs Janssens's avatar
    Mattijs Janssens committed
    }
    
    
    mattijs's avatar
    mattijs committed
    scotchCoeffs
    
    mattijs's avatar
    mattijs committed
    {
        //processorWeights
        //(
        //    1
        //    1
        //    1
        //    1
        //);
        //writeGraph  true;
        //strategy "b";
    }
    
    mattijs's avatar
    mattijs committed
    
    
    Mark Olesen's avatar
    Mark Olesen committed
        dataFile    "decompositionData";
    
    mattijs's avatar
    mattijs committed
    //// Is the case distributed
    
    //distributed     yes;
    //// Per slave (so nProcs-1 entries) the directory above the case.
    
    // ************************************************************************* //