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

Cannot find patchField entry for AMI

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 16, 2023, 03:54
Default [SOLVED] Cannot find patchField entry for AMI
  #1
New Member
 
Join Date: Apr 2022
Posts: 7
Rep Power: 4
gart04 is on a distinguished road
*** OpenFoam 9 / Ubuntu ***

Hi

I'm having troubles with an AMI simulation (a simple FAN in a fluid). I run a parallel PimpleFoam and i obtain this message :
Code:
--> FOAM FATAL IO ERROR: 
Cannot find patchField entry for AMI

file: /home/nico/OpenFOAM/nico-9/run/CE-MOD1-AMI-V1/0/T/boundaryField from line 25 to line 55.

    From function void Foam::GeometricField<Type, PatchField, GeoMesh>::Boundary::readField(const Foam::DimensionedField<TypeR, GeoMesh>&, const Foam::dictionary&) [with Type = double; PatchField = Foam::fvPatchField; GeoMesh = Foam::volMesh]
    in file /home/ubuntu/OpenFOAM/OpenFOAM-9/src/OpenFOAM/lnInclude/GeometricBoundaryField.C at line 184.

FOAM exiting
My Mesh is Ok (I use SNAPPY and i check the quality with checkMesh and the different patch on Paraview), and my AMI patches are in the T file as below :

Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  9                                     |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    object      T;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 0 0 1 0 0 0];

internalField   uniform 275;

boundaryField
{
    inlet
    {
        type        fixedValue;
        value       uniform 275;
    }

    outlet
    {
        type        zeroGradient;
    }

    walls
    {
        type        fixedValue;
        value       uniform 275;
    }

    fan
    {
        type        fixedValue;
        value       uniform 500;
    }

    AMI1
    {
        type            cyclicAMI;
        value           uniform 275;
    }

    AMI2
    {
        type            cyclicAMI;
        value           uniform 275;
    }
}

// ************************************************************************* //
I use Baffles to create AM1 and AMI2 :
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  9                                     |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      createBafflesDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

internalFacesOnly true;

baffles
{
    baffleFaces
    {
        type        faceZone;
        zoneName    rotatingZone;

        patches
        {
            master
            {
                name            AMI1;
                type            cyclicAMI;
                matchTolerance  0.0001;
                neighbourPatch  AMI2;
                transform       none;
            }
            slave
            {
                $master;
                name            AMI2;
                neighbourPatch  AMI1;
            }
        }
    }
}

// ************************************************************************* //
I really don't understand if someone can help, after the patchfield entry error for AMI i have the following error for the 16 processors, but i assume it's the result of the first error :

Code:
[0] --> FOAM FATAL ERROR: 
[0] cannot find file "/home/nico/OpenFOAM/nico-9/run/CE-MOD1-AMI-V1/processor0/0/p"
[0] 
[0]     From function virtual Foam::autoPtr<Foam::ISstream> Foam::fileOperations::uncollatedFileOperation::readStream(Foam::regIOobject&, const Foam::fileName&, const Foam::word&, bool) const
[0]     in file global/fileOperations/uncollatedFileOperation/uncollatedFileOperation.C at line [14] 
[14] 
[14] --> FOAM FATAL ERROR: 
[14] cannot find file "/home/nico/OpenFOAM/nico-9/run/CE-MOD1-AMI-V1/processor14/0/p"
[14] 
[14]     From function virtual Foam::autoPtr<Foam::ISstream> Foam::fileOperations::uncollatedFileOperation::readStream(Foam::regIOobject&, const Foam::fileName&, const Foam::word&, bool) const
[14]     in file global/fileOperations/uncollatedFileOperation/uncollatedFileOperation.C at line 539.
[14] 
FOAM parallel run exiting
Thanks a lot

Last edited by gart04; March 17, 2023 at 02:37.
gart04 is offline   Reply With Quote

Old   March 17, 2023, 02:35
Default
  #2
New Member
 
Join Date: Apr 2022
Posts: 7
Rep Power: 4
gart04 is on a distinguished road
Hi


I found my pb if it can help somebody :


I see in the mesh log that my baffleFaces did not convert faces into boundary faces in patches.


In the snappyhexmesh i had a faceType boundary which block the patches creation. I suppress the line and the solver run, with another problems ...


Code:
refinementSurfaces
     {
         AMI
         {
             level (2 2); // Note: better: levels 3 3
             faceType boundary;
             cellZone rotatingZone;
             faceZone rotatingZone;
             cellZoneInside inside;
         }
         fan{ level (2 4);} // Note: better: levels 3 3
         outlet{ level (0 0);}
         inlet{ level (0 0);}
         walls{ level (1 1);}
     }
Best regards,
gart04 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
[snappyHexMesh] Cannot find patchField entry for *** mbox97 OpenFOAM Meshing & Mesh Conversion 2 November 25, 2021 10:06
Cannot find patchField entry for InletWall range_rover OpenFOAM Running, Solving & CFD 5 November 18, 2020 21:21
Parallel snappyHexMesh problem: Cannot find patchField entry for procBoundary2to7 hconel OpenFOAM Pre-Processing 0 October 5, 2018 17:22
OpenFOAM 1.6-ext git installation on Ubuntu 11.10 x64 Attesz OpenFOAM Installation 45 January 13, 2012 12:38
Problem Building OF on Centos cluster (no admin rights) CKH OpenFOAM Installation 5 November 13, 2011 06:32


All times are GMT -4. The time now is 21:58.