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

preservepatches for cyclicAMI

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 13, 2016, 12:35
Default preservepatches for cyclicAMI
  #1
New Member
 
Jialin Su
Join Date: Mar 2015
Posts: 4
Rep Power: 7
ttjs3 is on a distinguished road
Hi Foamers,

I am using 2.4-0 at the moment. I am running a simulation that requires the use of the boundary condition "cyclicAMI". It's not possible to create the mesh in such a way that the matching patches have the same number of cells.

The single phase flow case runs no problem. But I also need to inject particles into the simulation as well. Then I ran into this problem:

--> FOAM FATAL ERROR:
Particle tracking across AMI patches is only currently supported for cases where the AMI patches reside on a single processor
From function void Foam::Cloud<ParticleType>::initCloud(const bool)
in file /work/y07/y07/cse/openfoam/2.4.0/build2/OpenFOAM-2.4.0/src/lagrangian/basic/lnInclude/Cloud.C at line 59.

FOAM parallel run aborting

So I presume I would need to preserve the patches that are "cyclicAMI". I added the following line in the decomposeParDict:

preserveFaceZones (SIDE1 SIDE2);

But this doesn't actually help to preserve the patches SIDE1 and SIDE2. They are still split into different processors. And the simulation still crashes with the same error message.

I looked up different threads here. But can't really find a solution. Is there any way to preserve the two "cyclicAMI" when decomposing the mesh? Or have I missed any other options in decomposePar?

I thought of using "simple". But I need to decompose a complex mesh into over 200 partitions. "simple" doesn't seem to apply here. Any suggestions will be really appreciated. Thank you in advance.

Best Regards,
Jialin Su
ttjs3 is offline   Reply With Quote

Old   December 14, 2016, 14:01
Default
  #2
New Member
 
Jialin Su
Join Date: Mar 2015
Posts: 4
Rep Power: 7
ttjs3 is on a distinguished road
I just realised that not just each individual cyclicAMI patch needs to be completely in the same processor for the simulation to run. Actually both patches (SIDE1 and SIDE2) need to be in one processor for the simulation to run.

Is there any way to instruct OpenFOAM to decompose in such a way? Thank you in advance.
ttjs3 is offline   Reply With Quote

Old   July 8, 2017, 15:30
Default
  #3
Member
 
Yousef
Join Date: Feb 2015
Posts: 40
Rep Power: 7
ykanani is on a distinguished road
Quote:
Originally Posted by ttjs3 View Post
I just realised that not just each individual cyclicAMI patch needs to be completely in the same processor for the simulation to run. Actually both patches (SIDE1 and SIDE2) need to be in one processor for the simulation to run.

Is there any way to instruct OpenFOAM to decompose in such a way? Thank you in advance.
Hi,
Did you find the solution? I running into the same error. your parameters looks fine. PreservePatch should keep the cells in the same processor. I have done this thousands of times and it worked very well. But now I am facing this error with a particular grid. decomposition does not preserve patch.
ykanani is offline   Reply With Quote

Old   June 19, 2020, 13:08
Default
  #4
Senior Member
 
Ehsan Asgari
Join Date: Apr 2010
Posts: 445
Rep Power: 14
syavash is on a distinguished road
Quote:
Originally Posted by ykanani View Post
Hi,
Did you find the solution? I running into the same error. your parameters looks fine. PreservePatch should keep the cells in the same processor. I have done this thousands of times and it worked very well. But now I am facing this error with a particular grid. decomposition does not preserve patch.
Dear Yousef,

Same here. I wonder if there is a trick to force decomposePar to preserve patches. Did you find a solution?

Regards,
Syavash
syavash is online now   Reply With Quote

Old   June 19, 2020, 14:14
Default
  #5
Member
 
Ardalan
Join Date: Jul 2012
Location: Toronto, Canada
Posts: 68
Rep Power: 10
Ardali is on a distinguished road
Quote:
Originally Posted by syavash View Post
Dear Yousef,

Same here. I wonder if there is a trick to force decomposePar to preserve patches. Did you find a solution?

Regards,
Syavash
Hi,
Please see the link below.
https://www.openfoam.com/documentati...-parallel.html

With adding constraints in decomposeParDict you can reach your intention.
Ardalan
Ardali is offline   Reply With Quote

Old   June 19, 2020, 14:34
Default
  #6
Senior Member
 
Ehsan Asgari
Join Date: Apr 2010
Posts: 445
Rep Power: 14
syavash is on a distinguished road
Quote:
Originally Posted by Ardali View Post
Hi,
Please see the link below.
https://www.openfoam.com/documentati...-parallel.html

With adding constraints in decomposeParDict you can reach your intention.
Ardalan
Hi Ardalan,

Thanks for your response.
The issue is that despite using those constraints, my patch still gets splitted between multi processes.
The last option nonetheless looks promising, however I am using an older version of foam on cluster, so it's not really an option!
Please let me know if you had sth in mind.

Kind regards,
Syavash
syavash is online now   Reply With Quote

Reply

Tags
cyclicami, preservepatches

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
CyclicAMI BC preservePatches Parallel Run - again!?! hxaxtma OpenFOAM Pre-Processing 4 August 31, 2015 17:47
The preservePatches Option in decomposePar Hisham OpenFOAM Pre-Processing 4 November 19, 2012 17:45
Cyclic patches and parallel postprocessing problems askjak OpenFOAM Bugs 18 October 27, 2010 03:35


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