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

OpenFOAM v2306 preservePatches does not preserve cyclicAMI patches.

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By sylvester

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 19, 2023, 10:12
Default OpenFOAM v2306 preservePatches does not preserve cyclicAMI patches.
  #1
Senior Member
 
NotOverUnderated's Avatar
 
ONESP-RO
Join Date: Feb 2021
Location: Somwhere on Planet Earth
Posts: 127
Rep Power: 5
NotOverUnderated is on a distinguished road
Hello,

I want to keep two AMI patches together in a single processor. In the release notes of OpenFOAM v2112 (here: https://www.openfoam.com/news/main-n...v2112/parallel) it is stated that the preservePatches constraints now supports cyclicAMI patches.

However, when I tried it using OpenFOAM v2306, the AMI patches are not kept in a single processor.


Code:
numberOfSubdomains 8;

method          scotch;


constraints
{
    preservePatches
    {
        type            preservePatches;
        patches         (ami0 ami1);
        enabled    true;
    }
}
attached here: https://i.imgur.com/5wMFYqI.png is a screenshot of two processor regions (only two processor regions are shown but the total is 8 processors). The circular region which contains AMI patches is split between processor0 and processor1 which is not the expected behavior.

PS: the circular region containing the rectangle is rotating, while the external region is fixed (as in any typical sliding mesh simulation).



I appreciate your help.
Attached Images
File Type: jpg decomposed_regions.jpg (58.9 KB, 12 views)
__________________
Don't keep making the same mistakes. Try to make new mistakes.
NotOverUnderated is offline   Reply With Quote

Old   December 22, 2023, 05:36
Default
  #2
Member
 
Roland
Join Date: Mar 2009
Location: Netherlands
Posts: 93
Rep Power: 17
sylvester is on a distinguished road
Hi,


The link you provide says: "The preservePatches constraint can be used to keep owner and neighbour cells of coupled patches on the same processor."



This means that, if I understand it correctly, although parts of the coupled patches may be distributed across different processors, the owner and neighbour of each cell will be assigned to the same processor.


You can see this in action in their second screenshot, where the neighbouring cells to the left and right of the green line are coloured the same, i.e. they belong to the same processor.
NotOverUnderated likes this.
sylvester is offline   Reply With Quote

Old   December 22, 2023, 06:36
Default
  #3
Senior Member
 
NotOverUnderated's Avatar
 
ONESP-RO
Join Date: Feb 2021
Location: Somwhere on Planet Earth
Posts: 127
Rep Power: 5
NotOverUnderated is on a distinguished road
Quote:
Originally Posted by sylvester View Post
Hi,


The link you provide says: "The preservePatches constraint can be used to keep owner and neighbour cells of coupled patches on the same processor."



This means that, if I understand it correctly, although parts of the coupled patches may be distributed across different processors, the owner and neighbour of each cell will be assigned to the same processor.


You can see this in action in their second screenshot, where the neighbouring cells to the left and right of the green line are coloured the same, i.e. they belong to the same processor.
Thank you very much for your answer

I think that really makes sense now for me. I find it very tricky to read that webpage. I believe they should add a note. I expect everyone who is not reading that carefully to think that this constraint is made to preserve the AMI patches on a single processor.
__________________
Don't keep making the same mistakes. Try to make new mistakes.
NotOverUnderated 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
[Other] [cfMesh] Error when creating AMI patches propeller gabrielfelix OpenFOAM Community Contributions 2 July 5, 2023 21:54
OpenFOAM course for beginners Jibran OpenFOAM Announcements from Other Sources 2 November 4, 2019 09:51
How to contribute to the community of OpenFOAM users and to the OpenFOAM technology wyldckat OpenFOAM 17 November 10, 2017 16:54
Possible bug with stitchMesh and cyclics in OpenFoam Jack001 OpenFOAM Pre-Processing 0 May 21, 2016 09:00
CyclicAMI issues vabishek OpenFOAM Pre-Processing 1 December 6, 2015 17:37


All times are GMT -4. The time now is 10:55.