CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

FOAM FATAL ERROR: Unable to find initial target face

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 27, 2020, 12:06
Default FOAM FATAL ERROR: Unable to find initial target face
  #1
Member
 
ESI
Join Date: Sep 2017
Posts: 49
Rep Power: 9
ht2017 is on a distinguished road
Dear Foamer,

Now, I am facing the issue with OpenFOAM extent 4.0

Code:
/*--------------------------------*- C++ -*----------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  8
     \\/     M anipulation  |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      createPatchDict;
}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

// This application/dictionary controls:
// - optional: create new patches from boundary faces (either given as
//   a set of patches or as a faceSet)
// - always: order faces on coupled patches such that they are opposite. This
//   is done for all coupled faces, not just for any patches created.
// - optional: synchronise points on coupled patches.
// - always: remove zero-sized (non-coupled) patches (that were not added)

// 1. Create cyclic:
// - specify where the faces should come from
// - specify the type of cyclic. If a rotational specify the rotationAxis
//   and centre to make matching easier
// - always create both halves in one invocation with correct 'neighbourPatch'
//   setting.
// - optionally pointSync true to guarantee points to line up.

// 2. Correct incorrect cyclic:
// This will usually fail upon loading:
//  "face 0 area does not match neighbour 2 by 0.0100005%"
//  " -- possible face ordering problem."
// - in polyMesh/boundary file:
//      - loosen matchTolerance of all cyclics to get case to load
//      - or change patch type from 'cyclic' to 'patch'
//        and regenerate cyclic as above

matchTolerance 0.001;

// Do a synchronisation of coupled points after creation of any patches.
// Note: this does not work with points that are on multiple coupled patches
//       with transformations (i.e. cyclics).
pointSync true;

// Optional: Write cyclic matches into .obj format; defaults to false.
//writeCyclicMatch  false;

// Patches to create.
patches

(
    {
        // Name of new patch
        name inlet;

        // Dictionary to construct new patch from
       patchInfo
       
        {
            type cyclicAMI;
            transform   translational;
            neighbourPatch outlet;
            separation     (-8.743006318923108e-15 0.8999999999999797 -1.315614284180811e-14);
           
        }

        // How to construct: either from 'patches' or 'set'
        constructFrom patches;

        // If constructFrom = patches : names of patches. Wildcards allowed.
       patches (Inlet);

        // If constructFrom = set : name of faceSet
        set f0;
   }
   {
        // Name of new patch
       name outlet;

        // Dictionary to construct new patch from
      patchInfo
       
       {
           type cyclicAMI;
           transform  translational;
           neighbourPatch inlet;
           separation      (8.743006318923108e-15 -0.8999999999999797 1.315614284180811e-14);
            
       }

        // How to construct: either from 'patches' or 'set'
       constructFrom patches;

        // If constructFrom = patches : names of patches. Wildcards allowed.
      patches (Outlet);

        // If constructFrom = set : name of faceSet
       set f0;
    }
    
    { 
       name left;
       patchInfo
       
      {
      	type cyclicAMI;
      	transform  translational;
      	neighbourPatch right;
      	separation      (4.024558464266192e-15 -8.43769498715119e-15 0.4499999999999016);
      }
       	
      constructFrom    patches;
        
       patches    (Left);
        
      set f0;
    
    }
     
    { 
      name right;
       
      patchInfo
       
       {
       type cyclicAMI;
       transform  translational;
       neighbourPatch left;
       separation  (-4.024558464266192e-15 8.43769498715119e-15 -0.4499999999999016);
       }
        	
     constructFrom    patches;
        
      patches    (Right);
        
      set f0;
    
  }
        
        
   
        	
        	
        	
        	
        	
        	
        	
        	
);

// ************************************************************************* //
after I run the command "createPatch -overwrite"

Code:
/*--------------------------------*- C++ -*----------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  8
     \\/     M anipulation  |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       polyBoundaryMesh;
    location    "constant/polyMesh";
    object      boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

7
(
    Top
    {
        type            wall;
        inGroups        List<word> 1(wall);
        nFaces          16384;
        startFace       6569344;
    }
    Ridges
    {
        type            wall;
        inGroups        List<word> 1(wall);
        nFaces          8192;
        startFace       6585728;
    }
    Wall_below
    {
        type            wall;
        inGroups        List<word> 1(wall);
        nFaces          36864;
        startFace       6593920;
    }
    inlet
    {
        type            cyclicAMI;
        inGroups        List<word> 1(cyclicAMI);
        nFaces          17280;
        startFace       6630784;
        matchTolerance  0.0001;
        neighbourPatch  outlet;
        transformType   translational;
        separation      (-8.743006318923108e-18 0.0008999999999999797 -1.315614284180811e-17);
        method          faceAreaWeightAMI;
    }
    outlet
    {
        type            cyclicAMI;
        inGroups        List<word> 1(cyclicAMI);
        nFaces          17280;
        startFace       6648064;
        matchTolerance  0.0001;
        neighbourPatch  inlet;
        transformType   translational;
        separation      (8.743006318923108e-18 -0.0008999999999999797 1.315614284180811e-17);
        method          faceAreaWeightAMI;
    }
    left
    {
        type            cyclicAMI;
        inGroups        List<word> 1(cyclicAMI);
        nFaces          18176;
        startFace       6665344;
        matchTolerance  0.0001;
        neighbourPatch  right;
        transformType   translational;
        separation      (4.024558464266192e-18 -8.43769498715119e-18 0.0004499999999999016);
        method          faceAreaWeightAMI;
    }
    right
    {
        type            cyclicAMI;
        inGroups        List<word> 1(cyclicAMI);
        nFaces          18176;
        startFace       6683520;
        matchTolerance  0.0001;
        neighbourPatch  left;
        transformType   translational;
        separation      (-4.024558464266192e-18 8.43769498715119e-18 -0.0004499999999999016);
        method          faceAreaWeightAMI;
    }
)

// ************************************************************************* //


I am trying to run on the Openfoam v8.0 that it is well working. But when I run it on the Openfoam extent 4.0 then I get the error as the above code.

So How to fix it for this issue in Openfoam extent 4.0 ?

Thank you for your help!
ht2017 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Maximum number of iterations exceeded chtmultiregionsimpleFoam Moncef OpenFOAM Running, Solving & CFD 28 July 13, 2020 15:26
Segmentation fault when using reactingFOAM for Fluids Tommy Floessner OpenFOAM Running, Solving & CFD 4 April 22, 2018 13:30
Compressor Simulation using rhoPimpleDyMFoam Jetfire OpenFOAM Running, Solving & CFD 107 December 9, 2014 14:38
[blockMesh] error message with modeling a cube with a hold at the center hsingtzu OpenFOAM Meshing & Mesh Conversion 2 March 14, 2012 10:56
Error while running rhoPisoFoam.. nileshjrane OpenFOAM Running, Solving & CFD 8 August 26, 2010 13:50


All times are GMT -4. The time now is 18:52.