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

Error on decomposePar with cyclicAMI

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 11, 2020, 02:55
Default Error on decomposePar with cyclicAMI
  #1
New Member
 
Kosuke Seto
Join Date: Jan 2020
Posts: 10
Rep Power: 6
Kosuke Seto is on a distinguished road
Hi,

I'm simulating a incompressible flow around blades.
I wanna do it parallel, so I use decomposePar command but it doesn't work well.
Here's a part of log file of decomposePar.

Code:
    Processor 55
    Number of cells = 44285
    Number of faces shared with processor 50 = 1401
    Number of faces shared with processor 51 = 685
    Number of faces shared with processor 52 = 294
    Number of faces shared with processor 53 = 1511
    Number of faces shared with processor 54 = 2569
    Number of processor patches = 5
    Number of processor faces = 6460
    Number of boundary faces = 2488

Number of processor faces = 184549
Max number of cells = 45166 (0.998123% above average 44719.6)
Max number of processor patches = 14 (71.179% above average 8.17857)
Max number of faces between processors = 9366 (42.1021% above average 6591.04)

Time = 0
AMI: Creating addressing and weights between 6612 source faces and 6612 target faces
--> FOAM Warning : 
    From void Foam::advancingFrontAMI::checkPatches() const
    in file AMIInterpolation/AMIInterpolation/advancingFrontAMI/advancingFrontAMI.C at line 71
    Source and target patch bounding boxes are not similar
    source box span     : (0.100001 0.0736783 0)
    target box span     : (0.100001 0.0736783 0)
    source box          : (-0.0632358 0.00793961 3.6765e-06) (0.036765 0.0816179 3.6765e-06)
    target box          : (-0.0632358 0.00793961 -0.162136) (0.036765 0.0816179 -0.162136)
    inflated target box : (-0.0694464 0.001729 -0.168347) (0.0429756 0.0878285 -0.155925)
AMI: Patch source sum(weights) min:0.999716 max:1 average:0.999999
AMI: Patch target sum(weights) min:0.999998 max:1 average:1
AMI: Creating addressing and weights between 25088 source faces and 25088 target faces
--> FOAM Warning : 
    From void Foam::advancingFrontAMI::checkPatches() const
    in file AMIInterpolation/AMIInterpolation/advancingFrontAMI/advancingFrontAMI.C at line 71
    Source and target patch bounding boxes are not similar
    source box span     : (0.0610814 0.0425658 9.69278e-06)
    target box span     : (0.0610814 0.0425658 9.64055e-06)
    source box          : (-0.0279929 -0.00727137 -5.85086e-06) (0.0330885 0.0352944 3.84193e-06)
    target box          : (-0.0279929 -0.00727137 -0.162145) (0.0330885 0.0352944 -0.162136)
    inflated target box : (-0.0317154 -0.0109939 -0.165868) (0.036811 0.0390169 -0.158413)


--> FOAM FATAL ERROR: 
Unable to set target face for source face 25087
I don't understand the meanings of these error well.
What is the "box" in this case?
And what can I do to solve this?
Kosuke Seto is offline   Reply With Quote

Old   September 11, 2020, 05:26
Default
  #2
Member
 
Pekka Pasanen
Join Date: Feb 2012
Location: Finland
Posts: 87
Rep Power: 14
zordiack is on a distinguished road
The box is referring to the bounding box of you AMI patches. I'm not sure if the error is related to decomposePar at all, have you tried running your case without decomposing?


Anyway, I would check the AMI patch geometries carefully, you seem to have some mismatch between target and source patches and AMI is pretty picky about geometric matching. If you have non-matching patches, you need to use ACMI instead, but I'm pretty sure this is just a tolerance issue.
zordiack is offline   Reply With Quote

Old   September 11, 2020, 05:42
Default
  #3
New Member
 
Kosuke Seto
Join Date: Jan 2020
Posts: 10
Rep Power: 6
Kosuke Seto is on a distinguished road
Thanks for replying.
I also thought that it may be an independent problem from decomposing, so I tried running without decomposing, and got the same error.

I'll try ACMI from now on, but what does "just a tolerance issue" mean?
Is there some parameter I can modify about AMI?
Kosuke Seto is offline   Reply With Quote

Old   September 11, 2020, 06:42
Default
  #4
Member
 
Pekka Pasanen
Join Date: Feb 2012
Location: Finland
Posts: 87
Rep Power: 14
zordiack is on a distinguished road
What I meant was that try to check if your AMI patches are geometrically in the same place and that you have sufficient mesh density to resolve the AMI patches. The problem is likely caused by too large mismatch between your source and target patches. Check the third coordinate where the difference is. There is a matchTolerance parameter you can set and try to tune for AMI patches, but the first thing to try should be improving patch matching.
zordiack is offline   Reply With Quote

Old   September 11, 2020, 06:53
Default
  #5
New Member
 
Kosuke Seto
Join Date: Jan 2020
Posts: 10
Rep Power: 6
Kosuke Seto is on a distinguished road
I do understand now what you mean. I’ll check my mesh.
Thank you for you politeness.
Kosuke Seto is offline   Reply With Quote

Old   May 26, 2023, 23:38
Default openFOAM v1712: Unable to set source and target faces
  #6
New Member
 
Helloy
Join Date: Jul 2012
Posts: 4
Rep Power: 14
eloy_785 is on a distinguished road
Hello everyone,

I'm trying to simulate a fan by using sliding Mesh and cyclicAMI but I'm having the next error when I wanted to run with pimpleDyMFoam (v1712):

[101] --> FOAM FATAL ERROR:
[101] Unable to set source and target faces
[101]
[101] From function void Foam::faceAreaWeightAMI<SourcePatch, TargetPatch>::setNextFaces(Foam::label&, Foam::label&, Foam::label&, const boolList&, Foam::labelList&, const Foam:ynamicList<int>&, bool) 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> >&>; Foam::label = int; Foam::boolList = Foam::List<bool>; Foam::labelList = Foam::List<int>]
[101] in file lnInclude/faceAreaWeightAMI.C at line 287.
[101]
FOAM parallel run aborting

and this is my createPatchDict:
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location system;
object createPatchDict;
}
pointSync false;
patches
(
{
name cm_fan_region_00_940w_brose_interface_ami;
patchInfo
{
type cyclicAMI;
matchTolerance 1.0E-4;
neighbourPatch cm_fan_region_00_940w_brose_interface_slave_ami;
transform noOrdering;
}
constructFrom patches;
patches (cm_fan_region_00_940w_brose_interface);
}
{
name cm_fan_region_00_940w_brose_interface_slave_ami;
patchInfo
{
type cyclicAMI;
matchTolerance 1.0E-4;
neighbourPatch cm_fan_region_00_940w_brose_interface_ami;
transform noOrdering;
}
constructFrom patches;
patches (cm_fan_region_00_940w_brose_interface_slave);
}
);

the problem involves a rotational movement.

If someone has an idea or suggestion, I will appreciate.
eloy_785 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
Using createPatch and cyclicAMI in FOAM Extend to create periodicbox manuc OpenFOAM Running, Solving & CFD 1 April 12, 2022 12:36
cyclicAMI - kOmegaSST - divergence issue cyln OpenFOAM Running, Solving & CFD 1 October 5, 2018 11:06
time step continuity problem in VAWT simulation lpz_michele OpenFOAM Running, Solving & CFD 5 February 22, 2018 20:50
cyclic / cyclicAMI boundary conditon - ICEM Mesh cyln OpenFOAM Running, Solving & CFD 0 November 7, 2017 16:26
Boundary Layer strange result fernexda OpenFOAM Running, Solving & CFD 14 January 15, 2015 08:21


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