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

cyclicAMI bc - Error: Unable to set source and target faces

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 28, 2021, 19:46
Red face cyclicAMI bc - Error: Unable to set source and target faces
  #1
New Member
 
Join Date: Aug 2021
Posts: 1
Rep Power: 0
Claire88 is on a distinguished road
Hello everyone,

I have a case where I have generated a mesh in ANSYS and used fluent3DMeshToFoam to convert to OpenFoam format. The mesh was generated from a complex burner geometry with several internal contact regions. The part is not rotating and one of the contact regions has two neighboring patches. I added an additional bc for contact_region_2-contact_region_3-src to account for both neighboring patches.

boundary file:



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

13
(
    wall-fff-3-volume_volume
    {
        type            wall;
        inGroups        1(wall);
        nFaces          68602;
        startFace       7029853;
    }
    wall-fff-3-volume
    {
        type            wall;
        inGroups        1(wall);
        nFaces          903;
        startFace       7098455;
    }
    inlet_outertube
    {
        type            patch;
        nFaces          288;
        startFace       7099358;
    }
    inlet_innertube
    {
        type            patch;
        nFaces          705;
        startFace       7099646;
    }
    inlet_coflow
    {
        type            patch;
        nFaces          892;
        startFace       7100351;
    }
    outlet_chamber
    {
        type            patch;
        nFaces          3741;
        startFace       7101243;
    }
    wall
    {
        type            wall;
        inGroups        1(wall);
        nFaces          992;
        startFace       7104984;
    }
    contact_region_2-contact_region_3-src
    {
        type            cyclicAMI;
        nFaces          65110;
        startFace       7105976;
        neighbourPatch    contact_region_2-contact_region_3-trg-fff-3-volume_volume1;
        transform    noOrdering;
        matchTolerance  0.1;
    }
    contact_region_2-contact_region_3-src2
    {
        type            cyclicAMI;
        nFaces          65110;
        startFace       7105976;
        neighbourPatch    contact_region_2-contact_region_3-trg-fff-3-volume_volume;
        transform    noOrdering;
        matchTolerance  0.1;
    }
    contact_region_2-contact_region_3-trg-fff-3-volume_volume1
    {
        type            cyclicAMI;
        nFaces          1248;
        startFace       7171086;
        neighbourPatch    contact_region_2-contact_region_3-src;
        transform    noOrdering;
        matchTolerance  0.1;
    }
    contact_region_2-contact_region_3-trg-fff-3-volume_volume
    {
        type            cyclicAMI;
        nFaces          400;
        startFace       7172334;
        neighbourPatch    contact_region_2-contact_region_3-src2;
        transform    noOrdering;
        matchTolerance  0.1;
    }
    contact_region_4-src
    {
        type            cyclicAMI;
        nFaces          47772;
        startFace       7172734;
        neighbourPatch    contact_region_4-trg;
        transform    noOrdering;
        matchTolerance  0.1;
    }
    contact_region_4-trg
    {
        type            cyclicAMI;
        nFaces          59160;
        startFace       7220506;
        neighbourPatch    contact_region_4-src;
        transform    noOrdering;
        matchTolerance  0.1;
    }
)

 // ************************************************************************* //
p file:



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

dimensions      [1 -1 -2 0 0 0 0];

internalField   uniform 101325;

boundaryField
{
    outlet_chamber
    {
        type            fixedValue;
    value        uniform 101325;
    }
    inlet_outertube
    {
        type            zeroGradient;
    }
    inlet_innertube
    {
        type            zeroGradient;
    }
    inlet_coflow
    {
        type            zeroGradient;
    }
    wall-fff-3-volume_volume
    {
        type            zeroGradient;
    }
    wall-fff-3-volume
    {
        type            zeroGradient;
    }
    wall
    {
        type            zeroGradient;
    }
    contact_region_2-contact_region_3-src
    {
        type        cyclicAMI;
    }
    contact_region_2-contact_region_3-src2
    {
        type            cyclicAMI;
    }
    contact_region_2-contact_region_3-trg-fff-3-volume_volume1
    {
        type        cyclicAMI;
    }
    contact_region_2-contact_region_3-trg-fff-3-volume_volume
    {
        type        cyclicAMI;
    }
    contact_region_4-src
    {
        type        cyclicAMI;
    }
    contact_region_4-trg
    {
        type        cyclicAMI;
    }
}


 // ************************************************************************* //
When I try to view my mesh in paraFoam i get the following error:


Code:
AMI: Creating addressing and weights between 65110 source faces and 1248 target faces
--> FOAM Warning : 
    From function void Foam::AMIMethod<SourcePatch, TargetPatch>::checkPatches() const [with SourcePatch = Foam::PrimitivePatch<Foam::face, Foam::SubList, const Foam::Field<Foam::Vector<double> >&>; TargetPatch = Foam::PrimitivePatch<Foam::face, Foam::SubList, const Foam::Field<Foam::Vector<double> >&>]
    in file lnInclude/AMIMethod.C at line 57
    Source and target patch bounding boxes are not similar
    source box span     : (0.0348 0.0348 0.301)
    target box span     : (0.0381 0.0380692 0.263007)
    source box          : (-0.0174 -0.0174 0.358533) (0.0174 0.0174 0.659533)
    target box          : (-0.01905 -0.0190346 0.396525) (0.01905 0.0190347 0.659533)
    inflated target box : (-0.0324733 -0.0324578 0.383102) (0.0324733 0.0324579 0.672956)


--> FOAM FATAL ERROR: 
Unable to set source and target faces
I am a beginner in setting up boundary conditions but I understood that the cyclicAMI bc could be used to map neighboring patches that may not be perfectly matched. Is this correct? I looked at some other forum threads with a similar problem which was why I added transform and matchTolerance but I am still seeing the same errors as before.


Am I approaching this problem correctly? Is there something I can do match the source and targets?


Thanks,
Charmaine
Claire88 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
[swak4Foam] swak4foam for OpenFOAM 4.0 mnikku OpenFOAM Community Contributions 80 May 17, 2022 08:06
Using PengRobinsonGas EoS with sprayFoam Jabo OpenFOAM Running, Solving & CFD 35 April 29, 2022 15:35
[foam-extend.org] Problems installing foam-extend-4.0 on openSUSE 42.2 and Ubuntu 16.04 ordinary OpenFOAM Installation 19 September 3, 2019 18:13
polynomial BC srv537 OpenFOAM Pre-Processing 4 December 3, 2016 09:07
[OpenFOAM.org] OF2.3.1 + OS13.2 - Trying to use the dummy Pstream library aylalisa OpenFOAM Installation 23 June 15, 2015 14:49


All times are GMT -4. The time now is 14:34.